diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-19 11:23:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-19 11:23:37 +0200 |
commit | 3900f747ee74e869f1a82c0f36f5498f9687ec90 (patch) | |
tree | c533cca83e81f5aacb5cb5783cfe09bcc22790b3 | |
parent | 0f765b6964534e868029e1402fe44998e3cfcd26 (diff) |
Add support for retrieving generated id
-rw-r--r-- | odb/mysql/statement.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/mysql/statement.hxx b/odb/mysql/statement.hxx index 342897c..427df3a 100644 --- a/odb/mysql/statement.hxx +++ b/odb/mysql/statement.hxx @@ -119,6 +119,12 @@ namespace odb void execute (); + unsigned long long + id () + { + return mysql_stmt_insert_id (stmt_); + } + private: persist_statement (const persist_statement&); persist_statement& operator= (const persist_statement&); |