Skip Menu |

This queue is for tickets about the DBIx-RunSQL CPAN distribution.

Report information
The Basics
Id: 70998
Status: resolved
Priority: 0/
Queue: DBIx-RunSQL

People
Owner: Nobody in particular
Requestors: xiong [...] cpan.org (daily)
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: 0.06



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.
Fixed in 0.06, thanks for the report!
It *is* fixed, thanks. Your included test suite spits out a great deal of output now.