summaryrefslogtreecommitdiff
path: root/libpqpp/pq-binarycolumn.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-02-04 16:56:59 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-04 16:56:59 +0000
commit36d1ebb68359d7faa194a1f62c17011b462a3a1f (patch)
tree264111badc785108c3cd2806d3db0f790e8e31a6 /libpqpp/pq-binarycolumn.cpp
parentRemove unnecessary calls to .string() (diff)
downloadlibdbpp-postgresql-36d1ebb68359d7faa194a1f62c17011b462a3a1f.tar.bz2
libdbpp-postgresql-36d1ebb68359d7faa194a1f62c17011b462a3a1f.tar.xz
libdbpp-postgresql-36d1ebb68359d7faa194a1f62c17011b462a3a1f.zip
Switch to string_view
Diffstat (limited to 'libpqpp/pq-binarycolumn.cpp')
-rw-r--r--libpqpp/pq-binarycolumn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-binarycolumn.cpp b/libpqpp/pq-binarycolumn.cpp
index ff49b26..1c6f9e2 100644
--- a/libpqpp/pq-binarycolumn.cpp
+++ b/libpqpp/pq-binarycolumn.cpp
@@ -19,7 +19,7 @@ PQ::BinaryColumn::apply(DB::HandleField & h) const
case 1043: //VARCHAROID:
case 25: //TEXTOID:
case 142: //XMLOID:
- h.string(value(), length());
+ h.string({ value(), length() });
break;
case 16: //BOOLOID:
h.boolean(valueAs<bool>());