summaryrefslogtreecommitdiff
path: root/odb/relational/common.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-25 13:06:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-25 13:06:51 +0200
commit3b53b9157b610805b0d5c436bb01c0fe275390b9 (patch)
treea9e7fb781793214802c963ae2e3247cc5892f9d2 /odb/relational/common.cxx
parent8f59ca1a8d7093655f8f7d61f101abc6df3839d5 (diff)
Further generalization work for SQLite support
Diffstat (limited to 'odb/relational/common.cxx')
-rw-r--r--odb/relational/common.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/relational/common.cxx b/odb/relational/common.cxx
index 1416305..dcae220 100644
--- a/odb/relational/common.cxx
+++ b/odb/relational/common.cxx
@@ -107,7 +107,7 @@ namespace relational
string db_type_id (database_type_id (m));
string type (
- "mysql::value_traits< "
+ string (db.string ()) + "::value_traits< "
+ m.type ().fq_name (m.belongs ().hint ()) + ", "
+ im_type + ", "
+ db_type_id
@@ -117,7 +117,7 @@ namespace relational
{
os << "// " << name << endl
<< "//" << endl
- << "static const mysql::query_column<" << endl
+ << "static const " << db << "::query_column<" << endl
<< " " << type << "," << endl
<< " " << db_type_id << ">" << endl
<< name << ";"
@@ -127,7 +127,7 @@ namespace relational
{
string column (table_ + '.' + quote_id (col_name));
- os << "const mysql::query_column<" << endl
+ os << "const " << db << "::query_column<" << endl
<< " " << type << "," << endl
<< " " << db_type_id << ">" << endl
<< scope_ << "::" << name << " (" << endl