bigdaddy has asked for the wisdom of the Perl Monks concerning the following question:
$dbh = DBI->connect("dbi:Cassandra:host=localhost;keyspace=somekeyspace", undef, undef, { RaiseError => 1 });
When the database is down, it gets an error. However, just after the database got bounced, and this program restarted, it got past this line but printed an error message for this line:
my $last_connect_sth = $dbh->prepare("select somefield from sometable where someotherfield=?");
DBI db handle 0x1c506e0 cleared whilst still active at someprogram line 59.
dbih_clearcom (dbh 0x1c506e0, com 0x1cbd8f0, imp DBD::Cassandra::db):
FLAGS 0x180195: COMSET Active Warn RaiseError PrintError PrintWarn
PARENT DBI::dr=HASH(0x1c4ff18)
KIDS 0 (0 Active)
I'd expect prepare to die(), but the program kept running.
Are there DBI methods that still need error-checking after connecting with RaiseError set?
Thanks,
bigdaddy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI RaiseError not working
by bigdaddy (Initiate) on Apr 15, 2019 at 16:54 UTC |