diff options
Diffstat (limited to 'odb/qt/date-time/sqlite/qdate-traits.hxx')
-rw-r--r-- | odb/qt/date-time/sqlite/qdate-traits.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/qt/date-time/sqlite/qdate-traits.hxx b/odb/qt/date-time/sqlite/qdate-traits.hxx index 80879a7..b1d03d0 100644 --- a/odb/qt/date-time/sqlite/qdate-traits.hxx +++ b/odb/qt/date-time/sqlite/qdate-traits.hxx @@ -57,7 +57,10 @@ namespace odb { is_null = false; - std::string s (v.toString ("yyyy-MM-dd").toStdString ()); + // Cannot use toStdString() here since Qt could have been + // configured without the STL compatibility support. + // + std::string s (v.toString ("yyyy-MM-dd").toLatin1 ().constData ()); n = s.size (); if (n > i.capacity ()) |