Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionView::Template::Error: Mysql2::Error: Unknown column 'entries.consultant' in 'where clause': SELECT entries.* FROM entries WHERE (entries.delivery_date BETWEEN '2018-01-01 00:00:00' AND '2018-12-31 23:59:59') AND (entries.consultant != 1 #25

Open
rollbar bot opened this issue Jan 13, 2018 · 0 comments

Comments

@rollbar
Copy link

rollbar bot commented Jan 13, 2018

View details in Rollbar: https://rollbar.com/spielhoelle/zelos/items/25/


Mysql2::Error: Unknown column 'entries.consultant' in 'where clause'
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb", line 120, in _query
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb", line 120, in block in query
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb", line 119, in handle_interrupt
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb", line 119, in query
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb", line 218, in block in execute
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb", line 589, in block in log
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb", line 583, in log
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb", line 218, in execute
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb", line 31, in execute
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb", line 225, in execute_and_free
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb", line 36, in exec_query
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 373, in select
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb", line 41, in select_all
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/query_cache.rb", line 93, in block in select_all
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/query_cache.rb", line 108, in cache_sql
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/query_cache.rb", line 93, in select_all
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb", line 10, in select_all
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/querying.rb", line 39, in find_by_sql
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/relation.rb", line 702, in exec_queries
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/relation.rb", line 583, in load
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/relation.rb", line 260, in records
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/relation/delegation.rb", line 38, in collect
  File "/Users/thomaskuhnert/develop/zelos/app/views/admin/summaries/_tree.html.haml", line 41, in block in _app_views_admin_summaries__tree_html_haml___2888289698663307470_70157953755220
  File "/Users/thomaskuhnert/develop/zelos/app/views/admin/summaries/_tree.html.haml", line 29, in each
  File "/Users/thomaskuhnert/develop/zelos/app/views/admin/summaries/_tree.html.haml", line 29, in each_with_index
  File "/Users/thomaskuhnert/develop/zelos/app/views/admin/summaries/_tree.html.haml", line 29, in _app_views_admin_summaries__tree_html_haml___2888289698663307470_70157953755220
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/template.rb", line 159, in block in render
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications.rb", line 166, in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/template.rb", line 354, in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/template.rb", line 157, in render
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/renderer/partial_renderer.rb", line 343, in render_partial
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/renderer/partial_renderer.rb", line 311, in block in render
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/renderer/abstract_renderer.rb", line 42, in block in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications.rb", line 164, in block in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb", line 21, in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications.rb", line 164, in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/renderer/abstract_renderer.rb", line 41, in instrument
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/renderer/partial_renderer.rb", line 310, in render
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/renderer/renderer.rb", line 47, in render_partial
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/helpers/rendering_helper.rb", line 35, in render
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 10, in block in render_with_haml
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/haml-4.0.7/lib/haml/helpers.rb", line 89, in non_haml
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/haml-4.0.7/lib/haml/helpers/action_view_mods.rb", line 10, in render_with_haml
  File "/Users/thomaskuhnert/develop/zelos/app/views/admin/summaries/index.html.haml", line 4, in _app_views_admin_summaries_index_html_haml___4254615560744086262_70158018734040
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/actionview-5.0.1/lib/action_view/template.rb", line 159, in block in render
  File "/Users/thomaskuhnert/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications.rb", line 166, in instrument
  File "/Users/thomaskuhnert/.rvm/gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants