summaryrefslogtreecommitdiff
path: root/libodbcpp/unittests
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 14:15:34 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-24 14:15:34 +0000
commitae321006e7ccd4db92beed2d0e525d20cee922fa (patch)
treeba1fa7f3eec684ed84092ba2098c4e6a6112715e /libodbcpp/unittests
parentDon't rely on libdbppcore's columns (diff)
downloadlibdbpp-odbc-ae321006e7ccd4db92beed2d0e525d20cee922fa.tar.bz2
libdbpp-odbc-ae321006e7ccd4db92beed2d0e525d20cee922fa.tar.xz
libdbpp-odbc-ae321006e7ccd4db92beed2d0e525d20cee922fa.zip
Update to new libdbpp interface
Diffstat (limited to 'libodbcpp/unittests')
-rw-r--r--libodbcpp/unittests/Jamfile.jam6
-rw-r--r--libodbcpp/unittests/testodbc.cpp2
2 files changed, 3 insertions, 5 deletions
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 : : <name>boost_unit_test_framework ;
-lib boost_filesystem ;
-lib boost_system ;
+lib stdc++fs ;
lib dbpptestcore : : : : <include>/usr/include/dbpp ;
run
@@ -16,8 +15,7 @@ run
<library>..//adhocutil
<library>dbpptestcore
<library>boost_utf
- <library>boost_filesystem
- <library>boost_system
+ <library>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;