8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Backport fix for CORE-1690 - arithmetic exception, numeric overflow, or string truncation in utf8 tables

This commit is contained in:
asfernandes 2009-04-05 13:29:35 +00:00
parent 12e4a9ef8a
commit eb3a3ed777

View File

@ -739,7 +739,7 @@ static void cmp_field( gpre_req* request, const gpre_fld* field,
switch (field->fld_dtype) {
case dtype_cstring:
if (!(field->fld_flags & FLD_charset)) {
if (!(field->fld_flags & FLD_charset) && field->fld_ttype) {
request->add_byte(blr_cstring);
request->add_word(field->fld_length);
}
@ -753,7 +753,7 @@ static void cmp_field( gpre_req* request, const gpre_fld* field,
break;
case dtype_text:
if (!(field->fld_flags & FLD_charset)) {
if (!(field->fld_flags & FLD_charset) && field->fld_ttype) {
request->add_byte(blr_text);
request->add_word(field->fld_length);
}
@ -767,7 +767,7 @@ static void cmp_field( gpre_req* request, const gpre_fld* field,
break;
case dtype_varying:
if (!(field->fld_flags & FLD_charset)) {
if (!(field->fld_flags & FLD_charset) && field->fld_ttype) {
request->add_byte(blr_varying);
request->add_word(field->fld_length);
}