From ae321006e7ccd4db92beed2d0e525d20cee922fa Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Feb 2019 14:15:34 +0000 Subject: Update to new libdbpp interface --- libodbcpp/unittests/Jamfile.jam | 6 ++---- libodbcpp/unittests/testodbc.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'libodbcpp/unittests') diff --git a/libodbcpp/unittests/Jamfile.jam b/libodbcpp/unittests/Jamfile.jam index 523c64a..1d9233d 100644 --- a/libodbcpp/unittests/Jamfile.jam +++ b/libodbcpp/unittests/Jamfile.jam @@ -3,8 +3,7 @@ import testing ; path-constant me : . ; lib boost_utf : : boost_unit_test_framework ; -lib boost_filesystem ; -lib boost_system ; +lib stdc++fs ; lib dbpptestcore : : : : /usr/include/dbpp ; run @@ -16,8 +15,7 @@ run ..//adhocutil dbpptestcore boost_utf - boost_filesystem - boost_system + stdc++fs : testodbc ; diff --git a/libodbcpp/unittests/testodbc.cpp b/libodbcpp/unittests/testodbc.cpp index 9a810c7..d0373a7 100644 --- a/libodbcpp/unittests/testodbc.cpp +++ b/libodbcpp/unittests/testodbc.cpp @@ -83,7 +83,7 @@ BOOST_AUTO_TEST_CASE( bindAndSelectOther ) while (select->fetch()) { assertColumnValueHelper(*select, 0, 4); assertColumnValueHelper(*select, 1, 123.45); - assertColumnValueHelper(*select, 2, std::string("some text")); + assertColumnValueHelper(*select, 2, std::string_view("some text")); // assertColumnValueHelper(*select, 3, true); assertColumnValueHelper(*select, 4, boost::posix_time::ptime_from_tm({ 3, 6, 23, 27, 3, 115, 0, 0, 0, 0, 0})); rows += 1; -- cgit v1.2.3