AssertionError: assert   
  + UNEXPECTEDLY PASSED: insert into rdb$fields(rdb$field_name, rdb$query_name, rdb$validation_blr, rdb$validation_source, rdb$computed_blr, rdb$computed_source, rdb$default_value, rdb$default_source, rdb$field_length, rdb$field_scale, rdb$field_type, rdb$field_sub_type, rdb$missing_value, rdb$missing_source, rdb$description, rdb$system_flag, rdb$query_header, rdb$segment_length, rdb$edit_string, rdb$external_length, rdb$external_scale, rdb$external_type, rdb$dimensions, rdb$null_flag, rdb$character_length, rdb$collation_id, rdb$character_set_id, rdb$field_precision, rdb$security_class, rdb$owner_name) values(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null) returning rdb$db_key
  + UNEXPECTEDLY PASSED: set generator rdb$1 to -9223372036854775808
  + UNEXPECTEDLY PASSED: alter sequence rdb$1 restart with -9223372036854775808
  + UNEXPECTEDLY PASSED:

[...SKIPPED...]

s\\s+where\\s+coalesce\\(rdb\\$system_flag,0\\)\\s*=\\s*0', re.IGNORECASE)
2025-10-28 06:50:36.434 E         + re.compile('delete\\s+from\\s+mon\\$attachments', re.IGNORECASE)
2025-10-28 06:50:36.441 E         + re.compile('delete\\s+from\\s+mon\\$statements', re.IGNORECASE)
2025-10-28 06:50:36.447
2025-10-28 06:50:36.454 tests/bugs/core_4731_test.py:4057: AssertionError
2025-10-28 06:50:36.460 ---------------------------- Captured stdout setup -----------------------------
2025-10-28 06:50:36.467 Creating db: localhost:/var/tmp/qa_2024/test_1924/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2025-10-28 06:50:36.473 CREATE user: TMP_C4731_COOLDBA PLUGIN: Srp
2025-10-28 06:50:36.479 CREATE user: TMP_C4731_MANAGER PLUGIN: Srp
2025-10-28 06:50:36.486 --------------------------- Captured stdout teardown ---------------------------
2025-10-28 06:50:36.494 DROP user: TMP_C4731_MANAGER PLUGIN: Srp
2025-10-28 06:50:36.502 DROP user: TMP_C4731_COOLDBA PLUGIN: Srp