"F"-serie (SS): len=10, 3.0.14.33838 2026.01.30 4a759a02 - 3.0.15.33858 2026.04.21 1f460741
AssertionError: Init script FAILED: {act.clean_stdout=}
assert   
  + Statement failed, SQLSTATE = 23000
  + violation of FOREIGN KEY constraint "BAL_FK_INV" on table "BALANCE"
  + -Foreign key reference target does not exist
  + -Problematic key value is ("CARD_KEY" = 0)

LOG DETAILS:

2026-03-19 13:29:29.231
2026-03-19 13:29:29.236 act = <firebird.qa.plugin.Action object at [hex]>
2026-03-19 13:29:29.241 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-03-19 13:29:29.246
2026-03-19 13:29:29.250 @pytest.mark.version('>=3.0')
2026-03-19 13:29:29.255 def test_1(act: Action, capsys):
2026-03-19 13:29:29.259
2026-03-19 13:29:29.264 init_script = """
2026-03-19 13:29:29.269 set bail on;
2026-03-19 13:29:29.274 recreate sequence g;
2026-03-19 13:29:29.278 recreate table inv_card(id int not null, usr int);
2026-03-19 13:29:29.284 recreate table balance(
2026-03-19 13:29:29.289 id int not null
2026-03-

[...SKIPPED...]

:29.621 act.isql(switches = ['-q'], input = init_script, combine_output = True)
2026-03-19 13:29:29.625 >       assert act.clean_stdout == '', 'Init script FAILED: {act.clean_stdout=}'
2026-03-19 13:29:29.630 E       AssertionError: Init script FAILED: {act.clean_stdout=}
2026-03-19 13:29:29.635 E       assert
2026-03-19 13:29:29.640 E         + Statement failed, SQLSTATE = 23000
2026-03-19 13:29:29.644 E         + violation of FOREIGN KEY constraint "BAL_FK_INV" on table "BALANCE"
2026-03-19 13:29:29.649 E         + -Foreign key reference target does not exist
2026-03-19 13:29:29.654 E         + -Problematic key value is ("CARD_KEY" = 0)
2026-03-19 13:29:29.659
2026-03-19 13:29:29.664 tests/bugs/gh_8488_test.py:116: AssertionError
2026-03-19 13:29:29.670 ---------------------------- Captured stdout setup -----------------------------
2026-03-19 13:29:29.677 Creating db: localhost:/var/tmp/qa_2024/test_11314/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]