From 466fe7cc930ad788d5be358575d95dd1c3e8fbeb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 3 Apr 2011 17:33:58 +0200 Subject: Make sure MySQL C API is not called from inline functions Otherwise, on some platforms, the user may need to link to libmysqlclient explicitly. --- odb/mysql/statement.hxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'odb/mysql/statement.hxx') 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 ( - mysql_stmt_insert_id (stmt_)); - } + id (); private: insert_statement (const insert_statement&); -- cgit v1.1