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 09:56:15.418
2026-07-22 09:56:15.423 act = <firebird.qa.plugin.Action object at [hex]>
2026-07-22 09:56:15.428 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-07-22 09:56:15.433
2026-07-22 09:56:15.438 @pytest.mark.version('>=4.0')
2026-07-22 09:56:15.443 def test_1(act: Action, capsys):
2026-07-22 09:56:15.448 # Scan line-by-line through databases.conf, find line starting with REQUIRED_ALIAS and extract name of file that
2026-07-22 09:56:15.454 # must be created in the $(dir_sampl

[...SKIPPED...]

r ALTER access to DATABASE
2026-07-22 09:56:16.237 E             - MON$REMOTE_PROTOCOL             TCP
2026-07-22 09:56:16.243 E             - MON$SEC_DATABASE                Self
2026-07-22 09:56:16.249 E             - SEC$USER_NAME                   SYSDBA
2026-07-22 09:56:16.256 E             - SEC$ADMIN                       <true>
2026-07-22 09:56:16.262 E             - SEC$PLUGIN                      Srp
2026-07-22 09:56:16.270 E             - SEC$USER_NAME                   BBB
2026-07-22 09:56:16.276 E             - SEC$ADMIN                       <true>
2026-07-22 09:56:16.283 E             - SEC$PLUGIN                      Srp
2026-07-22 09:56:16.289
2026-07-22 09:56:16.296 tests/bugs/core_6412_test.py:151: AssertionError
2026-07-22 09:56:16.302 ---------------------------- Captured stdout setup -----------------------------
2026-07-22 09:56:16.307 Creating db: localhost:/var/tmp/qa_2024/test_11361/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]