Merge branch 'develop' of https://github.com/pocoproject/poco into develop

This commit is contained in:
Günter Obiltschnig 2014-09-17 11:17:24 +02:00
commit 4d4947c6cb

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&) { }