8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

Implemented CORE-2197: added support for -nodbtriggers switch in gbak into services API

This commit is contained in:
alexpeshkoff 2008-11-17 16:29:14 +00:00
parent 9c1b29577e
commit ff40a4e199
3 changed files with 5 additions and 2 deletions

View File

@ -135,7 +135,7 @@ static const in_sw_tab_t reference_burp_in_sw_table [] =
// msg 278: %sMODE read_only or read_write access
{IN_SW_BURP_N, isc_spb_res_no_validity, "NO_VALIDITY", 0, 0, 0, FALSE, 187, 0, NULL},
// msg 187: %sN(O_VALIDITY) do not restore database validity conditions
{IN_SW_BURP_NOD, 0, "NODBTRIGGERS", 0, 0, 0, FALSE, 294, 0, NULL},
{IN_SW_BURP_NOD, isc_spb_bkp_no_triggers, "NODBTRIGGERS", 0, 0, 0, FALSE, 294, 0, NULL},
// msg 294: %sNOD(BTRIGGERS) do not run database triggers
{IN_SW_BURP_NT, isc_spb_bkp_non_transportable, "NT", 0, 0, 0, FALSE, 239, 0, NULL},
// msg 239: %sNT Non-Transportable backup file format

View File

@ -343,7 +343,8 @@
#define isc_spb_bkp_old_descriptions 0x10
#define isc_spb_bkp_non_transportable 0x20
#define isc_spb_bkp_convert 0x40
#define isc_spb_bkp_expand 0x80
#define isc_spb_bkp_expand 0x80
#define isc_spb_bkp_no_triggers 0x8000
/********************************************
* Parameters for isc_action_svc_properties *

View File

@ -260,6 +260,7 @@ const Switches backupOptions[] = {
{"bkp_old_descriptions", putOption, 0, isc_spb_bkp_old_descriptions, 0},
{"bkp_non_transportable", putOption, 0, isc_spb_bkp_non_transportable, 0},
{"bkp_convert", putOption, 0, isc_spb_bkp_convert, 0},
{"bkp_no_triggers", putOption, 0, isc_spb_bkp_no_triggers, 0},
{0, 0, 0, 0, 0}
};
@ -278,6 +279,7 @@ const Switches restoreOptions[] = {
{"res_replace", putOption, 0, isc_spb_res_replace, 0},
{"res_create", putOption, 0, isc_spb_res_create, 0},
{"res_use_all_space", putOption, 0, isc_spb_res_use_all_space, 0},
{"bkp_no_triggers", putOption, 0, isc_spb_bkp_no_triggers, 0},
{0, 0, 0, 0, 0}
};