+ corrected SQL
This commit is contained in:
parent
5a216d01b5
commit
f8fec4ab88
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue