From 7537c14d7739b4bb22f5a402dfb7f23a6054cb0e Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 23 Feb 2009 22:22:14 +0000 Subject: [PATCH] + small fix --- plugins/input/sqlite/sqlite_datasource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/input/sqlite/sqlite_datasource.cpp b/plugins/input/sqlite/sqlite_datasource.cpp index c6885b114..3f183712d 100644 --- a/plugins/input/sqlite/sqlite_datasource.cpp +++ b/plugins/input/sqlite/sqlite_datasource.cpp @@ -163,7 +163,7 @@ sqlite_datasource::sqlite_datasource(parameters const& params) { std::ostringstream s; s << "select count (*) from sqlite_master"; - s << " where lower(name) = lower('idx_" << table_ << "_" << geometry_field_ << "')"; + s << " where lower(name) = lower('idx_" << table_name << "_" << geometry_field_ << "')"; boost::scoped_ptr rs (dataset_->execute_query (s.str())); if (rs->is_valid () && rs->step_next()) {