[Rails] Re: Activerecord::JDBCError: Invalid column number
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?
--
Posted via http://www.ruby-forum.com/.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home