diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-05 05:57:07 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-12-06 19:19:59 +0100 |
commit | b8b22f37ec3c26fb2b18b0d699e5e58e560b0d24 (patch) | |
tree | dd65c0e6330c9204e9aa94c81ff64f8d943b577c /connectivity | |
parent | convert Printer Options dialog to .ui (diff) | |
download | core-b8b22f37ec3c26fb2b18b0d699e5e58e560b0d24.tar.gz core-b8b22f37ec3c26fb2b18b0d699e5e58e560b0d24.zip |
statically assert that ODBC uses UTF-16
Change-Id: I13a8a152d7bfba351632e50d440fba8af375bec3
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbcbase/OPreparedStatement.cxx | 1 |
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); |