Returns the last error code and message stored in the connection object.
sqlany_error ( $conn )
Returns a 2-element array that contains the SQL error code as the first element and an error message string as the second element.
For the error code, positive values are warnings, negative values are errors, and 0 is success.
code, msg = api.sqlany_error( conn ) print "Code=#{code} Message=#{msg}\n"