mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
#4057: ODBC: SQL Anywhere Support (fix)
This commit is contained in:
parent
b391d86502
commit
a00bfbe89f
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user