Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Oracle Stored Procedures - Out Vars

Reply
Thread Tools

Oracle Stored Procedures - Out Vars

 
 
Vance Heron
Guest
Posts: n/a
 
      03-26-2006
Can anyone help me with the syntax for retriving an 'out'
variable from an Oracle Stored Procedure?

I'm able to succesfully call several stored procedures,
and can pass values in - both by putting the argument
into the SQL statment, or by using a ? in the stmt
then passing the value when I execute it, but have
not been able to retrieve the 'out' value.

I've tried sth.fetch()[0] ,and sth.get()

Any help will be appreciated.

Thanks,
Vance


 
Reply With Quote
 
 
 
 
KUBO Takehiro
Guest
Posts: n/a
 
      03-27-2006
Hi,

Vance Heron <> writes:

> Can anyone help me with the syntax for retriving an 'out'
> variable from an Oracle Stored Procedure?
>
> I'm able to succesfully call several stored procedures,
> and can pass values in - both by putting the argument
> into the SQL statment, or by using a ? in the stmt
> then passing the value when I execute it, but have
> not been able to retrieve the 'out' value.
>
> I've tried sth.fetch()[0] ,and sth.get()


ruby-dbi doesn't support out parameters.
Use a driver specific function:
sth.func(:bind_value, 0)

--
KUBO Takehiro
email:
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JPA, Oracle and stored procedures Curtis Java 4 06-26-2007 01:53 PM
How do I Execute Oracle Stored Procedures using SQLDataSource? Brew ASP .Net 0 09-13-2006 10:57 PM
Oracle Stored Procedures sam944 Ruby 7 06-27-2006 12:48 AM
install_driver(Oracle) failed: Can't load 'C:/Perl/site/lib/auto/DBD/Oracle/Oracle.dll' for module DBD::Oracle: load_file:The specified procedure could not be found at C:/Perl/lib/DynaLoader.pm line 230. Feyruz Perl Misc 4 10-14-2005 06:47 PM
Oracle and .NET stored procedures returning dataset... Ricardo Magalhaes ASP .Net 4 06-21-2005 08:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57