Skip Menu |

This queue is for tickets about the SQL-Translator CPAN distribution.

Report information
The Basics
Id: 50468
Status: resolved
Priority: 0/
Queue: SQL-Translator

People
Owner: Nobody in particular
Requestors: GWS [...] cpan.org
Cc: gisbert.selke [...] wido.bv.aok.de
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11003
Fixed in: 0.11005



CC: gisbert.selke [...] wido.bv.aok.de
Subject: Bug parsing MySQL "primary key (...) using btree"
The following valid MySQL table definition (as output by mysqldump) CREATE TABLE t (a int NOT NULL, PRIMARY KEY (a) USING BTREE); will trigger an error: ERROR (line 1): Invalid statement: Was expecting comment, or use, or set, or drop, or create, or alter, or insert, or delimiter, or empty statement
On Tue Oct 13 19:21:44 2009, GWS wrote: Show quoted text
> The following valid MySQL table definition (as output by mysqldump) > CREATE TABLE t (a int NOT NULL, PRIMARY KEY (a) USING BTREE); > will trigger an error: > ERROR (line 1): Invalid statement: Was expecting comment, or use, or > set, or drop, or create, or alter, or insert, or > delimiter, or empty statement
Please checkout and try current trunk: https://sqlfairy.svn.sourceforge.net/svnroot/sqlfairy/trunk/sqlfairy
It still does not work with a line like: UNIQUE KEY IDX_SAMPLE (entry_id,category_id) USING BTREE,
On Thu Feb 18 09:53:11 2010, SKNPP wrote: Show quoted text
> It still does not work with a line like: > > UNIQUE KEY IDX_SAMPLE (entry_id,category_id) USING BTREE,
Try latest trunk again please.
On Thu Feb 18 09:53:11 2010, SKNPP wrote: Show quoted text
> It still does not work with a line like: > > UNIQUE KEY IDX_SAMPLE (entry_id,category_id) USING BTREE,
In fact try SQL::Translator 0.11005
Assuming fixed. Feel free to reopen ticket if problem persists.