Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedure executes infinitely if contains more than 32767 statements inside any BEGIN/END block [CORE4375] #4697

Closed
firebird-issue-importer opened this issue Mar 26, 2014 · 5 comments

Comments

@firebird-issue-importer

Submitted by: Alex Bekhtin (afgm)

-- STEP 1
execute block
returns (SQL blob sub_type text)
as
begin
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;
suspend;
end
-------
--STEP 2
manually run code from blob
-------
-- STEP 3
-- indefinitely wait for
select count(*) from test_proc

But it works for smaller code

Commits: d279f3a FirebirdSQL/fbt-repository@0c87dd8

====== 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.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 26, 2014

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 26, 2014

Modified by: @dyemanov

summary: indefinitely wait when calling big psql procedure => Procedure executes infinitely if contains more than 32767 statements inside any BEGIN/END block

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 26, 2014

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 28, 2015

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

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.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Sep 22, 2015

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants