On May 8, 3:36 am, Klaus Humme <li...@ruby-forum.com> wrote: > Okay, I've choesen an other table with only 11 columns and listed them > all: > > class MandateFile < ActiveRecord::Base > > # fix non-standard table and primary key name conventions > set_table_name :AZLOELOG > set_primary_key :D_AZLOGNR > > alias_attribute :id, :D_AZLOGNR > alias_attribute :annotext_az, :D_AZLOAGAZ > alias_attribute :name_debtor, :D_AZLOGRUB1 > alias_attribute :name_creditor, :D_AZLOGRUB2 > alias_attribute :delete_date, :D_AZLOGDAT > alias_attribute :delete_user, :D_AZLOGUSER > alias_attribute :not_used, :D_AZLOGFREE > alias_attribute :log_sign, :D_AZLOGKE > alias_attribute :delete_year, :D_AZLOGAZJAHR > alias_attribute :delete_counter, :D_AZLOGAZZAEHL > alias_attribute :reserved, :D_AZLOGRES > > end > > I've also switched the database access to 'read+write'. Column's > D_AZLOGNR datatype is integer. IMHO I did and checked all that Bryan > told me, but the result is the same: ActiveRecord::JDBCError: Invalid > column number > > Any mory suggestions?
Do you get the same behavior if you just call 'MandateFile.columns'? I suspect you will - this sounds like an issue with the JDBC driver rather than your code. You might want to try the AR-JDBC JIRA and/or mailing lists: http://kenai.com/jira/browse/ACTIVERECORD_JDBC --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.