Re: MDB2 Question - MDB2_ERROR_NOT_FOUND - positions array is null!
| From: | Lukas Smith | Date: | Tue, 13 Jun 2006 08:56:14 +0000 |
| Subject: | Re: MDB2 Question - MDB2_ERROR_NOT_FOUND - positions array is null! | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-42928@lists.php.net to get a copy of this message | ||
Matt Muggeridge wrote:
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()well this should only happen if you specify placeholder values for placeholders that do not exist. could you provide the code? regards, Lukas: 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.