From 3900f747ee74e869f1a82c0f36f5498f9687ec90 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 19 Aug 2010 11:23:37 +0200 Subject: Add support for retrieving generated id --- odb/mysql/statement.hxx | 6 ++++++ 1 file changed, 6 insertions(+) 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&); -- cgit v1.1