summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-07 20:44:56 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-07 20:44:56 +0000
commitbfb66f180a0e0c9efbfb708194079e491a63dcbb (patch)
tree0ba89cb7ad5b6067cd8e4b40be2c973db94bbcb7 /libpqpp/pq-command.cpp
parentPass new columns from make_unique (diff)
downloadlibdbpp-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
Diffstat (limited to 'libpqpp/pq-command.cpp')
-rw-r--r--libpqpp/pq-command.cpp2
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)