BigW Consortium Gitlab

Commit 848ea241 by James Lopez

fix MySQL problem with query

parent 3d005033
...@@ -14,7 +14,7 @@ module Gitlab ...@@ -14,7 +14,7 @@ module Gitlab
@config = QueryConfig.get(stage) @config = QueryConfig.get(stage)
query = build_query(&block) query = build_query(&block)
ActiveRecord::Base.connection.execute(query.to_sql).to_a ActiveRecord::Base.connection.exec_query(query.to_sql)
end end
private private
......
...@@ -19,7 +19,7 @@ module Gitlab ...@@ -19,7 +19,7 @@ module Gitlab
def url def url
url_method = "#{@entity}_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) public_send(url_method)
end 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