PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » SQL_Parser » Bug #4087

Comma not recognized after PRIMARY KEY statement

Details

Submitted2005-04-06 19:47 UTC
Fromepte at ruffdogs dot com
Assignedcybot
StatusClosed
PackageSQL_Parser
PHP VersionIrrelevant
Roadmaps0.5.1

Comments

[2005-04-06 19:47 UTC] epte at ruffdogs dot com

Description:
------------
This sql breaks:

Reproduce code:
---------------
CREATE TABLE `mpn_bannerfinish` (
`bid` int(11) NOT NULL auto_increment,
`cid` int(11) NOT NULL default '0',
`impressions` int(11) NOT NULL default '0',
`clicks` int(11) NOT NULL default '0',
`datestart` datetime default NULL,
`dateend` datetime default NULL,
PRIMARY KEY (`bid`),
KEY `idxbannerfinishcid` (`cid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Actual result:
--------------
Parse error: Expected identifier on line 9
PRIMARY KEY (`bid`),
^ found: ","