aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/pgsql
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-07-25 15:52:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-07-25 15:52:26 +0200
commit0a6a2fe64508497d287aa3341e667fe313912774 (patch)
tree72fa2a87eb3631438c0b14fd167349dc3492857d /odb/relational/pgsql
parent62c19a34f1b32f084845ea51eba9b6fb910ef66b (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')
-rw-r--r--odb/relational/pgsql/source.cxx11
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)