in reply to win32::odbc error
As far as I can tell from a quick look at the docs and the sources, the Sql() method returns undef upon success, and an error number otherwise. In other words, your || die ... is inappropriate here (as Sql() doesn't return true upon success). Try and die ... instead, or maybe somewhat more readable
my $err = $db->Sql($statement); die "..." if defined $err;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: win32::odbc error
by Anonymous Monk on Dec 01, 2009 at 22:49 UTC |