From: Tom Hughes Date: Thu, 16 Apr 2009 21:16:09 +0000 (+0000) Subject: Handle MySQL/Postgres boolean differences. X-Git-Tag: live~7569^2~9 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/a68b8651d5bbc5af51eefc4759f6e28b75ecedf5 Handle MySQL/Postgres boolean differences. --- diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml index f739d9053..cab6f7124 100644 --- a/app/views/trace/_trace_header.rhtml +++ b/app/views/trace/_trace_header.rhtml @@ -17,9 +17,9 @@ <% end %>

-<% if @user and @user.traces.count(:conditions => "inserted=0") > 4 %> +<% if @user and @user.traces.count(:conditions => ["inserted=?", false]) > 4 %>

- You have <%= @user.traces.count(:conditions => "inserted=0") %> traces + You have <%= @user.traces.count(:conditions => ["inserted=?", false]) %> traces waiting for upload. Please consider waiting for these to finish before uploading any more, so as not to block the queue for other users.