Commit 848ea241 authored by James Lopez's avatar James Lopez

fix MySQL problem with query

parent 3d005033
......@@ -14,7 +14,7 @@ module Gitlab
@config = QueryConfig.get(stage)
query = build_query(&block)
ActiveRecord::Base.connection.execute(query.to_sql).to_a
ActiveRecord::Base.connection.exec_query(query.to_sql)
end
private
......
......@@ -19,7 +19,7 @@ module Gitlab
def url
url_method = "#{@entity}_url"
raise NotImplementedError.new("No Light URL builder defined for #{@entity.to_s}") unless respond_to?(url_method)
raise NotImplementedError.new("No Light URL builder defined for #{@entity}") unless respond_to?(url_method)
public_send(url_method)
end
......
Markdown is supported
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