Reverse the comparison for character data or bad things can happen!
This commit is contained in:
parent
8854fdde7d
commit
699d1eef58
@ -206,7 +206,7 @@ static udt_Variable *Variable_New(
|
||||
#ifdef WITH_UNICODE
|
||||
var->maxLength = var->maxLength * CXORA_BYTES_PER_CHAR;
|
||||
#else
|
||||
if (type->charsetForm != SQLCS_IMPLICIT)
|
||||
if (type->charsetForm == SQLCS_IMPLICIT)
|
||||
var->maxLength =
|
||||
var->maxLength * cursor->environment->maxBytesPerCharacter;
|
||||
else var->maxLength = elementLength * 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user