in reply to Toggling dbi attribute within a connection?
Update (30 seconds later) After reading more of TFM, it seems that you are encouraged to muck with internals. I find this odd, but after recently porting Config::Tiny from p5 to p6 it isn't the first time I have seen it. DBI gives the example of limiting the scope as follows:delete $dbh->{RaiseError};
If you can't limit the scope and need to turn it off/on at will, I suggest using delete which was my first guess anyway.{ local $h->{RaiseError}; # localize and turn off for this block }
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Toggling dbi attribute within a connection?
by perrin (Chancellor) on May 12, 2005 at 15:30 UTC | |
by Limbic~Region (Chancellor) on May 12, 2005 at 15:32 UTC | |
by adrianh (Chancellor) on May 13, 2005 at 11:24 UTC | |
|
Re^2: Toggling dbi attribute within a connection?
by JupiterCrash (Monk) on May 12, 2005 at 15:28 UTC | |
by Limbic~Region (Chancellor) on May 12, 2005 at 15:35 UTC | |
by ikegami (Patriarch) on May 12, 2005 at 16:29 UTC | |
by JupiterCrash (Monk) on May 12, 2005 at 15:46 UTC |