Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: rt.cpan.org [...] colinogilvie.co.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: (no value)



Subject: Problem parsing MySQL table-options
This is perl, v5.8.8 built for i386-linux-thread-multi Linux theta 2.6.17-1.2139_FC5 #1 Fri Jun 23 12:40:16 EDT 2006 i686 athlon i386 GNU/Linux When trying to parse a MySQL dump, with the following table definition: CREATE TABLE `comment` ( `id` int(11) NOT NULL, `item_id` int(11) NOT NULL, `comment` text NOT NULL, `user_id` int(11) NOT NULL, `ip` varchar(30) NOT NULL, `date` timestamp NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM COMMENT='Comments to an item' AUTO_INCREMENT=1 ; SQL::Translator fails: [SQL::Translator] ERROR (line 38): Invalid statement: Was expecting comment, or use, or set, or drop, or create, or alter, or insert Removing the "COMMENT='Comments to an item'" section causes the SQL to then work.
Fixed since.