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

Input parameter mismatch while altering procedure parameters in the same connection [CORE5297] #5575

Open
firebird-automations opened this issue Jun 29, 2016 · 0 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Vladimir Arkhipov (arkinform)

The error is reproduced only in Firebird 3.0.0 (in Firebird 2.5.x works fine)

Test steps:

1. Create procedure TESTPROC:

create or alter procedure TESTPROC
(
P1 integer
)
returns
(
P11 integer
)
as
begin
select p11 from testproc(:p1) into p11;
suspend;
end

2. Create procedure TESTPROC2 which uses TESTPROC

create or alter procedure TESTPROC2
(
P1 integer
)
returns
(
P11 integer
)
as
begin
select p11 from testproc(:p1) into p11;
suspend;
end

3. Add input parameter P2 to original TESTPROC and pass P2 in recursive call of TESTPROC

create or alter procedure TESTPROC
(
P1 integer,
P2 integer = 0
)
returns
(
P11 integer
)
as
begin
select p11 from testproc(:p1, :p2) into p11;
suspend;
end

CREATE OR ALTER PROCEDURE TESTPROC failed
Dynamic SQL Error
Input parameter mismatch for procedure TESTPROC

After reconnection step 3 works without errors.

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

1 participant