How to get data from database as string

Hi all,

How can i read a cell from database and retrieve as a string in ruby
with OCI8?
I was doing like this and didn't succeed:
cursor=conn.parse("Select name
                   From empl where ssn=123456789")
cursor.define(1, String, 20)
cursor.exec()
puts cursor
conn.logoff

Puts statement only print the memory address, doesn't print the string.

Thanks,
Maung

···

--
Posted via http://www.ruby-forum.com/.