MDB2 Question - MDB2_ERROR_NOT_FOUND - positions array is null!

From: Date: Tue, 13 Jun 2006 08:27:32 +0000
Subject: MDB2 Question - MDB2_ERROR_NOT_FOUND - positions array is null!
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-42927@lists.php.net to get a copy of this message
Hi, This is my first post to the list. Please direct me if a more appropriate list exists for MDB2 questions. I've scanned the PEAR and MDB2 websites, but couldn't find one. My question: I am using 'autoExecute()' to delete a record from a MySQL table. I noticed that it is raising an Error that I cannot understand. Despite the error, the record is deleted successfully, so I'm confused by this. Specifically, the following is eventually executed during 'autoExecute()': MDB2::bindValue()
      :
       if (!array_key_exists($parameter, $this->positions)) {
           return $this->db->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
               'bindValue: Unable to bind to missing placeholder:
'.$parameter);
       }
      :
After strategically inserting print_r(), I discovered that the $this->positions array is null. Clearly, the code thinks this is an error condition. Despite this error, the autoExecute() completes successfully, ( i.e. the database record is deleted as desired). Any thoughts on this topic much appreciated. Deadlines are tight. Kind regards, LFaR. PS: Much, much, much kudos to the authors of MDB2!

« previous php.pear.dev (#42927) next »