diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-05 21:02:54 +0000 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 19:33:30 +0000 | 
| commit | 0dd5980eef6fee02ff9dc61bb4c20b6f3670a93c (patch) | |
| tree | cc8031fc3d0c1c7c63234da3cdcdc54a2d05c46b /libpqpp/unittests | |
| parent | Add PQ specific command options to control page size and the use of bulk -v- ... (diff) | |
| download | libdbpp-postgresql-0dd5980eef6fee02ff9dc61bb4c20b6f3670a93c.tar.bz2 libdbpp-postgresql-0dd5980eef6fee02ff9dc61bb4c20b6f3670a93c.tar.xz libdbpp-postgresql-0dd5980eef6fee02ff9dc61bb4c20b6f3670a93c.zip  | |
Fix bug where prepared statement cache wasn't cleared on connection reset leading to random failure due to prepapred statements not existing
Diffstat (limited to 'libpqpp/unittests')
| -rw-r--r-- | libpqpp/unittests/testpq.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp index f7c327f..fcf01e3 100644 --- a/libpqpp/unittests/testpq.cpp +++ b/libpqpp/unittests/testpq.cpp @@ -232,6 +232,7 @@ BOOST_AUTO_TEST_CASE( reconnect )  	int pid1 = PQbackendPID(pqconn->conn);  	BOOST_REQUIRE(pid1);  	ro->ping(); +	ro->modify("TRUNCATE TABLE test")->execute();  	auto kil = rok->newModifyCommand("SELECT pg_terminate_backend(?)");  	kil->bindParamI(0, pid1);  	kil->execute(); @@ -241,6 +242,7 @@ BOOST_AUTO_TEST_CASE( reconnect )  	int pid2 = PQbackendPID(pqconn->conn);  	BOOST_REQUIRE(pid2);  	BOOST_REQUIRE(pid1 != pid2); +	ro->modify("TRUNCATE TABLE test")->execute();  	delete ro;  	delete rok;  }  | 
