summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-01-16 22:32:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-06-13 17:29:46 +0100
commitb0b6689e815a4da32c2074cd5d46c0920b8844bb (patch)
treeedda74c25db7bd79e9d2a595f7f7f9044baeb93b
parentConnect to test DB as user p2pvr (diff)
downloadp2pvr-b0b6689e815a4da32c2074cd5d46c0920b8844bb.tar.bz2
p2pvr-b0b6689e815a4da32c2074cd5d46c0920b8844bb.tar.xz
p2pvr-b0b6689e815a4da32c2074cd5d46c0920b8844bb.zip
DB layer reports length in bytes, not chars
-rw-r--r--p2pvr/daemon/sqlSelectDeserializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2pvr/daemon/sqlSelectDeserializer.cpp b/p2pvr/daemon/sqlSelectDeserializer.cpp
index 0e87a64..71e320d 100644
--- a/p2pvr/daemon/sqlSelectDeserializer.cpp
+++ b/p2pvr/daemon/sqlSelectDeserializer.cpp
@@ -31,7 +31,7 @@ class SqlSource : public DB::HandleField, public Slicer::ValueSource,
}
void string(const char * s, size_t l) override
{
- vt = Glib::ustring(s, l);
+ vt = std::string(s, l);
}
void integer(int64_t i) override
{