# Checked on: 4.0.0.1804 SS; 3.0.6.33271 SS; 2.5.9.27149 SC.
#
# tracker_id:
# min_versions: ['2.5.0']
# versions: 2.5
# qmid: None
importpytest
fromfirebird.qaimportdb_factory,isql_act,Action
# version: 2.5
# resources: None
substitutions_1=[('[ \t]+',''),('no permission for (read/select|SELECT) access.*','no permission for read access'),('no permission for (insert/write|INSERT) access.*','no permission for write access'),('-{0,1}[ ]{0,1}Effective user is.*','')]
init_script_1=""""""
db_1=db_factory(sql_dialect=3,init=init_script_1)
test_script_1="""
setliston;
setterm^;
executeblockas
begin
begin
executestatement'drop user tmp$qa_user1'withautonomoustransaction;
whenanydobeginend
end
begin
executestatement'drop user tmp$qa_user2'withautonomoustransaction;