aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/statement.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-03 17:33:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-03 17:33:58 +0200
commit466fe7cc930ad788d5be358575d95dd1c3e8fbeb (patch)
tree3ea541bf95bac6d40e5330878752bdd4b5d7fd05 /odb/mysql/statement.cxx
parentf1602f3f6e84bab0440790b2154a7c42b23b0adb (diff)
Make sure MySQL C API is not called from inline functions
Otherwise, on some platforms, the user may need to link to libmysqlclient explicitly.
Diffstat (limited to 'odb/mysql/statement.cxx')
-rw-r--r--odb/mysql/statement.cxx6
1 files changed, 6 insertions, 0 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
//