+ corrected SQL

This commit is contained in:
Artem Pavlenko 2009-02-16 22:06:41 +00:00
parent 5a216d01b5
commit f8fec4ab88

View file

@ -127,7 +127,7 @@ sqlite_datasource::sqlite_datasource(parameters const& params)
if (use_spatial_index_)
{
std::ostringstream s;
s << "select count (*) sqlite_master";
s << "select count (*) from sqlite_master";
s << " where name = 'idx_" << table_ << "_" << geometry_field_ << "'";
boost::scoped_ptr<sqlite_resultset> rs (dataset_->execute_query (s.str()));
if (rs->is_valid () && rs->step_next())