mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 10:43:03 +01:00
Bugfix CORE-5207: ISQL -X may generate invalid GRANT USAGE statements
for domains.
This commit is contained in:
parent
3052355b1b
commit
86698770b4
@ -1295,7 +1295,7 @@ static processing_state list_all_grants2(bool show_role_list, const SCHAR* termi
|
|||||||
ISQL_errmsg(fbStatus);
|
ISQL_errmsg(fbStatus);
|
||||||
return OBJECT_NOT_FOUND;
|
return OBJECT_NOT_FOUND;
|
||||||
END_ERROR
|
END_ERROR
|
||||||
|
/*
|
||||||
FOR FLD IN RDB$FIELDS WITH
|
FOR FLD IN RDB$FIELDS WITH
|
||||||
FLD.RDB$FIELD_NAME NOT MATCHING "RDB$+" USING "+=[0-9][0-9]* *"
|
FLD.RDB$FIELD_NAME NOT MATCHING "RDB$+" USING "+=[0-9][0-9]* *"
|
||||||
AND FLD.RDB$SYSTEM_FLAG NE 1
|
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);
|
ISQL_errmsg(fbStatus);
|
||||||
return OBJECT_NOT_FOUND;
|
return OBJECT_NOT_FOUND;
|
||||||
END_ERROR
|
END_ERROR
|
||||||
|
*/
|
||||||
// Process DDL permissions
|
// Process DDL permissions
|
||||||
for (int i = obj_database; i < obj_type_MAX; i++)
|
for (int i = obj_database; i < obj_type_MAX; i++)
|
||||||
{
|
{
|
||||||
|
@ -1373,7 +1373,7 @@ processing_state SHOW_grants2 (const SCHAR* object,
|
|||||||
return (SKIP);
|
return (SKIP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
if (obj_type == obj_field || obj_type == 255)
|
if (obj_type == obj_field || obj_type == 255)
|
||||||
{
|
{
|
||||||
if (isqlGlob.major_ods >= ODS_VERSION12)
|
if (isqlGlob.major_ods >= ODS_VERSION12)
|
||||||
@ -1592,7 +1592,7 @@ processing_state SHOW_grants2 (const SCHAR* object,
|
|||||||
return (SKIP);
|
return (SKIP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if (obj_type >= obj_database || obj_type == 255)
|
if (obj_type >= obj_database || obj_type == 255)
|
||||||
{
|
{
|
||||||
if (isqlGlob.major_ods >= ODS_VERSION12)
|
if (isqlGlob.major_ods >= ODS_VERSION12)
|
||||||
|
Loading…
Reference in New Issue
Block a user