View Single Post
  #4 (permalink)  
Old 03-06-2008, 03:40 PM
brian3f brian3f is offline
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default

Hi,

Using the code you provided in the original post I would try changing the calls to the stored procedure this way:

PHP Code:
$stmt=$this->db->prepare("call sp1(?)");
$stmt->execute(array($param1));
$stmt->fetchAll();
$stmt->closeCursor();
if (
strtoupper(substr(PHP_OS03)) === 'WIN') {
    
$this->dbObj->closeConnection();

then try to call the sp again.

What does $this refer to in your code? Where are you trying to make this call from? In the above I assume that $this->db gets you a Zend_Db_Adapter_Abstract object.

Hope this helps,

Brian

Last edited by brian3f : 03-06-2008 at 03:41 PM. Reason: typo
Reply With Quote