summaryrefslogtreecommitdiff
path: root/libdbpp/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/unittests')
m---------libdbpp/unittests/libdbpp-postgresql0
-rw-r--r--libdbpp/unittests/testParse.cpp2
-rw-r--r--libdbpp/unittests/testUtils.cpp2
3 files changed, 2 insertions, 2 deletions
diff --git a/libdbpp/unittests/libdbpp-postgresql b/libdbpp/unittests/libdbpp-postgresql
-Subproject b7544cf990e782cec92a69555ab9dacd3f2d596
+Subproject fa73227160d97e98eb8be2aac22fa9a70f0068a
diff --git a/libdbpp/unittests/testParse.cpp b/libdbpp/unittests/testParse.cpp
index 491e8e6..dcd11d6 100644
--- a/libdbpp/unittests/testParse.cpp
+++ b/libdbpp/unittests/testParse.cpp
@@ -15,7 +15,7 @@ BOOST_TEST_SPECIALIZED_COLLECTION_COMPARE(SQLs);
class RecordingParser : std::fstream, public DB::SqlParse {
public:
RecordingParser(const std::filesystem::path & p) :
- std::fstream(p.string()),
+ std::fstream(p),
DB::SqlParse(*this, p.parent_path())
{
}
diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp
index 1911d9f..8c6a1bd 100644
--- a/libdbpp/unittests/testUtils.cpp
+++ b/libdbpp/unittests/testUtils.cpp
@@ -166,7 +166,7 @@ BOOST_AUTO_TEST_CASE( extract )
BOOST_AUTO_TEST_CASE( bulkLoadStream )
{
- std::ifstream in((rootDir / "source.dat").string());
+ std::ifstream in(rootDir / "source.dat");
auto db = DB::ConnectionPtr(DB::MockDatabase::openConnectionTo("pqmock"));
db->beginBulkUpload("bulk1", "");
BOOST_REQUIRE_EQUAL(56, db->bulkUploadData(in));