fix MySQL problem with query

This commit is contained in:
James Lopez 2016-11-09 16:03:47 +01:00
parent 3d00503368
commit 848ea241db
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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