mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Forward compatibility with ODS12 - don't put into backup relation constraints of system relations (which was introduced by ODS12).
It allows to backup fb3 database using gbak v2.5 and later restore such backup by v3 engine.
This commit is contained in:
parent
8b684a4776
commit
c366d0173a
@ -3661,7 +3661,10 @@ void write_rel_constraints()
|
||||
BurpGlobals* tdgbl = BurpGlobals::getSpecific();
|
||||
|
||||
FOR (REQUEST_HANDLE req_handle1)
|
||||
X IN RDB$RELATION_CONSTRAINTS
|
||||
X IN RDB$RELATION_CONSTRAINTS CROSS
|
||||
REL IN RDB$RELATIONS
|
||||
WITH REL.RDB$RELATION_NAME EQ X.RDB$RELATION_NAME AND
|
||||
(REL.RDB$SYSTEM_FLAG MISSING OR REL.RDB$SYSTEM_FLAG NE 1)
|
||||
put(tdgbl, rec_rel_constraint);
|
||||
const SSHORT l = PUT_TEXT (att_rel_constraint_name, X.RDB$CONSTRAINT_NAME);
|
||||
MISC_terminate (X.RDB$CONSTRAINT_NAME, temp, l, sizeof(temp));
|
||||
|
Loading…
Reference in New Issue
Block a user