Skip to content

Commit

Permalink
#4057: ODBC: SQL Anywhere Support (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig authored and aleks-f committed Nov 27, 2023
1 parent 1a2087c commit ad12948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/ODBC/src/Binder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ void Binder::getColSizeAndPrecision(std::size_t pos,
{
found = _pTypeInfo->tryGetInfo(cDataType, "COLUMN_SIZE", tmp);
if (found) colSize = tmp;
if (actualSize > colSize)
if (found && actualSize > colSize)
{
throw LengthExceededException(Poco::format("Error binding column %z size=%z, max size=%ld)",
pos, actualSize, static_cast<long>(colSize)));
Expand Down

0 comments on commit ad12948

Please sign in to comment.