Skip to content

Commit

Permalink
Fixed bug #8003 : gbak v4 can't backup database in ODS <13
Browse files Browse the repository at this point in the history
  • Loading branch information
hvlad committed Feb 12, 2024
1 parent 0d8f6f2 commit af0dd80
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/burp/backup.epp
Original file line number Diff line number Diff line change
Expand Up @@ -2621,22 +2621,25 @@ void write_database( const TEXT* dbb_file)
general_on_error();
END_ERROR;

FOR (REQUEST_HANDLE req_handle2)
PUB IN RDB$PUBLICATIONS
WITH PUB.RDB$PUBLICATION_NAME EQ DEFAULT_PUBLICATION
if (tdgbl->runtimeODS >= DB_VERSION_DDL13)
{
fb_assert(PUB.RDB$SYSTEM_FLAG != 0);
FOR (REQUEST_HANDLE req_handle2)
PUB IN RDB$PUBLICATIONS
WITH PUB.RDB$PUBLICATION_NAME EQ DEFAULT_PUBLICATION
{
fb_assert(PUB.RDB$SYSTEM_FLAG != 0);

if (!PUB.RDB$ACTIVE_FLAG.NULL)
put_boolean(att_default_pub_active, PUB.RDB$ACTIVE_FLAG);
if (!PUB.RDB$ACTIVE_FLAG.NULL)
put_boolean(att_default_pub_active, PUB.RDB$ACTIVE_FLAG);

if (!PUB.RDB$AUTO_ENABLE.NULL)
put_boolean(att_default_pub_auto_enable, PUB.RDB$AUTO_ENABLE);
if (!PUB.RDB$AUTO_ENABLE.NULL)
put_boolean(att_default_pub_auto_enable, PUB.RDB$AUTO_ENABLE);
}
END_FOR
ON_ERROR
general_on_error();
END_ERROR
}
END_FOR
ON_ERROR
general_on_error();
END_ERROR
}
else
{
Expand Down

0 comments on commit af0dd80

Please sign in to comment.