MySQL Forums
Forum List  »  Stored Procedures

Re: OUT or INOUT argument is not a variable or NEW pseudo-variable in BEFORE trigger
Posted by: Mario Kosewski
Date: August 16, 2008 08:19AM

I solved this using PDO abstraction layer:

$dhb = new PDO(....);

$stmt = $dbh->prepare("CALL YourStoredProc(@resultId)");
$stmt->execute();
$sql = "select @resultId as Id";
$stmt = $dbh->prepare($sql);
$stmt->execute();
$myResultId = $stmt->fetchColumn();



Edited 1 time(s). Last edit at 08/16/2008 08:21AM by Mario Kosewski.

Options: ReplyQuote




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.