On Wed, 8 Jul 2015 03:55:37 -0700 (PDT), Robert Oehler wrote:
> But there must have existed a way to delete a geometry table in this
> outdated spatialite version too, or not?
>
certainly yes: you are always free to attempt dropping a geometry
table using code of your own.
but in this case you should be absolutely well conscious that n
othing ensures that your code will continue to correctly work on
any possible future version of libspatialite: it could easily
fall victim of some cross-version issue before or after.
that said, the standard approach expected by obsolete versions
was exactly the one you've already adopted, i.e. calling first
DisableSpatialIndex() and DiscardGeometryColumn(), then dropping
any eventual spatial index and finally dropping the main table
itself.
accordingly to your report, you get an error while attempting to
drop the spatial index; this usually is a symptom that some
inappropriate version of libsqlite3 is loaded at run-rime, one
unable to support the R*Tree driver.
you can easily test this even using libsqlite3 alone: just
try to execute the following SQL statements:
CREATE VIRTUAL TABLE idx_test USING rtree(pkid, xmin, xmax, ymin,
ymax);
DROP TABLE idx_test;
if "CREATE VIRTUAL" fails this surely means that you're
using an incomplete libsqlite3.
OTH
Sandro