diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-26 12:43:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-26 12:43:15 +0200 |
commit | 672e2e42125975d98195e9f4e9b7ccb654a9c7cc (patch) | |
tree | 841cf2019864fbc90e4ae2762b9bb64de611ba70 | |
parent | 6d217bf037d27eb5a82eb1ebecbc06c9f7da76eb (diff) |
Implement support for database schema
New pragma qualifier: namespace. New pragma specifier: schema. The table
specifier was extended to accept a schema prefix. New option: --default-
schema. The common/schema test was extended to cover the new functionality.
-rw-r--r-- | odb/sqlite/query.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/sqlite/query.cxx b/odb/sqlite/query.cxx index 1667a92..d2a34ac 100644 --- a/odb/sqlite/query.cxx +++ b/odb/sqlite/query.cxx @@ -181,11 +181,9 @@ namespace odb void query:: append (const char* table, const char* column) { - string s ("\""); - s += table; - s += "\".\""; + string s (table); + s += '.'; s += column; - s += '"'; clause_.push_back (clause_part (clause_part::column, s)); } |