Subject: | Bad SQL generates no error |
If:
my $dsn = "DBI:SQLite:$db_name";
my $dbh = DBIx::RunSQL->create(
dsn => $dsn,
sql => $sql_file,
);
... with a junk $sql_file consisting not of SQL but of Perl code, no
failure is reported. The call neither fatals out nor returns false.
Indeed, it returns in $dbh:
bless( {}, 'DBI::db' )
... which is exactly what's returned on success.
The file, $db_name, is created on failure just as in success; but on
failure is empty (0 bytes). I can test for this, of course; but I feel
this failure to fail is excessively permissive.