From edf29e0bb4a2bf078c3b02c54ab808a1a11b7753 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Oct 2012 10:58:38 +0200 Subject: Fix bug in short national char data querying --- odb/mssql/query.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb') diff --git a/odb/mssql/query.hxx b/odb/mssql/query.hxx index 30b56be..636b7b6 100644 --- a/odb/mssql/query.hxx +++ b/odb/mssql/query.hxx @@ -1699,11 +1699,11 @@ namespace odb std::size_t size (0); value_traits::set_image ( reinterpret_cast (buf_.data ()), - buf_.capacity (), + buf_.capacity () / 2, size, is_null, v); - size_ind_ = static_cast (size); + size_ind_ = static_cast (size * 2); } private: -- cgit v1.1