-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stored proc with In-Out "id" parameter bound to "undefined" randomly fails #459
Comments
p.s. if I change the data type of |
if i pass in an actual integer value for the |
Yay! A reproducible testcase. Will need to debug. (I wonder if this is related to #322?) |
FWIW, as a workaround we changed our logic to check if the id param is either null or 0, to do an insert. i'm passing 0 instead of undefined, now, and it's working. this is an acceptable workaround for us while the real issue is uncovered |
@derickbailey sorry the fix didn't make 1.10. |
@derickbailey This is fixed in 1.10.1. Thanks for reporting it. |
great, thanks @cjbj! i'll get my app upgraded and test the fix as soon as i can (probably next week). if you don't hear back, assume it worked and i forgot to reply to say it was good to go :) |
I have an issue where the oracle library randomly fails when using an stored proc with an "id" parameter set to
undefined
.The stored procedure itself will check for
null
in the id and do an insert into a table, or an update based on the id, if one is supplied.The id parameter is an in/out param.
Randomly, the call to this stored procedure will fail with this error:
The SQL package with sproc and table here, will reproduce the problem: https://gist.github.com/derickbailey/63f5ee10b75d783215c265fb641f2e48
The execution of this code will succeed sometimes and fail other times.
For example, in my test of the package at that gist, it ran fine 3 times and then failed the 4th time.
I have not been able to consistently reproduce the error on command. It happens randomly, as far as I can tell. Sometimes it will fail twice in a row, other times it will fail once and then work 3 or 4 times.
Any help on resolving this is greatly appreciated.
The text was updated successfully, but these errors were encountered: