in reply to Re^2: DB2 checking for an error on select
in thread DB2 checking for an error on select
I tried $sth->execute or die "Cant execute ($stmt) - $DBI::errstr\n"; but the or condition is not reached even thought the execute failedI think that the execute does not fail (even though it should because the table is offline) therefore the die is not reached.The reason the execute does not fail could be (I've seen it happen) that your client is configured in such a way that no data is sent to server (where the error would be detected).
Probably your client sends the first packet to the server when you do the fetch, so you should check for errors there.
To verify this theory try to tcpdump your session and check where the actual conversation between your client and the server occurs.
- Comment on Re^3: DB2 checking for an error on select
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: DB2 checking for an error on select
by dgarnier (Novice) on May 13, 2009 at 15:21 UTC | |
by morgon (Priest) on May 15, 2009 at 12:04 UTC | |
by dgarnier (Novice) on May 15, 2009 at 13:31 UTC |