summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-11-09 16:03:47 +0100
committerJames Lopez <james@jameslopez.es>2016-11-17 08:22:58 +0100
commit848ea241db74ffc160e61c23775e336c207e65af (patch)
tree466a01cbeac059ad766617732c16c0bb5a2cc86c /lib/gitlab/cycle_analytics
parent3d00503368c355a4a9a45cda0e6673580074d2da (diff)
downloadgitlab-ce-848ea241db74ffc160e61c23775e336c207e65af.tar.gz
fix MySQL problem with query
Diffstat (limited to 'lib/gitlab/cycle_analytics')
-rw-r--r--lib/gitlab/cycle_analytics/events_query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/cycle_analytics/events_query.rb b/lib/gitlab/cycle_analytics/events_query.rb
index 7a27e099be3..9d69e267d8d 100644
--- a/lib/gitlab/cycle_analytics/events_query.rb
+++ b/lib/gitlab/cycle_analytics/events_query.rb
@@ -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