From b8b22f37ec3c26fb2b18b0d699e5e58e560b0d24 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Wed, 5 Dec 2012 05:57:07 +0100 Subject: statically assert that ODBC uses UTF-16 Change-Id: I13a8a152d7bfba351632e50d440fba8af375bec3 --- connectivity/source/drivers/odbcbase/OPreparedStatement.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'connectivity') 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); -- cgit