-
-
Notifications
You must be signed in to change notification settings - Fork 268
Package constants #8916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Package constants #8916
Changes from 63 commits
5aa9116
251615c
2d35ecc
75db5ab
e54c9e6
45d62b7
06411d7
3dc1d3d
d048560
6231dbc
05342aa
459354f
3c2c61e
fd208d1
8a982ac
c42bd55
4a556aa
44a7050
c2caa1b
4294bc4
3148971
51fc8d7
bd085c9
4695050
e606d59
cf7929e
12a7b2b
edca2c5
cfdf444
816ad9c
13b7df9
46e0e5d
51d9ab6
2ccea0f
8d85f05
2f11ba4
44b74d7
e7e439e
25ab034
70ffad8
edeb6f0
65ed53f
531b987
75a29bf
9100a79
bfe4542
50f39a0
81978d3
41693fc
6b64151
241a95a
71872e2
c483a69
731d65d
414bd0d
082d5e7
d273bc0
fff58ef
0284ee1
84d0d0a
b85ee52
37c4438
d3a0b9d
7b3ef78
93caf2e
5a4b657
bafdb37
e9445e3
a1488be
9edf966
10140bb
dba49c1
1dcc3df
4ddaad4
8149e09
a195eb7
f664a74
f3d7c52
2b27364
db5031a
8261ce6
a660ffa
0420007
d9208fc
79c9ecc
3f89c17
46912b0
39ed54f
abce28f
22d4407
53bf352
16647ca
c481a72
0174fa5
610c4b8
650c963
234f4f5
0120052
31e2946
8eea06a
c549f4b
f1c3e53
a0ec40b
0ab5acd
f8e1775
4281d2d
542045b
e78ac9a
98d54f4
a09289d
415d9c6
ccd9433
61eaae5
bcfb106
e735ba6
e69448e
10d7356
3377303
97ce417
6aabe94
970b39d
e7b1fd4
5cf5889
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -156,6 +156,7 @@ void write_triggers(); | |
| void write_trigger_messages(); | ||
| void write_types(); | ||
| void write_user_privileges(); | ||
| void write_constants(); | ||
| void general_on_error(); | ||
|
|
||
|
|
||
|
|
@@ -505,6 +506,13 @@ int BACKUP_backup(const TEXT* dbb_file, const TEXT* file_name) | |
| write_pub_tables(); | ||
| } | ||
|
|
||
| if (tdgbl->runtimeODS >= DB_VERSION_DDL14) | ||
| { | ||
| // Write constants | ||
| BURP_verbose(USHORT(isc_gbak_writing_constants)); // writing constants | ||
| write_constants(); | ||
| } | ||
|
|
||
| // Finish up | ||
|
|
||
| put(tdgbl, (UCHAR) rec_end); | ||
|
|
@@ -4845,6 +4853,61 @@ void write_user_privileges() | |
| MISC_release_request_silent(req_handle1); | ||
| } | ||
|
|
||
| void write_constants() | ||
| { | ||
| Firebird::IRequest* req_handle1 = nullptr; | ||
|
|
||
| BurpGlobals* tdgbl = BurpGlobals::getSpecific(); | ||
|
|
||
| FOR (REQUEST_HANDLE req_handle1) | ||
| CONST IN RDB$CONSTANTS | ||
| WITH CONST.RDB$SCHEMA_NAME NE SYSTEM_SCHEMA | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this check allowed or should I add the RDB$SYSTEM_FLAG field?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd rather use
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added the |
||
| { | ||
| QualifiedMetaString name(CONST.RDB$CONSTANT_NAME); | ||
|
|
||
| put(tdgbl, rec_constants); | ||
| PUT_TEXT(att_constant_name, CONST.RDB$CONSTANT_NAME); | ||
|
|
||
| if (!CONST.RDB$PACKAGE_NAME.NULL) | ||
| { | ||
| PUT_TEXT(att_constant_package, CONST.RDB$PACKAGE_NAME); | ||
| name.package = CONST.RDB$PACKAGE_NAME; | ||
| } | ||
|
|
||
| PUT_TEXT(att_constant_field_source, CONST.RDB$FIELD_SOURCE); | ||
|
|
||
| if (!CONST.RDB$PRIVATE_FLAG.NULL) | ||
| put_int32(att_constant_private_flag, CONST.RDB$PRIVATE_FLAG); | ||
|
|
||
| if (!CONST.RDB$CONSTANT_BLR.NULL) | ||
| put_blr_blob(att_constant_blr, CONST.RDB$CONSTANT_BLR); | ||
|
|
||
| if (!CONST.RDB$CONSTANT_SOURCE.NULL) | ||
| put_source_blob(att_constant_source, att_constant_source, CONST.RDB$CONSTANT_SOURCE); | ||
|
|
||
| if (!CONST.RDB$SCHEMA_NAME.NULL) | ||
| { | ||
| PUT_TEXT(att_constant_schema_name, CONST.RDB$SCHEMA_NAME); | ||
| name.schema = CONST.RDB$SCHEMA_NAME; | ||
| } | ||
|
|
||
| if (!CONST.RDB$DESCRIPTION.NULL) | ||
| { | ||
| put_source_blob (att_constant_description, att_constant_description, CONST.RDB$DESCRIPTION); | ||
| } | ||
|
|
||
| // writing constant %s | ||
| BURP_verbose(USHORT(isc_gbak_writing_constant), SafeArg() << name.toQuotedString().data()); | ||
| put(tdgbl, att_end); | ||
| } | ||
| END_FOR; | ||
| ON_ERROR | ||
| general_on_error(); | ||
| END_ERROR; | ||
|
|
||
| MISC_release_request_silent(req_handle1); | ||
| } | ||
|
|
||
| } // namespace | ||
|
|
||
| namespace Burp { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.