Merge pull request #541 from madmaxoft/develop

Fixed ODBC WString size handling.
This commit is contained in:
Günter Obiltschnig 2014-09-16 15:32:51 +02:00
commit 13273f82b3

View File

@ -152,7 +152,8 @@ std::size_t Preparator::maxDataSize(std::size_t pos) const
sz = mc.length();
// accomodate for terminating zero (non-bulk only!)
if (!isBulk() && ODBCMetaColumn::FDT_STRING == mc.type()) ++sz;
MetaColumn::ColumnDataType type = mc.type();
if (!isBulk() && ((ODBCMetaColumn::FDT_WSTRING == type) || (ODBCMetaColumn::FDT_STRING == type))) ++sz;
}
catch (StatementException&) { }