Bug #48719 | Incorrect error occur "PROCEDURE %s can't return a result set in th" | ||
---|---|---|---|
Submitted: | 12 Nov 2009 6:37 | Modified: | 14 Nov 2009 4:47 |
Reporter: | Anton Pribora | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | 5.1.38-log | OS: | FreeBSD (7.2) |
Assigned to: | CPU Architecture: | Any | |
Tags: | php, prepared statements, stored procedure |
[12 Nov 2009 6:37]
Anton Pribora
[12 Nov 2009 7:21]
Valeriy Kravchuk
You should set CLIENT_MULTI_RESULTS flag for connection. Check http://dev.mysql.com/doc/refman/5.1/en/c-api-multiple-queries.html.
[12 Nov 2009 8:03]
Anton Pribora
Thanks! <?php // Connect to database with CLIENT_MULTI_RESULTS flag mysql_connect('localhost', 'root', '', null, 131072); ... ?>
[12 Nov 2009 11:31]
Valeriy Kravchuk
So, I assume it helped and this problem was not a result of any bug in MySQL. Correct me if I am wrong.
[14 Nov 2009 4:47]
Anton Pribora
Perhaps it is not bug, but it looks very strange. In any case, thank you!