|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-11 22:49 UTC] realbenzin at inbox dot lv
Description:
------------
When mysql stored procedures are called twice in a row I get mysqli error "Lost connection to MySQL server during query", it does not happen if I do it once or in row with simple sql statements... Mysql is ok, and no free_result is helping...
Reproduce code:
---------------
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);
Expected result:
----------------
That stored procedure would execute twice with no errors.
Actual result:
--------------
Mysqli error "Lost connection to MySQL server during query"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
Ok here is sp: DELIMITER $$ DROP PROCEDURE IF EXISTS `vt_sys`.`spRazList` $$ CREATE PROCEDURE `spRazList`(r_id int unsigned) BEGIN SELECT RAZ_ID, RAZ_NOS, RAZ_NMR, RAZ_KONTA_NR FROM RAZOTAJS WHERE RAZ_ID = IFNULL(r_id,RAZ_ID); END $$ DELIMITER ;