Reverse the comparison for character data or bad things can happen!

This commit is contained in:
Anthony Tuininga 2008-10-17 04:06:29 +00:00
parent 8854fdde7d
commit 699d1eef58

View File

@ -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;