Description
If cfstoredproc is used to call a procedure with parameters within an Oracle package, it fails with below error message:
ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to ‘TESTPROC’ ORA-06550: line 1, column 7: PL/SQL: Statement ignored
Please help in resolving this issue.
Thank you.
Details below:
Environment
Lucee version: 5.3.6.61
DatabaseName: Oracle
DatabaseVersion: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, Data Mining and Real Application Testing options
DriverName: Oracle JDBC driver
DriverVersion: 12.1.0.2.0
Oracle Procedure:
CREATE OR REPLACE package lucee_bug_test as
PROCEDURE testproc;
PROCEDURE testproc2(p1 varchar2);
end;
/
CREATE OR REPLACE package body lucee_bug_test as
PROCEDURE testproc IS
BEGIN
NULL;
END;
procedure testproc2(p1 varchar2) is
begin
null;
end;
END;
/
CFML programs:
test_cfstoredproc.cfm:
schema is #dsUser#
calling lucee_bug_test.testproc:
calling #dsUser#.lucee_bug_test.testproc:
calling lucee_bug_test.testproc2(‘foo’):
calling #dsUser#.lucee_bug_test.testproc2(‘foo’):