8
0
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:
asfernandes 2011-11-18 01:07:26 +00:00
parent b69140c353
commit bdd2fac058
3 changed files with 14 additions and 0 deletions

View File

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

View File

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

View File

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