Closed mike-bourgeous closed 9 years ago
This can be reproduced using the scripts from issue #62: https://gist.github.com/mike-bourgeous/07d65f63d6b448de9a38
Ruby-plsql may close cursors used in other threads and try to use a closed cursor. In ruby-oci8, using a closed cursor causes various problems such as segmentation fault, nil comparison error in cursor.rb and so on. 6dc961bd0255f4b2ad8d960e02107245216e2dc4 fix it by raising an exception in the case.
Occasionally when I use the ruby-plsql gem to call a particular PL/SQL procedure, I get the following error in
OCI8::Cursor
:The PL/SQL method signature looks like this, and typically returns NULL in
errbuf
andretcode
:I call the procedure like this:
I'm not sure what exactly the ruby-plsql gem does from there.