Subject: | Unhelpful error message "No indices" from sqlt-diff |
With this input file:
create table a(b int, c int, KEY (b, c), KEY (c, b));
sqlt-diff dies like this:
$ sqlt-diff repro2.sql=MySQL repro2.sql=MySQL
No indices at /home/moritz/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/SQL/Translator/Parser/MySQL.pm line 991.
...propagated at /home/moritz/perl5/perlbrew/perls/perl-5.22.1/bin/sqlt-diff line 173.
MySQL accepts this code, so sqlt-diff should as well. If not, a better error message (at least mentioning the table name and duplicate keys) would be very useful.