mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 15:23:02 +01:00
Fixed backup/restore of BOOLEAN columns.
This commit is contained in:
parent
b69140c353
commit
bdd2fac058
@ -1609,6 +1609,11 @@ void put_data(burp_rel* relation)
|
||||
add_byte(blr, 0);
|
||||
break;
|
||||
|
||||
case blr_bool:
|
||||
alignment = type_alignments[dtype_boolean];
|
||||
add_byte(blr, field->fld_type);
|
||||
break;
|
||||
|
||||
default:
|
||||
BURP_error_redirect(NULL, 26, SafeArg() << field->fld_type);
|
||||
// msg 26 datatype %ld not understood
|
||||
|
@ -188,6 +188,11 @@ ULONG CAN_encode_decode(burp_rel* relation, lstring* buffer, UCHAR* data, bool_t
|
||||
return FALSE;
|
||||
break;
|
||||
|
||||
case dtype_boolean:
|
||||
if (!xdr_opaque(xdrs, (SCHAR*) p, length))
|
||||
return FALSE;
|
||||
break;
|
||||
|
||||
default:
|
||||
fb_assert(FALSE);
|
||||
return FALSE;
|
||||
|
@ -2878,6 +2878,10 @@ rec_type get_data(BurpGlobals* tdgbl, burp_rel* relation)
|
||||
|
||||
break;
|
||||
|
||||
case blr_bool:
|
||||
add_byte(blr, field->fld_type);
|
||||
break;
|
||||
|
||||
default:
|
||||
BURP_error(26, true, SafeArg() << field->fld_type);
|
||||
// msg 26 datatype %ld not understood
|
||||
|
Loading…
Reference in New Issue
Block a user