OUT Params and error 1414
I am trying to use an OUT parameter in this stored procedure:
DELIMITER $$
DROP PROCEDURE IF EXISTS `502_coater`.`FILL_Roughing` $$
CREATE PROCEDURE `FILL_Roughing`(EntryTime FLOAT, ExitTime FLOAT, OUT spTrigger INT)
BEGIN
DECLARE y INTEGER;
DECLARE m INTEGER;
DECLARE d INTEGER;
DECLARE h INTEGER;
DECLARE n INTEGER;
SET y = year(curdate());
SET m = month(curdate());
SET d = day(curdate());
SET h = hour(curtime());
SET n = minute(curtime());
INSERT into roughing VALUES (y, m, d, h, n, EntryTime, ExitTime);
SET spTrigger = 2;
END $$
DELIMITER ;
This procedure will execute and create the procedure but when called using the following:
call fill_roughing(3,2,1)
The following message is rec'vd:
! OUT or INOUT argument 3 for routine 502_Coater.fill_roughing is not a variable
Any Ideas - Thanks
Subject
Views
Written By
Posted
OUT Params and error 1414
12596
November 17, 2005 02:21PM
5522
November 17, 2005 05:11PM
3562
November 18, 2005 01:40PM
3545
November 18, 2005 03:35PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.