aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/query.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/query.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/query.hxx')
-rw-r--r--odb/sqlite/query.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/sqlite/query.hxx b/odb/sqlite/query.hxx
index 1e8a0a0..5991c51 100644
--- a/odb/sqlite/query.hxx
+++ b/odb/sqlite/query.hxx
@@ -1225,7 +1225,7 @@ namespace odb
virtual void
bind (sqlite::bind* b)
{
- b->type = sqlite::bind::text;
+ b->type = image_traits<T, id_text>::bind_value;
b->buffer = buffer_.data ();
b->size = &size_;
}