Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: ... something in the environment?

by Veltro (Hermit)
on Feb 28, 2020 at 13:12 UTC ( [id://11113538]=note: print w/replies, xml ) Need Help??


in reply to ... something in the environment?

What does the stored procedure return in case the update or insert fails?

Replies are listed 'Best First'.
Re^2: ... something in the environment?
by chexmix (Hermit) on Feb 28, 2020 at 15:38 UTC
    In case of failure, the subroutine returns the nature of the failure (in $action, if I recall correctly -- I'm home sick). In this case the transaction is rolled back, too.

    The program is supposed to print the failure to an error log and quit.

      Ok, this is something you may need to verify. The reason why I asked is to be sure that the return values are valid SQL_INTEGER and SQL_VARCHAR. Usually the program writes back the values that it received by the bind instructions which are in this case undef. I'm not sure but I think that when the stored proc doesn't set them then undefs are returned and those may be invalid values for the type specified.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11113538]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-23 23:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found