Guest User

Untitled

a guest
Nov 20th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.46 KB | None | 0 0
  1. dave@dave-N-A:~/rails_projects/everyLayar(master)$ rails c
  2. Loading development environment (Rails 3.2.6)
  3. 1.9.3p125 :001 > Point.update_points
  4. Point Load (1.8ms) SELECT `points`.* FROM `points`
  5. Deal Load (26.7ms) SELECT `icscoupons`.* FROM `icscoupons` WHERE `icscoupons`.`cpnId` = ? LIMIT 1 [["cpnId", 2]]
  6. SQL (0.1ms) BEGIN
  7. no need.
  8. (0.3ms) UPDATE `points` SET `title` = 'testing_deal', `summary` = 'testing_deal', `detail` = 'testing_deal', `price` = 100.0 WHERE `points`.`` IS NULL
  9. (0.1ms) ROLLBACK
  10. ActiveRecord::StatementInvalid: Mysql::Error: Unknown column 'points.' in 'where clause': UPDATE `points` SET `title` = 'testing_deal', `summary` = 'testing_deal', `detail` = 'testing_deal', `price` = 100.0 WHERE `points`.`` IS NULL
  11. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:346:in `prepare'
  12. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:346:in `exec_stmt'
  13. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:328:in `block in exec_delete'
  14. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
  15. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  16. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
  17. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:327:in `exec_delete'
  18. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:96:in `update'
  19. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
  20. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/persistence.rb:355:in `update'
  21. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/locking/optimistic.rb:68:in `update'
  22. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/attribute_methods/dirty.rb:74:in `update'
  23. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/timestamp.rb:70:in `update'
  24. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/callbacks.rb:272:in `block in update'
  25. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:403:in `_run__571539111__update__535854852__callbacks'
  26. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.6/lib/active_support/callbacks.rb:405:in `__run_callback'
  27. ... 14 levels...
  28. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status'
  29. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
  30. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/transactions.rb:208:in `transaction'
  31. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
  32. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/transactions.rb:241:in `block in save'
  33. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
  34. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/activerecord-3.2.6/lib/active_record/transactions.rb:240:in `save'
  35. from /home/dave/rails_projects/everyLayar/app/models/point.rb:47:in `block in update_points'
  36. from /home/dave/rails_projects/everyLayar/app/models/point.rb:40:in `each'
  37. from /home/dave/rails_projects/everyLayar/app/models/point.rb:40:in `update_points'
  38. from (irb):1
  39. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.6/lib/rails/commands/console.rb:47:in `start'
  40. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.6/lib/rails/commands/console.rb:8:in `start'
  41. from /home/dave/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.6/lib/rails/commands.rb:41:in `<top (required)>'
  42. from script/rails:6:in `require'
  43. from script/rails:6:in `<main>'1.9.3p125 :002 >
Add Comment
Please, Sign In to add comment