aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-26 12:43:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-26 12:43:14 +0200
commit79df30e14bfecf9ed208281e76677f7ffbb856b3 (patch)
tree986bbc489f1926d62b21ec4704bdc7caa0b107b5
parent9c6c3aab8607b351aead5c45de5e0eb539daf6cb (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/mssql/query.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/mssql/query.cxx b/odb/mssql/query.cxx
index 0e50a79..3f2b967 100644
--- a/odb/mssql/query.cxx
+++ b/odb/mssql/query.cxx
@@ -111,11 +111,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));
}