diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-25 15:52:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-25 15:52:26 +0200 |
commit | 0a6a2fe64508497d287aa3341e667fe313912774 (patch) | |
tree | 72fa2a87eb3631438c0b14fd167349dc3492857d /odb/relational/pgsql/source.cxx | |
parent | 62c19a34f1b32f084845ea51eba9b6fb910ef66b (diff) |
Simplify auto id implementation in Oracle
Specifically, instead of using a trigger to assign the next id from the
sequence, get the next value directly in the INSERT statement.
Diffstat (limited to 'odb/relational/pgsql/source.cxx')
-rw-r--r-- | odb/relational/pgsql/source.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/odb/relational/pgsql/source.cxx b/odb/relational/pgsql/source.cxx index a327b2a..c1ca854 100644 --- a/odb/relational/pgsql/source.cxx +++ b/odb/relational/pgsql/source.cxx @@ -21,10 +21,7 @@ namespace relational struct query_parameters: relational::query_parameters { - query_parameters (base const& x) - : base (x), i_ (0) - { - } + query_parameters (base const& x): base (x), i_ (0) {} virtual string next () @@ -601,12 +598,6 @@ namespace relational class_ (base const& x): base (x) {} virtual void - init_auto_id (semantics::data_member&, string const& im) - { - os << im << "value = 0;"; - } - - virtual void persist_statement_extra (type& c, relational::query_parameters&, persist_position p) |