mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Backport fix for CORE-1690 - arithmetic exception, numeric overflow, or string truncation in utf8 tables
This commit is contained in:
parent
12e4a9ef8a
commit
eb3a3ed777
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user