in reply to Re: Database Record Order
in thread Database Record Order
If the connect fails (see below), it returns "undef" and sets both $DBI::err and $DBI::errstr. (It does not set $!, etc.) You should generally test the return status of "connect" and "print $DBI::errstr" if it has failed.Don't get me wrong: I'd love it if DBI behaved in the manner in which you describe. However, I'm willing to do the error checking once if it does not. :-)
thor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
3Re: Database Record Order
by jeffa (Bishop) on Dec 31, 2003 at 15:21 UTC | |
by thor (Priest) on Dec 31, 2003 at 16:01 UTC |