File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ #coding:utf-8
2+
3+ """
4+ ID: n/a
5+ ISSUE: https://github.com/FirebirdSQL/firebird/issues/8625
6+ TITLE: Range based FOR is broken with a DO SUSPEND without BEGIN...END
7+ DESCRIPTION:
8+ NOTES:
9+ [17.07.2025] pzotov
10+ Confirmed problem on 6.0.0.845.
11+ Checked on 6.0.0.1020
12+ """
13+
14+ import pytest
15+ from firebird .qa import *
16+
17+ db = db_factory ()
18+
19+ test_script = """
20+ set heading off;
21+ set autoterm;
22+ execute block returns (i int) as
23+ begin
24+ for i = 1 to 3 do suspend;
25+ end;
26+ """
27+
28+ act = isql_act ('db' , test_script )
29+
30+ expected_stdout = """
31+ 1
32+ 2
33+ 3
34+ """
35+
36+ @pytest .mark .version ('>=3.0' )
37+ def test_1 (act : Action ):
38+ act .expected_stdout = expected_stdout
39+ act .execute (combine_output = True )
40+ assert act .clean_stdout == act .clean_expected_stdout
You can’t perform that action at this time.
0 commit comments