mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 00:15:27 +01:00
Merge pull request #541 from madmaxoft/develop
Fixed ODBC WString size handling.
This commit is contained in:
commit
13273f82b3
@ -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&) { }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user