为什么存储过程从不在事务中提交,当我执行下一个函数时,更改永远不会反映出来:
function insertar ($pIdEmpresa) {
$this->db->trans_begin();
$query = $this->db->query("CALL bdAltaDetFacturasLabsXSucursalAbonos($pIdEmpresa)");
if ($this->db->trans_status() === FALSE)
{
$this->db->trans_rollback();
}
else
{
$this->db->trans_commit();
}
return $query->result();
}
发布于 2014-12-07 11:39:12
可能是
$query = $this->db->query("CALL bdAltaDetFacturasLabsXSucursalAbonos(?)", $pIdEmpresa);
https://stackoverflow.com/questions/27339104
复制相似问题