summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-12-05 05:57:07 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-12-06 19:42:30 +0100
commitd45cbcd1203776bc9d42e528541eae5f0086561b (patch)
tree0a3eaf1d23a04a1a74d3b687f6c5e1dba0589017 /connectivity
parenta0f70009e805ebc37493fb3afefb443b64fa4108 (diff)
statically assert that ODBC uses UTF-16
Change-Id: I13a8a152d7bfba351632e50d440fba8af375bec3
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/odbcbase/OPreparedStatement.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx
index f5c05b80f76f..1e467932072b 100644
--- a/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx
+++ b/connectivity/source/drivers/odbcbase/OPreparedStatement.cxx
@@ -334,6 +334,7 @@ void OPreparedStatement::setParameter(const sal_Int32 parameterIndex, const sal_
* Our internal OUString storage is always UTF-16, so no conversion to do here.
*/
BOOST_STATIC_ASSERT( sizeof(sal_Unicode) == 2 );
+ BOOST_STATIC_ASSERT( sizeof(SQLWCHAR) == 2 );
nCharLen = _sData.getLength();
nByteLen = nCharLen * sizeof(sal_Unicode);
pData = allocBindBuf(parameterIndex, nByteLen);