From c66b3b250c9357a0d8dd36a59dfe60ec3203194f Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 1 Apr 2011 22:30:21 +0000 Subject: [PATCH] sqlite plugin: add rowid to the fields --- plugins/input/sqlite/sqlite_datasource.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/input/sqlite/sqlite_datasource.cpp b/plugins/input/sqlite/sqlite_datasource.cpp index ed3175ee8..ebb50ddf1 100644 --- a/plugins/input/sqlite/sqlite_datasource.cpp +++ b/plugins/input/sqlite/sqlite_datasource.cpp @@ -230,6 +230,9 @@ void sqlite_datasource::bind() const } } + // TODO - ensure that the supplied key_field is a valid "integer primary key" + desc_.add_descriptor(attribute_descriptor("rowid",mapnik::Integer)); + if (use_pragma_table_info) { std::ostringstream s;