From 0a6a2fe64508497d287aa3341e667fe313912774 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Jul 2012 15:52:26 +0200 Subject: 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. --- odb/relational/pgsql/source.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'odb/relational/pgsql') 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) -- cgit v1.1