Subject: | Incompatibility with Getopt::Long 2.48 |
Date: | Sun, 8 Nov 2015 22:01:18 +0100 |
To: | bug-sql-splitstatement [...] rt.cpan.org |
From: | Emmanuel Seyman <emmanuel [...] seyman.fr> |
One of SQL-Splitstatement's test fails if you run it against perl-Getopt-Long
2.48 (this release improved compatibility with GNU getopt).
The similar command is called in the test
$ perl -Ilib bin/sql-split -s --# -f --### -E t/data/create_table.sql
Current result:
Unknown option: E
Usage:
sql-split [ OPTIONS ] [ FILE(S) ]
sql-split --man
Expected result:
perl -Ilib bin/sql-split -s --# -f --### -E t/data/create_table.sql
CREATE TABLE foo (
foo_field_1 VARCHAR,
foo_field_2 VARCHAR
)--#CREATE TABLE bar (
bar_field_1 VARCHAR,
bar_field_2 VARCHAR
)--#
A temporary fix for the test is replacing using "-E" by "--empty".
I've added 'no_ignore_case' to the options used in bin/sql-split to fix the
issue (see attached patch).
Message body is not shown because sender requested not to inline it.