summaryrefslogtreecommitdiff
path: root/libpqpp/pq-command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-command.cpp')
-rw-r--r--libpqpp/pq-command.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libpqpp/pq-command.cpp b/libpqpp/pq-command.cpp
index 58b5c49..97f649c 100644
--- a/libpqpp/pq-command.cpp
+++ b/libpqpp/pq-command.cpp
@@ -103,7 +103,7 @@ PQ::Command::paramSet(unsigned int n, const char * fmt, const T & ... v)
}
void
-PQ::Command::paramSet(unsigned int n, const std::string & b)
+PQ::Command::paramSet(unsigned int n, const std::string_view & b)
{
paramsAtLeast(n);
bufs[n] = new std::string(b);
@@ -159,6 +159,11 @@ PQ::Command::bindParamF(unsigned int n, float v)
void
PQ::Command::bindParamS(unsigned int n, const Glib::ustring & s)
{
+ paramSet(n, s.raw());
+}
+void
+PQ::Command::bindParamS(unsigned int n, const std::string_view & s)
+{
paramSet(n, s);
}
void