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

> ...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).

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Sqlite DBI $sth->rows
by runrig (Abbot) on Oct 22, 2003 at 22:04 UTC
    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.