Re: Problem executing query in mysqli
| From: | Brett Bieber | Date: | Mon, 14 Sep 2009 14:53:31 +0000 |
| Subject: | Re: Problem executing query in mysqli | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30039@lists.php.net to get a copy of this message | ||
On Fri, Sep 11, 2009 at 8:27 PM, Joshua J. Kugler <joshua@eeinternet.com> wrote:
> I am trying to execute a query using the MDB2 mysqli driver.
>
> MDB2 version: 1.292
> mysqli version: 1.162
Hmmm. This doesn't look like a valid MDB2 version number. MDB2 only
has versions that begin with 2.
http://pear.php.net/package/MDB2/download/
> When I ->execute() the query, I get this error in the logs:
>
> PHP Fatal error: Call to a member function mapPrepareDatatype() on a
> non-object in /home/blueeuro/php/MDB2/Driver/mysqli.php on line 1514
>
> I only found one reference this error on google, it was in Russian, with
> the PostgreSQL driver, and eand they didn't solve the problem (I had a
> friend translate).
>
> The line of code referenced in the error is this one:
>
> $parameters[1].= $this->db->datatype->mapPrepareDatatype($type);
>
> I do not know enough about MDB2 to know where datatype is supposed to be
> defined, nor how it is being undefined.
>
> Anyone have any pointers?
I would make sure you're using the latest version of the package, and
driver. To be sure, you can just run the upgrade command for those
packages -
pear upgrade MDB2 MDB2_Driver_mysqli
and if you're still having problems I would file a bug report with the
full details.
--
Brett Bieber