diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-06-24 13:23:56 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-06-24 13:23:56 +0200 |
commit | 4465f3fb659fce53a03f29a5cb3ce55c510cd855 (patch) | |
tree | a845931fbe7cd8ff5e89928efa5b164b958b2c38 /odb/pgsql/statement.hxx | |
parent | 019a58726d50f8f7ca1f16e474a90dfa71064bc9 (diff) |
Move insert_statement lastval query from execute() to id()
Diffstat (limited to 'odb/pgsql/statement.hxx')
-rw-r--r-- | odb/pgsql/statement.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/odb/pgsql/statement.hxx b/odb/pgsql/statement.hxx index 8134862..863af53 100644 --- a/odb/pgsql/statement.hxx +++ b/odb/pgsql/statement.hxx @@ -143,10 +143,7 @@ namespace odb execute (); unsigned long long - id () - { - return id_; - } + id (); private: insert_statement (const insert_statement&); @@ -156,6 +153,7 @@ namespace odb binding& data_; native_binding& native_data_; + bool id_cached_; unsigned long long id_; }; |