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 12:37:18.063
2026-07-22 12:37:18.069 act = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 12:37:18.075 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-22 12:37:18.081
2026-07-22 12:37:18.086 @pytest.mark.version('>=4.0')
2026-07-22 12:37:18.092 def test_1(act: Action, capsys):
2026-07-22 12:37:18.098 # Scan line-by-line through databases.conf, find line starting with REQUIRED_ALIAS and extract name of file that
2026-07-22 12:37:18.105 # must be created in the $(dir_sampl

[...SKIPPED...]

r ALTER access to DATABASE
2026-07-22 12:37:18.904 E             - MON$REMOTE_PROTOCOL             TCP
2026-07-22 12:37:18.910 E             - MON$SEC_DATABASE                Self
2026-07-22 12:37:18.916 E             - SEC$USER_NAME                   SYSDBA
2026-07-22 12:37:18.921 E             - SEC$ADMIN                       <true>
2026-07-22 12:37:18.927 E             - SEC$PLUGIN                      Srp
2026-07-22 12:37:18.932 E             - SEC$USER_NAME                   BBB
2026-07-22 12:37:18.940 E             - SEC$ADMIN                       <true>
2026-07-22 12:37:18.947 E             - SEC$PLUGIN                      Srp
2026-07-22 12:37:18.953
2026-07-22 12:37:18.958 tests/bugs/core_6412_test.py:151: AssertionError
2026-07-22 12:37:18.962 ---------------------------- Captured stdout setup -----------------------------
2026-07-22 12:37:18.967 Creating db: localhost:/var/tmp/qa_2024/test_11359/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]