
24/05/2009, 20:06
|
 | | | Fecha de Ingreso: mayo-2008 Ubicación: san jose
Mensajes: 449
Antigüedad: 16 años, 10 meses Puntos: 7 | |
Respuesta: Mysqli hola encontre esto Cita: Beware when using stored procedures:
If you connect to the database and then call dbproc A followed by a call to db proc B and then close the connection to the db, the second procedure call will not work.
It looks like there is a bug in MYSQL or mysqli that returns an extra recordset than you would expect. It then doesn't let you call another stored procedure until you finish processing all the recordsets from the first stored procedure call.
The solution is to simply loop through the additional recordsets between calls to db procs. Here is a function that I call between db proc calls: y me dan este php code Código PHP: <?php
#--------------------------------
function ClearRecordsets($p_Result){
#--------------------------------
$p_Result->free();
while($this->Mysqli->next_result()){
if($l_result = $this->Mysqli->store_result()){
$l_result->free();
}
}
}
?> entonces como puedo usarlo? pero no a modo de objetos
__________________ X7CLOUD El webservice latino!
Compatible con mysql,sql,sqlitte. Compatible con extjs , sencha , smargwt, Gwt , Jquery , Charts, Streaming. |