summaryrefslogtreecommitdiff
path: root/libpqpp
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
parentPass new columns from make_unique (diff)
downloadlibdbpp-postgresql-1.4.0.tar.bz2
libdbpp-postgresql-1.4.0.tar.xz
libdbpp-postgresql-1.4.0.zip
Fix ustring to string_view conversion with multi-byte charslibdbpp-postgresql-1.4.0
Diffstat (limited to 'libpqpp')
-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)