Skip to content

Commit 86b6fd1

Browse files
committed
Added/Updated tests\bugs\gh_8625_test.py: Confirmed problem on 6.0.0.845. Checked on 6.0.0.1020
1 parent 583496d commit 86b6fd1

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

tests/bugs/gh_8625_test.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)