assert   
  + Statement failed, SQLSTATE = 28000
  + unsuccessful metadata update
  + -ALTER DATABASE failed
  + -no permission for ALTER access to DATABASE
  - MON$REMOTE_PROTOCOL             TCP
  - MON$SEC_DATABASE                Self
  - SEC$USER_NAME                   SYSDBA
  - SEC$ADMIN                       <true>
  - SEC$PLUGIN                      Srp
  - SEC$USER_NAME                   BBB
  - SEC$ADMIN                       <true>
  - SEC$PLUGIN                      Srp

LOG DETAILS:

2026-07-22 08:10:51.721
2026-07-22 08:10:51.728 act = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 08:10:51.735 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-22 08:10:51.744
2026-07-22 08:10:51.751 @pytest.mark.version('>=4.0')
2026-07-22 08:10:51.759 def test_1(act: Action, capsys):
2026-07-22 08:10:51.772 # Scan line-by-line through databases.conf, find line starting with REQUIRED_ALIAS and extract name of file that
2026-07-22 08:10:51.781 # must be created in the $(dir_sampl

[...SKIPPED...]

r ALTER access to DATABASE
2026-07-22 08:10:52.578 E             - MON$REMOTE_PROTOCOL             TCP
2026-07-22 08:10:52.592 E             - MON$SEC_DATABASE                Self
2026-07-22 08:10:52.603 E             - SEC$USER_NAME                   SYSDBA
2026-07-22 08:10:52.617 E             - SEC$ADMIN                       <true>
2026-07-22 08:10:52.630 E             - SEC$PLUGIN                      Srp
2026-07-22 08:10:52.639 E             - SEC$USER_NAME                   BBB
2026-07-22 08:10:52.647 E             - SEC$ADMIN                       <true>
2026-07-22 08:10:52.653 E             - SEC$PLUGIN                      Srp
2026-07-22 08:10:52.660
2026-07-22 08:10:52.667 tests/bugs/core_6412_test.py:151: AssertionError
2026-07-22 08:10:52.673 ---------------------------- Captured stdout setup -----------------------------
2026-07-22 08:10:52.680 Creating db: localhost:/var/tmp/qa_2024/test_11361/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]