diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-07 20:44:56 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-07 20:44:56 +0000 |
commit | bfb66f180a0e0c9efbfb708194079e491a63dcbb (patch) | |
tree | 0ba89cb7ad5b6067cd8e4b40be2c973db94bbcb7 | |
parent | Pass new columns from make_unique (diff) | |
download | libdbpp-postgresql-bfb66f180a0e0c9efbfb708194079e491a63dcbb.tar.bz2 libdbpp-postgresql-bfb66f180a0e0c9efbfb708194079e491a63dcbb.tar.xz libdbpp-postgresql-bfb66f180a0e0c9efbfb708194079e491a63dcbb.zip |
Fix ustring to string_view conversion with multi-byte charslibdbpp-postgresql-1.4.0
-rw-r--r-- | libpqpp/pq-command.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp index 81501bd..8857fb5 100644 --- a/libpqpp/pq-command.cpp +++ b/libpqpp/pq-command.cpp @@ -141,7 +141,7 @@ PQ::Command::bindParamF(unsigned int n, float v) void PQ::Command::bindParamS(unsigned int n, const Glib::ustring & s) { - paramSet(n, std::string_view(s.data(), s.length())); + paramSet(n, std::string_view(s.data(), s.bytes())); } void PQ::Command::bindParamS(unsigned int n, const std::string_view & s) |