in reply to Re: Re: Sqlite DBI $sth->rows
in thread Sqlite DBI $sth->rows

...RaiseError does not apply to the connect call...

Yes, it does apply. If it doesn't, then it's a bug in the DBD. So you don't need an 'or die ...' on the connect when you use RaiseError

Replies are listed 'Best First'.
Re: Re: Re: Re: Sqlite DBI $sth->rows
by Anonymous Monk on Oct 22, 2003 at 20:08 UTC

    > ...RaiseError does not apply to the connect call...

    Correct!

    >> Yes, it does apply. If it doesn't, then it's a bug in the DBD. So you don't need an 'or die ...' on the connect when you use RaiseError

    Incorrect. If the connect fails, no $dbh is returned. With no $dbh, the fact that $dbh->{RaiseError} is set to 1 is irrelevant (and unknowable).
      With no $dbh, the fact that $dbh->{RaiseError} is set to 1 is irrelevant (and unknowable).

      And why wouldn't DBI 'know' that you've set RaiseError to 1?

      And see jeffa's reply below.