in reply to DBI and getting trigger info
$dbh = DBI->connect ( $dbname, $dbuser, $dbpass, $dbd);
I would connect with RaiseError set, then you wouldn't have to check every dbi call you make. (Sure, errors usually seem to happen on the connect's and prepare's, but you never know what might happen on execute or fetches also). Using RaiseError would mean that you can't use the above deprecated form of connect, and it should instead look like so:
I would connect with RaiseError set, then you wouldn't have to check every dbi call you make. (Sure, errors usually seem to happen on the connect's and prepare's, but you never know what might happen on execute or fetches also). Using RaiseError would mean that you can't use the above deprecated form of connect, and it should instead look like so:
Also I'd make sure the trigger is really there by executing the same SQL statement in sqlplus (but you knew that already, right?).$dbh = DBI->connect ( "dbi:$dbd:$dbname", $dbuser, $dbpass, {RaiseErro +r => 1});
Update: And make sure that your connecting as the same user in both sqlplus and this perl script.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DBI and getting trigger info
by rbc (Curate) on Dec 19, 2002 at 00:00 UTC | |
by pfaut (Priest) on Dec 19, 2002 at 00:06 UTC |
In Section
Seekers of Perl Wisdom