From b8554760aa3a5c5697c77d11e507a2bb46dbf8e4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Jul 2012 15:17:16 +0200 Subject: Add support for custom database type mapping New pragma qualifier, map, and specifiers: as, to, from. New tests: /custom. --- odb/relational/pgsql/source.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'odb/relational/pgsql/source.cxx') diff --git a/odb/relational/pgsql/source.cxx b/odb/relational/pgsql/source.cxx index 7bb2f8a..6580c21 100644 --- a/odb/relational/pgsql/source.cxx +++ b/odb/relational/pgsql/source.cxx @@ -617,7 +617,8 @@ namespace relational if (id != 0 && !poly_derived && id->count ("auto")) { os << endl - << strlit (" RETURNING " + column_qname (*id)); + << strlit (" RETURNING " + + convert_from (column_qname (*id), *id)); } } -- cgit v1.1