Oracle Problem. Maybe driver


#1

EVerything runs ok on my local machine but when i copy my app to our
solaris server everything is fine until i try updating/inserting
something into the DB.

This is the error message :

wrong number of arguments (1 for 0)

RAILS_ROOT: config/…
Application Trace | Framework Trace | Full Trace

/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/oracle_adapter.rb:53:in
attributes_with_quotes_pre_oracle' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/oracle_adapter.rb:53:inattributes_with_quotes’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1719:in
update_without_lock' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/locking.rb:33:inupdate_without_callbacks’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:274:in
update_without_timestamps' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/timestamp.rb:39:inupdate’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1712:in
create_or_update_without_callbacks' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/callbacks.rb:249:increate_or_update’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1388:in
save_without_validation' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/validations.rb:724:insave_without_transactions’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
save' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/database_statements.rb:51:intransaction’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:91:in
transaction' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:118:intransaction’
/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/transactions.rb:126:in
save' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/associations/association_proxy.rb:110:inmethod_missing’
#{RAILS_ROOT}/app/models/contact.rb:83:in
make_active_contact_for_employee' #{RAILS_ROOT}/app/models/contact.rb:80:inmake_active_contact_for_employee’
#{RAILS_ROOT}/app/controllers/user_preferences_controller.rb:17:in
`change_active_contact’
/opt/tools/bin/mongrel_rails:18

As i do not get this problem on my local machine i am tempted to assume
that it is something to do with the oracle driver, not really sure.
Does anyone have any ideas?

Thanks, any help is appreciated,

Chris


#2

Has anyone else had this oracle problem?


#3

What problem?

On Apr 4, 2006, at 9:56 AM, Chris wrote:

Has anyone else had this oracle problem?


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


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


#4

There’s a bug in Rails 1.1, fixed in edge rails.


#5

On Tuesday, April 04, 2006, at 5:03 PM, Chris wrote:

/opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/
active_record/connection_adapters/oracle_adapter.rb:53:in
`attributes_with_quotes_pre_oracle’

As i do not get this problem on my local machine i am tempted to assume
that it is something to do with the oracle driver, not really sure.
Does anyone have any ideas?

Thanks, any help is appreciated,

Chris

It’s a regression introduced in Rails 1.1. There is a patch. It will
be fixed in Rails 1.1.1.

http://dev.rubyonrails.org/ticket/4457


Lori O.
http://blog.dragonsharp.com


#6

I’m having this problem, too. I’m not even using oracle, but rather
mysql.


#7

Ben A. wrote:

I’m having this problem, too. I’m not even using oracle, but rather mysql.

This problem is resolved in Rails 1.1.1