Kaydet (Commit) d45cbcd1 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

statically assert that ODBC uses UTF-16

Change-Id: I13a8a152d7bfba351632e50d440fba8af375bec3
üst a0f70009
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment