From 39e18ef885ee83d3116ef38e2e7cc0834ca8473a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Feb 2013 16:15:42 +0200 Subject: Provide default mapping for wchar_t and wchar_t[N] for SQLite --- odb/relational/sqlite/context.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odb/relational/sqlite/context.cxx b/odb/relational/sqlite/context.cxx index f2c8c49..35ec91b 100644 --- a/odb/relational/sqlite/context.cxx +++ b/odb/relational/sqlite/context.cxx @@ -33,6 +33,7 @@ namespace relational {"bool", "INTEGER", 0, false}, {"char", "TEXT", 0, false}, + {"wchar_t", "TEXT", 0, false}, {"signed char", "INTEGER", 0, false}, {"unsigned char", "INTEGER", 0, false}, @@ -243,7 +244,8 @@ namespace relational else if (array* a = dynamic_cast (&t)) { semantics::type& bt (a->base_type ()); - if (bt.is_a ()) + if (bt.is_a () || + bt.is_a ()) { if (a->size () != 0) r = "TEXT"; -- cgit v1.1