Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MySQL-Diff CPAN distribution.

Report information
The Basics
Id: 76679
Status: open
Priority: 0/
Queue: MySQL-Diff

People
Owner: Nobody in particular
Requestors: himdel [...] seznam.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.43
Fixed in: (no value)



Subject: missing column name quotes cause invalid output for columns like `group` (+ various wishlist items)
Hi, MySQL::Diff doesn't quote column names and thus it sometimes generates output that can't be passed to mysql unchanged: ALTER TABLE std_grp CHANGE COLUMN grpid group int(10) unsigned NOT NULL COMMENT 'ID of group'; This fails because group is a keyword. If you change it to `group`, it works fine. That one is clearly a bug, but I have some more annoyances which should probably be classified wishlist and probably don't deservere their own tickets: * if the column name doesn't change, it should generate "MODIFY foo" instead of "CHANGE foo foo" * the canonical sql comment is --, not # * mysql-schema-diff outputting the database password doesn't seem smart * I can't set database names for the automatically created databases - would be useful for users without CREATE DATABASE privilege * it would be great if it were possible to run on two files without an mysql distance running, the docs says it creates the databases just to run mysqldump -d on them anyway so if I already have two .sql files obtained from mysqldump -d, it shouldn't be necesary Anyway thanks for the great tool, it may have some problems but it's the best I've found and the only one that satisfies my needs. Thanks, Martin Hradil
From: vstokes [...] stokesindustries.com
The same goes for columns that have "spaces" in them. I get this error (after I made a programming correction tols -l Table.pm - see my other post regarding Table.pm) from Database.pm: definition for field 'Insurance' duplicated in table 'quotation_master' at /usr/local/share/perl/5.12.4/MySQL/Diff/Database.pm line 269 The column 'Insurance' actually exists as: 'Insurance' 'Insurance Amount' 'Insurance Charge'