diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-13 20:18:09 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-07-14 01:33:36 +0100 |
commit | 964f7ec93c2b01aa2c3d171f01210df742dd0724 (patch) | |
tree | b59e5959247821c290de88a9827485770a5df93d /test | |
parent | Supress bad cppcheck suggestion (diff) | |
download | mygrate-964f7ec93c2b01aa2c3d171f01210df742dd0724.tar.bz2 mygrate-964f7ec93c2b01aa2c3d171f01210df742dd0724.tar.xz mygrate-964f7ec93c2b01aa2c3d171f01210df742dd0724.zip |
Wider type support for PQ bindings
timespec not supported... honestly not sure what it should bind!
Diffstat (limited to 'test')
-rw-r--r-- | test/test-postgresql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-postgresql.cpp b/test/test-postgresql.cpp index 8adb920..15ba789 100644 --- a/test/test-postgresql.cpp +++ b/test/test-postgresql.cpp @@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE(mock) BOOST_CHECK_NO_THROW(mdb.query("INSERT INTO test VALUES($1)", {"string_view"})); BOOST_CHECK_NO_THROW(mdb.query("INSERT INTO test VALUES($1)", {nullptr})); BOOST_CHECK_NO_THROW(mdb.query("INSERT INTO test VALUES($1)", {1.2})); - BOOST_CHECK_THROW(mdb.query("INSERT INTO test VALUES($1)", {MyGrate::Time {}}), std::logic_error); + BOOST_CHECK_THROW(mdb.query("INSERT INTO test VALUES($1)", {timespec {}}), std::logic_error); auto rscount = MyGrate::DbStmt<"SELECT COUNT(*) FROM test">::execute(&mdb); BOOST_CHECK_EQUAL(rscount->at(0, 0).operator unsigned int(), 4); } |