ODBC Oracle error for indexes() call "Invalid string or buffer length"

C

Chris McMahon

I have a Ruby program talking to MS ODBC Driver for Oracle on WinXP.
The script makes successful calls to columns() function, but for a call
to indexes(), returns

ora_index_p4.rb:185:in `indexes': S1090 (0) [Microsoft][ODBC driver for
Oracle]Invalid string or buffer length (ODBC::Error)

The code is something like:
#######################################
require 'odbc'
get_new = @conn.run("select table_name from dba_tables where owner =
'#{new_db_name}'")
tables = get_new.fetch_all

tables.each do |table|
columns = @conn.columns(table.to_s)
indexes = @conn.indexes(table.to_s")
end
##########################################


The strange part is that this call was working on this host last week,
so it's as if something has changed on the host. I did in fact remove
and re-install Ruby 185-21 Windows one-click installer, but the
behavior remains the same.

Any suggestions would be welcome.
 

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
474,222
Messages
2,571,140
Members
47,755
Latest member
Grazynkaa

Latest Threads

Top