Commit da0d8e04 authored by Sean McGivern's avatar Sean McGivern
Browse files

Fix `Routable.find_by_full_path` on MySQL

parent 89456430b153
...@@ -49,7 +49,7 @@ def find_by_full_path(path, follow_redirects: false) ...@@ -49,7 +49,7 @@ def find_by_full_path(path, follow_redirects: false)
if Gitlab::Database.postgresql? if Gitlab::Database.postgresql?
joins(:redirect_routes).find_by("LOWER(redirect_routes.path) = LOWER(?)", path) joins(:redirect_routes).find_by("LOWER(redirect_routes.path) = LOWER(?)", path)
else else
joins(:redirect_routes).find_by(path: path) joins(:redirect_routes).find_by(redirect_routes: { path: path })
end end
end end
end end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment