sqlite: trim all types of valid quote characters on table names

This commit is contained in:
Dane Springmeyer 2011-11-13 16:41:54 -08:00
parent 7ef5778d96
commit 422d112d38

View file

@ -90,7 +90,9 @@ public:
static std::string index_for_table(std::string const& table, std::string const& field)
{
return "\"idx_" + mapnik::sql_utils::unquote(table) + "_" + field + "\"";
std::string table_trimmed = table;
dequote(table_trimmed);
return "\"idx_" + table_trimmed + "_" + field + "\"";
}
static std::string index_for_db(std::string const& file)