in reply to Re^2: Win32::ODBC query error
in thread Win32::ODBC query error
Reading the docs for Win32::ODBC, it says that ->Sql() "Returns ? on success, or an error number on failure." .. apparently (after looking at the source) they meant s/\?/undef/ ... BUT you have that '||' in there, so on _success_ it's going to die. You need to change it to something like:$db2->Sql($sql2)|| die("Query error");
my $rc = $db2->Sql($sql2); die sprintf("Query error!! RC: %s ; Error: %s ; SQL: %s", $rc, $db2- +>Error(), $sql2) if $rc;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Win32::ODBC query error
by nicpon (Initiate) on Aug 30, 2005 at 20:47 UTC |