in reply to Re^3: Can I get the actual error for DBI->execute() ?
in thread Can I get the actual error for DBI->execute() ?
So the code below gave me the most detail. I tried checking for $dbHandle->err after the prepare statement but it returned nothing.
And I just wanted to just be clear: setting RaiseError => 1 does cause the script to exit immediately, yes?
Thanks for everyone's help.sub insertItem { (my $insertCom) = @_; $dbHandle=$db->prepare($insertCom); my $result = $dbHandle->execute(); if ($dbHandle->err || $dbHandle->errstr) { $logger->debug("err | $DBI::err | $DBI::errstr"); } return $result; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Can I get the actual error for DBI->execute() ?
by soonix (Chancellor) on Jun 22, 2024 at 13:57 UTC | |
|
Re^5: Can I get the actual error for DBI->execute() ?
by Danny (Chaplain) on Jun 21, 2024 at 20:34 UTC | |
|
Re^5: Can I get the actual error for DBI->execute() ?
by Marshall (Canon) on Jun 23, 2024 at 02:21 UTC | |
by Danny (Chaplain) on Jun 23, 2024 at 02:35 UTC | |
by Marshall (Canon) on Jun 24, 2024 at 13:16 UTC | |
by Danny (Chaplain) on Jun 24, 2024 at 14:40 UTC | |
by Marshall (Canon) on Jun 24, 2024 at 18:05 UTC |