aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-26 12:43:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-26 12:43:15 +0200
commit6b96db8901fe76054efcee20d14d2c625dd0fedb (patch)
treec182d17f32867d22766688a970a57900715360c7
parent4ea34b898115d94e4c3907df3b73289d34652564 (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/pgsql/query.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/pgsql/query.cxx b/odb/pgsql/query.cxx
index dd7de0e..1728228 100644
--- a/odb/pgsql/query.cxx
+++ b/odb/pgsql/query.cxx
@@ -180,11 +180,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));
}