# title: ALTER CURRENT USER fails with "no permission for <...> TABLE PLG$SRP" if current user: 1) has NO admin role and 2) wants to modify his own TAGS list
# decription:
# ::: NB :::
# Code of this test must to be changed after ticket will be fixed!
# See line with 'grant admin role' -- it must me COMMENTED.
# Also, min_version should be set to 3.0.x rather than 4.0.0
#
# Currently we check only ability to change TAGS list using 'ALTER CURRENT USER' statement.
# See also test for CORE-3365, but it checks only 'old' attributes which existed before FB 3.0.
#
# tracker_id: CORE-5827
# min_versions: ['4.0.0']
# versions: 4.0
# qmid: None
importpytest
fromfirebird.qaimportdb_factory,isql_act,Action
# version: 4.0
# resources: None
substitutions_1=[]
init_script_1=""""""
db_1=db_factory(sql_dialect=3,init=init_script_1)
test_script_1="""
setbailon;
setliston;
setterm^;
executeblockas
begin
begin
executestatement'drop user tmp$c5827 using plugin Srp'withautonomoustransaction;