"F"-serie (CS): len=3, 3.0.14.33832 2026.01.16 a4367e94 - 3.0.14.33842 2026.04.16 807a6dcf
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-02-23 21:08:13.568
2026-02-23 21:08:13.573 act = <firebird.qa.plugin.Action object at [hex]>
2026-02-23 21:08:13.578 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-02-23 21:08:13.582
2026-02-23 21:08:13.587 @pytest.mark.version('>=3.0')
2026-02-23 21:08:13.591 def test_1(act: Action, capsys):
2026-02-23 21:08:13.596
2026-02-23 21:08:13.600 init_script = """
2026-02-23 21:08:13.605 set bail on;
2026-02-23 21:08:13.609 recreate sequence g;
2026-02-23 21:08:13.614 recreate table inv_card(id int not null, usr int);
2026-02-23 21:08:13.620 recreate table balance(
2026-02-23 21:08:13.626 id int not null
2026-02-2

[...SKIPPED...]

:13.952 act.isql(switches = ['-q'], input = init_script, combine_output = True)
2026-02-23 21:08:13.957 >       assert act.clean_stdout == '', 'Init script FAILED: {act.clean_stdout=}'
2026-02-23 21:08:13.962 E       AssertionError: Init script FAILED: {act.clean_stdout=}
2026-02-23 21:08:13.966 E       assert
2026-02-23 21:08:13.971 E         + Statement failed, SQLSTATE = 23000
2026-02-23 21:08:13.976 E         + violation of FOREIGN KEY constraint "BAL_FK_INV" on table "BALANCE"
2026-02-23 21:08:13.981 E         + -Foreign key reference target does not exist
2026-02-23 21:08:13.985 E         + -Problematic key value is ("CARD_KEY" = 0)
2026-02-23 21:08:13.990
2026-02-23 21:08:13.995 tests/bugs/gh_8488_test.py:116: AssertionError
2026-02-23 21:08:14.000 ---------------------------- Captured stdout setup -----------------------------
2026-02-23 21:08:14.005 Creating db: localhost:/var/tmp/qa_2024/test_11314/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]