diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-26 16:41:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-26 16:41:51 +0200 |
commit | 4fd2c107242fe9f8e6ba7ded2a789f4de2ccd040 (patch) | |
tree | fe576a167b94e0a2a042758fa011d7140f18612c /odb/relational/source.cxx | |
parent | 65101f4943e194e5b423099419612d0e38967cdc (diff) |
Implement support for mixed auto/manual id assignment in SQLite
Now one can do:
#pragma db id auto
odb::nullable<int64_t> id;
And then set the id to NULL to get auto-assignment or to the actual value
to use a manual id.
Diffstat (limited to 'odb/relational/source.cxx')
-rw-r--r-- | odb/relational/source.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/odb/relational/source.cxx b/odb/relational/source.cxx index 8ead851..238eceb 100644 --- a/odb/relational/source.cxx +++ b/odb/relational/source.cxx @@ -1261,7 +1261,6 @@ traverse_object (type& c) string const& n (idf->name ()); string var ("im." + n + (n[n.size () - 1] == '_' ? "" : "_")); init_auto_id (*idf, var); // idf == idb, since auto - os << endl; } os << "if ("; |