Skip Menu |

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

Report information
The Basics
Id: 2888
Status: resolved
Worked: 5 min
Priority: 0/
Queue: SQL-Translator

People
Owner: kclark [...] cpan.org
Requestors: soeren [...] advis.de
Cc:
AdminCc:

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



Subject: Keys are not translated right to SQLite
Asuming the following MySQL-Table definiton: CREATE TABLE image ( id int(11) NOT NULL auto_increment, topic varchar(200) NOT NULL default '', template_id varchar(200) NOT NULL default '', href text NOT NULL, PRIMARY KEY (id), KEY topic (topic(200),template_id(50)) ); The SQLite producer produces: CREATE TABLE image ( id INTEGER PRIMARY KEY NOT NULL, topic varchar(200) NOT NULL DEFAULT '', template_id varchar(200) NOT NULL DEFAULT '', href text NOT NULL ); CREATE INDEX topic_image on image (topic(200), template_id(50)); which is unfortunately not undestood by SQLite. CREATE INDEX topic_image on image (topic, template_id); instead is. Nevertheless thanx for that great project!!!
RT-Send-CC: sqlfairy-developers [...] lists.sourceforge.net
Changed SQLite producer to strip "(\d+)$" from the fields of the index.