Hi, Environment: Solaris 10, Orale 10g, Apache 2.2, Ruby 1.8.4, Rails 1.2.3, Ruby OCI8 1.0.0-rc2
As soon as I compiled and installed the Ruby/OCI8 interface, I got the following error from my application: ========================= [notice] mod_fcgid: call /export/home/invido/invido/portal2/public/ dispatch.fcgi with wrapper /usr/local/bin/ruby /export/home/invido/ invido/portal2/public/dispatch.fcgi /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ active_record/connection_adapters/oracle_adapter.rb:536: undefined method `define_a_column' for class `OCI8::Cursor' (NameError) ... ========================= Looking around, I got a lot of hits pointing to environment settings (LD_LIBRARY_PATH, etc.), for example: http://dev.rubyonrails.org/ticket/1027 However, none of this had any effect and in any case this seems like this is a purely ruby problem. I mean it is missing a method somewhere. Looking at the error in question: ========================== ... class OCI8 #:nodoc: # This OCI8 patch may not longer be required with the upcoming # release of version 0.2. class Cursor #:nodoc: alias :define_a_column_pre_ar :define_a_column # <--- line 536 def define_a_column(i) case do_ocicall(@ctx) { @parms[i - 1].attrGet(OCI_ATTR_DATA_TYPE) } when 8 : @stmt.defineByPos(i, String, 65535) # Read LONG values when 187 : @stmt.defineByPos(i, OraDate) # Read TIMESTAMP values when 108 if @parms[i - 1].attrGet(OCI_ATTR_TYPE_NAME) == 'XMLTYPE' @stmt.defineByPos(i, String, 65535) else raise 'unsupported datatype' end else define_a_column_pre_ar i end end end ... =========================== It looks like it is redefining a function from the original Cursor class in /usr/local/lib/ruby/site_ruby/1.8/oci8.rb but it seems to be failing to find the "define_a_column" method. I am really stuck here. What can I do? Much appreciated, Kevin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
