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 committed Jun 11, 2023
1 parent b391d86 commit a00bfbe
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 a00bfbe

Please sign in to comment.