mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-22 07:01:12 +01:00
#3153: Poco::Data::ODBC [N]VARCHAR(MAX) wrong maxDataSize() result
This commit is contained in:
parent
dd3fcc0fd1
commit
7380087176
@ -158,7 +158,7 @@ std::size_t Preparator::maxDataSize(std::size_t pos) const
|
||||
|
||||
// accomodate for terminating zero (non-bulk only!)
|
||||
MetaColumn::ColumnDataType type = mc.type();
|
||||
if (!isBulk() && ((ODBCMetaColumn::FDT_WSTRING == type) || (ODBCMetaColumn::FDT_STRING == type))) ++sz;
|
||||
if (sz && !isBulk() && ((ODBCMetaColumn::FDT_WSTRING == type) || (ODBCMetaColumn::FDT_STRING == type))) ++sz;
|
||||
}
|
||||
catch (StatementException&) { }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user