aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/common.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/common.cxx')
-rw-r--r--odb/relational/common.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/relational/common.cxx b/odb/relational/common.cxx
index 469eef1..1e1009d 100644
--- a/odb/relational/common.cxx
+++ b/odb/relational/common.cxx
@@ -350,8 +350,8 @@ namespace relational
void query_columns::
column_ctor (string const& type, string const& base)
{
- os << type << " (const char* t, const char* c)" << endl
- << " : " << base << " (t, c)"
+ os << type << " (const char* t, const char* c, const char* conv)" << endl
+ << " : " << base << " (t, c, conv)"
<< "{"
<< "}";
}
@@ -389,6 +389,9 @@ namespace relational
<< scope_ << "::" << endl
<< name << " (A::" << "table_name, " << strlit (quote_id (column));
+ string const& conv (convert_to_expr (column_type (), m));
+ os << ", " << (conv.empty () ? "0" : strlit (conv));
+
column_ctor_extra (m);
os << ");"