Issue Details (XML | Word | Printable)

Key: CORE-4375
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dmitry Yemanov
Reporter: Alex Bekhtin
Votes: 0
Watchers: 2

If you were logged in you would be able to see more operations.
Firebird Core

Procedure executes infinitely if contains more than 32767 statements inside any BEGIN/END block

Created: 26/Mar/14 10:12 AM   Updated: 22/Sep/15 09:41 AM
Component/s: Engine
Affects Version/s: 3.0 Alpha 2
Fix Version/s: 3.0 Beta 1

Environment: Firebird-

QA Status: Done successfully
Test Details:
On Alpha2 (WI-T3.0.0.30809):
Statement failed, SQLSTATE = 42000
Dynamic SQL Error
-SQL error code = -104
-Invalid command
-no column name specified for column number 1 in derived table ...
On Beta2 (WI-T3.0.0.31807) works OK.

 Description  « Hide
-- STEP 1
execute block
returns (SQL blob sub_type text)
  select 'create or alter procedure test_proc returns(id integer) as begin '||
         list('SUSPEND;', '
end' from rdb$types, rdb$types
         rows 35000
  into :SQL;
  --execute statement :SQL;
--STEP 2
manually run code from blob
-- STEP 3
-- indefinitely wait for
select count(*) from test_proc

But it works for smaller code

 All   Comments   Change History   Subversion Commits      Sort Order: Descending order - Click to sort in ascending order
There are no comments yet on this issue.