Anyone know how to pass a reference cursor INTO a stored proc via OCI8

J

Jason Vogel

I'm trying...

tcursor = OCI8::Cursor.new(OCI8::mad:@env, OCI8::mad:svc, OCI8::mad:ctx)

plsql.bind_param(':st_tier_label_in', tcursor, OCI8::Cursor)

Error:
ruby ste_OCI8.rb
C:/Develop/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': ./ste_get_product_version_list.rb:70: parse
error, unexpected tCVAR (SyntaxError)
tcursor = OCI8::Cursor.new(OCI8::mad:@env, OCI8::mad:svc, OCI8::mad:ctx)
^
../ste_get_product_version_list.rb:70: parse error, unexpected tIVAR
tcursor = OCI8::Cursor.new(OCI8::mad:@env, OCI8::mad:svc, OCI8::mad:ctx)
^
../ste_get_product_version_list.rb:70: parse error, unexpected tIVAR
tcursor = OCI8::Cursor.new(OCI8::mad:@env, OCI8::mad:svc, OCI8::mad:ctx)
^ from
C:/Develop/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from ste_OCI8.rb:3

Thanks,
Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top