"F"-serie (CS): 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-04-05 15:06:50.170
2026-04-05 15:06:50.175 act = <firebird.qa.plugin.Action object at [hex]>
2026-04-05 15:06:50.180 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2026-04-05 15:06:50.186
2026-04-05 15:06:50.191 @pytest.mark.version('>=3.0')
2026-04-05 15:06:50.196 def test_1(act: Action, capsys):
2026-04-05 15:06:50.200
2026-04-05 15:06:50.205 init_script = """
2026-04-05 15:06:50.210 set bail on;
2026-04-05 15:06:50.215 recreate sequence g;
2026-04-05 15:06:50.220 recreate table inv_card(id int not null, usr int);
2026-04-05 15:06:50.225 recreate table balance(
2026-04-05 15:06:50.229 id int not null
2026-04-

[...SKIPPED...]

:50.575 act.isql(switches = ['-q'], input = init_script, combine_output = True)
2026-04-05 15:06:50.579 >       assert act.clean_stdout == '', 'Init script FAILED: {act.clean_stdout=}'
2026-04-05 15:06:50.584 E       AssertionError: Init script FAILED: {act.clean_stdout=}
2026-04-05 15:06:50.589 E       assert
2026-04-05 15:06:50.593 E         + Statement failed, SQLSTATE = 23000
2026-04-05 15:06:50.598 E         + violation of FOREIGN KEY constraint "BAL_FK_INV" on table "BALANCE"
2026-04-05 15:06:50.603 E         + -Foreign key reference target does not exist
2026-04-05 15:06:50.608 E         + -Problematic key value is ("CARD_KEY" = 0)
2026-04-05 15:06:50.613
2026-04-05 15:06:50.619 tests/bugs/gh_8488_test.py:116: AssertionError
2026-04-05 15:06:50.625 ---------------------------- Captured stdout setup -----------------------------
2026-04-05 15:06:50.631 Creating db: localhost:/var/tmp/qa_2024/test_11314/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]