aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/statement.cxx6
-rw-r--r--odb/mysql/statement.hxx6
2 files changed, 7 insertions, 5 deletions
diff --git a/odb/mysql/statement.cxx b/odb/mysql/statement.cxx
index c65adea..bc29ff5 100644
--- a/odb/mysql/statement.cxx
+++ b/odb/mysql/statement.cxx
@@ -262,6 +262,12 @@ namespace odb
return true;
}
+ unsigned long long insert_statement::
+ id ()
+ {
+ return static_cast<unsigned long long> (mysql_stmt_insert_id (stmt_));
+ }
+
// update_statement
//
diff --git a/odb/mysql/statement.hxx b/odb/mysql/statement.hxx
index 5266fa6..06df6bc 100644
--- a/odb/mysql/statement.hxx
+++ b/odb/mysql/statement.hxx
@@ -138,11 +138,7 @@ namespace odb
execute ();
unsigned long long
- id ()
- {
- return static_cast<unsigned long long> (
- mysql_stmt_insert_id (stmt_));
- }
+ id ();
private:
insert_statement (const insert_statement&);