Input parameter mismatch while altering procedure parameters in the same 
connection
-----------------------------------------------------------------------------------

                 Key: CORE-5297
                 URL: http://tracker.firebirdsql.org/browse/CORE-5297
             Project: Firebird Core
          Issue Type: Bug
    Affects Versions: 3.0.0
            Reporter: Vladimir Arkhipov


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to