aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/statement.hxx6
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&);