e89ad623f4
OTools::ThrowException uses SQLGetDiagRec to get error message. It's not the caller's responsibility to define the encoding of resulting string. Also, using the default setting of RTL_TEXTENCODING_MS_1252 turns returned localized strings into garbage. To allow correct conversion into Unicode string, let's use current thread encoding, and drop the input encoding parameter. Change-Id: Idb02e3ebb4fc407ce5e658fb2137ea2aa3bc127d Reviewed-on: https://gerrit.libreoffice.org/44877 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> |
||
---|---|---|
.. | ||
OBoundParam.hxx | ||
OConnection.hxx | ||
ODatabaseMetaData.hxx | ||
ODatabaseMetaDataResultSet.hxx | ||
odbcbasedllapi.hxx | ||
ODriver.hxx | ||
OFunctions.hxx | ||
OPreparedStatement.hxx | ||
OResultSet.hxx | ||
OResultSetMetaData.hxx | ||
OStatement.hxx | ||
OTools.hxx |