[sqlite] DBI-connect doesn't fail if no DB

2012-02-02 Thread Bill McCormick
In the following statement ... my $dbh = DBI-connect(dbi:SQLite:dbname=$dbfile,,) or croak $DBI::errstr; if $dbfile does not exist, it is created. I would like to croak if this happens. Is there some option for this? Thanks!! ___

Re: [sqlite] DBI-connect doesn't fail if no DB

2012-02-02 Thread Puneet Kishor
On Feb 2, 2012, at 2:18 PM, Bill McCormick wrote: In the following statement ... my $dbh = DBI-connect(dbi:SQLite:dbname=$dbfile,,) or croak $DBI::errstr; if $dbfile does not exist, it is created. I would like to croak if this happens. Is there some option for this? I don't