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

Bugfix CORE-5207: ISQL -X may generate invalid GRANT USAGE statements

for domains.
This commit is contained in:
Dmitry Yemanov 2016-04-23 23:31:04 +03:00
parent a300df6972
commit fd5b922cd1
2 changed files with 4 additions and 4 deletions

View File

@ -1295,7 +1295,7 @@ static processing_state list_all_grants2(bool show_role_list, const SCHAR* termi
ISQL_errmsg(fbStatus);
return OBJECT_NOT_FOUND;
END_ERROR
/*
FOR FLD IN RDB$FIELDS WITH
FLD.RDB$FIELD_NAME NOT MATCHING "RDB$+" USING "+=[0-9][0-9]* *"
AND FLD.RDB$SYSTEM_FLAG NE 1
@ -1351,7 +1351,7 @@ static processing_state list_all_grants2(bool show_role_list, const SCHAR* termi
ISQL_errmsg(fbStatus);
return OBJECT_NOT_FOUND;
END_ERROR
*/
// Process DDL permissions
for (int i = obj_database; i < obj_type_MAX; i++)
{

View File

@ -1373,7 +1373,7 @@ processing_state SHOW_grants2 (const SCHAR* object,
return (SKIP);
}
}
/*
if (obj_type == obj_field || obj_type == 255)
{
if (isqlGlob.major_ods >= ODS_VERSION12)
@ -1592,7 +1592,7 @@ processing_state SHOW_grants2 (const SCHAR* object,
return (SKIP);
}
}
*/
if (obj_type >= obj_database || obj_type == 255)
{
if (isqlGlob.major_ods >= ODS_VERSION12)