Welcome Guest, Not a member yet? Register   Sign In
How to call a Stored Procedure with 'out' parameter
#1

[eluser]fatman[/eluser]
Hi,

I have a procedure defined as :
Code:
CREATE DEFINER=`root`@`localhost` PROCEDURE `int_MapColumnToCustomFields`(IN in_tableId SMALLINT , OUT out_ErrMsg VARCHAR(500))


1. How do i call it?

2. How do i get the out param?

I tried (I tried with mysql and mysqli):

Code:
$sql = "call int_MapColumnToCustomFields(?,?);";
        $params = array($id,'');
        $this->db->query($sql, $params);

But I got this error:

Quote:OUT or INOUT argument 2 for routine dortengine.int_MapColumnToCustomFields is not a variable or NEW pseudo-variable in BEFORE trigger

call int_MapColumnToCustomFields('1','');


Messages In This Thread
How to call a Stored Procedure with 'out' parameter - by El Forum - 06-28-2011, 03:22 PM
How to call a Stored Procedure with 'out' parameter - by El Forum - 06-28-2011, 03:28 PM
How to call a Stored Procedure with 'out' parameter - by El Forum - 03-15-2012, 02:39 AM
How to call a Stored Procedure with 'out' parameter - by El Forum - 12-14-2012, 09:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB