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;
In reply to Re: win32::odbc error
by almut
in thread win32::odbc error
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |