We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f73167 commit 2b7516eCopy full SHA for 2b7516e
CHANGELOG.md
@@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
6
## [Unreleased]
7
+### Fixed
8
+- metrics-postgres-query.rb: Add a nil check to avoid failure when the query result is empty (@eheydrick)
9
10
## [1.4.0] - 2017-08-04
11
### Added
bin/metrics-postgres-query.rb
@@ -114,7 +114,7 @@ def run
114
value = if config[:count_tuples]
115
res.ntuples
116
else
117
- res.first.values.first
+ res.first.values.first unless res.first.nil?
118
end
119
120
if config[:multirow] && !config[:count_tuples]
0 commit comments