Skip to content

Commit

Permalink
Merge pull request #541 from madmaxoft/develop
Browse files Browse the repository at this point in the history
Fixed ODBC WString size handling.
  • Loading branch information
obiltschnig committed Sep 16, 2014
2 parents ee25a49 + d434d3c commit 13273f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Data/ODBC/src/Preparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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&) { }

Expand Down

0 comments on commit 13273f8

Please sign in to comment.