File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
This CHANGELOG follows the format listed at [ Keep A Changelog] ( http://keepachangelog.com/ )
5
5
6
6
## [ Unreleased]
7
+ ### Fixed
8
+ - metrics-postgres-query.rb: Restored default value to only return first value in query. (@Micasou )
7
9
8
10
## [ 1.1.0] - 2017-04-20
9
11
### Added
Original file line number Diff line number Diff line change @@ -107,11 +107,11 @@ def run
107
107
value = if config [ :count_tuples ]
108
108
res . ntuples
109
109
else
110
- res . values
110
+ res . first . values . first
111
111
end
112
112
113
113
if config [ :multirow ] && !config [ :count_tuples ]
114
- value . each do |row |
114
+ res . values . each do |row |
115
115
output "#{ config [ :scheme ] } .#{ row [ 0 ] } " , row [ 1 ]
116
116
end
117
117
else
You can’t perform that action at this time.
0 commit comments