aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/header.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-08-14 09:37:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-11 10:29:49 +0200
commit6fc9edcb2c54d395ea5d9a77bde882cd8ba9ec03 (patch)
tree0be9e0733fba6b6b1a3fa3ce66e7229a3f8c8de1 /odb/relational/header.cxx
parentd59e3c27450747e5a04585ee9e943376b5bcfa41 (diff)
Draft implementation for INSERT
Diffstat (limited to 'odb/relational/header.cxx')
-rw-r--r--odb/relational/header.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/odb/relational/header.cxx b/odb/relational/header.cxx
index 476aad3..41fdd26 100644
--- a/odb/relational/header.cxx
+++ b/odb/relational/header.cxx
@@ -208,6 +208,11 @@ traverse_object (type& c)
if (!poly_derived && id != 0)
{
+ if (auto_id)
+ os << "static id_type" << endl
+ << "id (const id_image_type&);"
+ << endl;
+
if (options.generate_query ())
os << "static id_type" << endl
<< "id (const image_type&);"