[Nomads-pm] DBI RaiseError
Brian Wisti
brianwisti at yahoo.com
Wed Mar 30 11:54:56 PST 2005
--- "Michael S. E. Kraus" <mkraus at wilddsl.com.au> wrote:
> G'day all...
>
> When doing something like the following:
>
> use DBI;
>
> my $dbh = DBI->connect("dbi:mysql:table:server", "user", "pass",
> {RaiseError
> => 1, AutoCommit => 0});
> ... <other stuff here> ...
> my @data = $dbh->selectrow_array("SELECT * FROM tablename WHERE a = ?
> and b
> = ?", {RaiseError => 0}, @values);
>
>
> I'm guessing that the RaiseError setting for the database connection
> stays
> set for all other executions (unless otherwise specified).
>
> Is this the case?
>
> TIA! :)
>
> Mike
That's always been my assumption over the years ... but ... umm ...
I've never actually tested it.
Assuming without testing? I'm a bad, bad coder. Naughty programmer!
Kind Regards,
Brian Wisti
http://coolnamehere.com/
More information about the Nomads-pm
mailing list