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

Get rid of implicit type conversion #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zloynemec
Copy link

We were experiencing error with invalid type comparison on the following software:

  • ruby 2.3.6
  • psql 9.5.10
  • Redmine 3.4.3

ActionView::Template::Error (PG::UndefinedFunction: ERROR: operator does not exist: boolean = integer LINE 1: SELECT COUNT(*) FROM "time_loggers" WHERE (paused = 0 and us... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. : SELECT COUNT(*) FROM "time_loggers" WHERE (paused = 0 and user_id != 115)): 52: <% if User.current.allowed_to?(:view_others_time_loggers, nil, :global => true) %> 53: <div id="all-time-loggers-list"> 54: <h3><%= l(:time_logger_label_other_time_loggers) %></h3> 55: <% if !@time_loggers.nil? and !@time_loggers.empty? %> 56: <div class="autoscroll"> 57: <table class="list"> 58: <thead> plugins/time_logger/app/views/time_loggers/index.html.erb:55:in

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

Successfully merging this pull request may close these issues.

1 participant