dbi plugin: Removed excessive error reporting
authorPavel Rochnyack <pavel2000@ngs.ru>
Sat, 11 Aug 2018 19:47:15 +0000 (02:47 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sat, 11 Aug 2018 19:47:15 +0000 (02:47 +0700)
commit6b29f39c2213e209f0996105c78b77f034b983f9
treea44555c59840d94b88c6a1ba78b24ad537d6ddf3
parent065f3ea8879dde03344b397b07ad561ff3744d21
dbi plugin: Removed excessive error reporting

Latest libdbi code sets BADIDX error when no more rows is
in 'dbi_result_next_row()' (similar to 'dbi_result_prev_row()'
and to match library documentation).

There is confusing errors in Collectd logs due to this change.
Added a 'dbi_result_has_next_row()' check to solve.

Closes: #2894
src/dbi.c