Re: Re: mdb2 autoexec

From: Date: Thu, 06 Jul 2006 19:30:28 +0000
Subject: Re: Re: mdb2 autoexec
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24586@lists.php.net to get a copy of this message
Mark Steudel wrote:
Mysql: 4.1.14 Mdb2: 2.1.0 Mdb2_driver_mysql: 1.1.0 Mark -----Original Message----- From: Lukas Smith [mailto:lsmith@php.net] Sent: Thursday, July 06, 2006 11:56 AM To: Mark Steudel Cc: pear-general@lists.php.net Subject: [PEAR] Re: mdb2 autoexec Mark Steudel wrote:
I'm having problems doing a autoexecute in mdb2. Here's my error: DBMS/Debug Message: _doQuery: Could not execute statement[Native code:
1064]
[Native message: You have an error in your SQL syntax; check the manual
that
corresponds to your MySQL server version for the right syntax to use near 'long, gmt, daylight) VALUES (?, ?, ?, ?, ?)' at line 1] MDB2 Error: syntax error line: 27
What MySQL version are you using? What is the version of MDB2 and MDB2_Driver_mysql(i)?
Lorenzo mailed me that the issue seems to be related to use the of the reserved word "long". Either quote the identifier manually using quoteIdentifier() or set the "quote_identifier" option to true. regards, Lukas

« previous php.pear.general (#24586) next »