aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/sqlite-types.hxx
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
commit866f0ce4fa567db60d46741a5c865cdf2741c619 (patch)
treebee686836227a8d83251d7670a6849c43c432481 /odb/sqlite/sqlite-types.hxx
parentb3af5d13db8c29b42436c54abd94b73b7a7f00bd (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 'odb/sqlite/sqlite-types.hxx')
-rw-r--r--odb/sqlite/sqlite-types.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/sqlite/sqlite-types.hxx b/odb/sqlite/sqlite-types.hxx
index 316c032..295cd1f 100644
--- a/odb/sqlite/sqlite-types.hxx
+++ b/odb/sqlite/sqlite-types.hxx
@@ -22,7 +22,8 @@ namespace odb
{
integer, // Buffer is long long; size, capacity, truncated are unused.
real, // Buffer is double; size, capacity, truncated are unused.
- text, // Buffer is a char array.
+ text, // Buffer is a UTF-8 char array.
+ text16, // Buffer is a UTF-16 2-byte char array (sizes in bytes).
blob // Buffer is a char array.
};