diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 02:42:43 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-29 06:00:07 +0000 |
commit | b9791d291ed64b30b254ff8b1fc044814e7d510a (patch) | |
tree | ec099237d5c0edda62d61cbba2c23ae024d6eea4 /libpqpp/unittests | |
parent | Remove rebind (diff) | |
download | libdbpp-postgresql-b9791d291ed64b30b254ff8b1fc044814e7d510a.tar.bz2 libdbpp-postgresql-b9791d291ed64b30b254ff8b1fc044814e7d510a.tar.xz libdbpp-postgresql-b9791d291ed64b30b254ff8b1fc044814e7d510a.zip |
Reshuffle and add new exceptions
Diffstat (limited to 'libpqpp/unittests')
-rw-r--r-- | libpqpp/unittests/testpq.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp index 2ff3235..e6721ec 100644 --- a/libpqpp/unittests/testpq.cpp +++ b/libpqpp/unittests/testpq.cpp @@ -2,9 +2,9 @@ #include <boost/test/unit_test.hpp> #include <definedDirs.h> -#include <dbpp/modifycommand.h> -#include <dbpp/selectcommand.h> -#include <dbpp/column.h> +#include <modifycommand.h> +#include <selectcommand.h> +#include <column.h> #include <pq-mock.h> #include <testCore.h> #include <fstream> @@ -204,7 +204,7 @@ BOOST_AUTO_TEST_CASE( reconnectInTx ) kil->execute(); delete kil; usleep(5000); - BOOST_REQUIRE_THROW(ro->ping(), PQ::ConnectionError); + BOOST_REQUIRE_THROW(ro->ping(), DB::ConnectionError); delete ro; delete rok; } @@ -213,7 +213,7 @@ BOOST_AUTO_TEST_SUITE_END(); BOOST_AUTO_TEST_CASE( connfail ) { - BOOST_REQUIRE_THROW(DB::ConnectionFactory::createNew("postgresql", "host=localhost user=no"), PQ::ConnectionError); + BOOST_REQUIRE_THROW(DB::ConnectionFactory::createNew("postgresql", "host=localhost user=no"), DB::ConnectionError); } BOOST_AUTO_TEST_CASE( ssl ) |