-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
Description
Calling a stored procedure results in an error:
React\MySQL\Exception: PROCEDURE test.simple can't return a result set in the given context in [path to my project]/react/mysql/src/Io/Parser.php on line 231
To reproduce, define a simple MySQL stored procedure:
mysql> delimiter //
USE test
CREATE PROCEDURE simple()
BEGIN
SELECT CURRENT_DATE;
END;
//
call test.simple()//
+--------------+
| CURRENT_DATE |
+--------------+
| 2023-02-17 |
+--------------+
In PHP:
$dbh->query('CALL test.simple()', [])
->then(function (QueryResult $res) {
var_dump([$res]);
}, function ($ex) {
var_dump($ex);
});
devblack