From 99b84f8cb7c19ccddee954a14798f4577e53aa07 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 17 Oct 2015 22:11:44 +0100 Subject: Add support for getting last insert value --- libsqlitepp/unittests/testsqlite.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libsqlitepp/unittests/testsqlite.cpp') 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; -- cgit v1.2.3