aboutsummaryrefslogtreecommitdiff
path: root/qt/sqlite/basic
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-10 12:12:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-10 12:12:06 +0200
commit32fcd732e2535090174142dd15b8b74fc444a9c2 (patch)
tree0d869cf45f1282cc1ac04e0d8171410d59d16a1f /qt/sqlite/basic
parent4e7f517a711d9b6e95512cad1891710bcd591034 (diff)
Add support for alternative UTF-16 image for TEXT in SQLite
Use it to handle QString and support std::wstring on Windows.
Diffstat (limited to 'qt/sqlite/basic')
-rw-r--r--qt/sqlite/basic/driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/sqlite/basic/driver.cxx b/qt/sqlite/basic/driver.cxx
index 322e962..c0fb883 100644
--- a/qt/sqlite/basic/driver.cxx
+++ b/qt/sqlite/basic/driver.cxx
@@ -32,7 +32,7 @@ main (int argc, char* argv[])
auto_ptr<database> db (create_database (argc, argv));
object o;
- o.str = "Constantin Michael";
+ o.str = QString::fromUtf8 ("Constantin Micha\xC3\x88l");
o.blob = QByteArray ("\0x13\0xDE\0x00\0x00\0x00\0x54\0xF2\0x6A", 8);
// Persist.