diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-24 12:35:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-24 12:35:08 +0200 |
commit | 8f59ca1a8d7093655f8f7d61f101abc6df3839d5 (patch) | |
tree | 2555c001df7b81560bdc3c579f8c84260c168203 /odb/relational/common.cxx | |
parent | 9cb4ce54829fb2f091e8690b591440b4369a1387 (diff) |
Generalization work for MySQL and SQLite support
Diffstat (limited to 'odb/relational/common.cxx')
-rw-r--r-- | odb/relational/common.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/relational/common.cxx b/odb/relational/common.cxx index 7ac2fc1..1416305 100644 --- a/odb/relational/common.cxx +++ b/odb/relational/common.cxx @@ -29,7 +29,7 @@ namespace relational : ptr_ (true), decl_ (false) { scope_ = "access::object_traits< " + cl.fq_name () + " >::query_type"; - table_ = table_name (cl); + table_ = table_qname (cl); } void query_columns:: @@ -92,7 +92,7 @@ namespace relational { string old_scope (scope_), old_table (table_); scope_ += "::" + name; - table_ = table_name (*c); + table_ = table_qname (*c); traverse (*c); table_ = old_table; scope_ = old_scope; @@ -125,13 +125,13 @@ namespace relational } else { - string column ("\"`" + table_ + "`.`" + col_name + "`\""); + string column (table_ + '.' + quote_id (col_name)); os << "const mysql::query_column<" << endl << " " << type << "," << endl << " " << db_type_id << ">" << endl << scope_ << "::" << name << " (" << endl - << column << ");" + << strlit (column) << ");" << endl; } } |