Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
I'm sitting here with my copy of Programming the Perl DBI and I'm confused. The following code hurts my wee little brain
my $dbh = DBI->connect('dbi:mydriver:mydsn', {AutoCommit=>0, RaiseError=>1});
puny weakling you say... why does this hurt your brain? The comment says that this enables AutoCommit and RaiseError. How is this accomplished by setting one of them to zero and the other to one? This doesn't make sense to me. Traditionally 1 is true and 0 is false, so by quick inspection it would seem that this code disables AutoCommit Can someone make the brain pain go away?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI AutoCommit clarification
by gmax (Abbot) on Sep 18, 2003 at 17:49 UTC | |
by mpeppler (Vicar) on Sep 18, 2003 at 17:57 UTC | |
by tantarbobus (Hermit) on Sep 18, 2003 at 18:43 UTC | |
by mpeppler (Vicar) on Sep 19, 2003 at 15:57 UTC | |
|
Re: DBI AutoCommit clarification
by NetWallah (Canon) on Sep 18, 2003 at 17:29 UTC | |
|
Re: DBI AutoCommit clarification
by hmerrill (Friar) on Sep 18, 2003 at 18:42 UTC | |
by Grygonos (Chaplain) on Sep 18, 2003 at 19:12 UTC | |
|
Re: DBI AutoCommit clarification
by Anonymous Monk on Sep 18, 2003 at 17:45 UTC | |
|
Re: DBI AutoCommit clarification
by Anonymous Monk on Jan 29, 2017 at 17:45 UTC |