summaryrefslogtreecommitdiff
path: root/libsqlitepp/unittests
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-10-17 22:11:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-10-20 01:00:02 +0100
commit99b84f8cb7c19ccddee954a14798f4577e53aa07 (patch)
tree7509d372cf8ff3373be388f1e0803bed0af777ce /libsqlitepp/unittests
parentAdd override attributes (diff)
downloadlibdbpp-sqlite-99b84f8cb7c19ccddee954a14798f4577e53aa07.tar.bz2
libdbpp-sqlite-99b84f8cb7c19ccddee954a14798f4577e53aa07.tar.xz
libdbpp-sqlite-99b84f8cb7c19ccddee954a14798f4577e53aa07.zip
Add support for getting last insert value
Diffstat (limited to 'libsqlitepp/unittests')
-rw-r--r--libsqlitepp/unittests/testsqlite.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsqlitepp/unittests/testsqlite.cpp b/libsqlitepp/unittests/testsqlite.cpp
index 6f88075..62764bd 100644
--- a/libsqlitepp/unittests/testsqlite.cpp
+++ b/libsqlitepp/unittests/testsqlite.cpp
@@ -48,6 +48,7 @@ BOOST_AUTO_TEST_CASE( bindAndSend )
mod->bindParamF(1, testDouble);
mod->bindParamS(2, testString);
mod->execute();
+ BOOST_REQUIRE_EQUAL(2, rw->insertId());
delete mod;
rw->commitTx();
delete rw;