From 699d1eef58a0c20528c909083d599117bb9fc8e3 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Fri, 17 Oct 2008 04:06:29 +0000 Subject: [PATCH] Reverse the comparison for character data or bad things can happen! --- Variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Variable.c b/Variable.c index a9b8b69..659cf62 100644 --- a/Variable.c +++ b/Variable.c @@ -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;