diff --git a/Data/ODBC/src/Preparator.cpp b/Data/ODBC/src/Preparator.cpp index 09c13d9f1..5b7122b5a 100644 --- a/Data/ODBC/src/Preparator.cpp +++ b/Data/ODBC/src/Preparator.cpp @@ -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&) { }