Different api for v5.

This commit is contained in:
Karl Southern 2016-07-07 09:04:06 +01:00
parent 34708157f4
commit 0e2e883cd1

View File

@ -246,7 +246,7 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
def add_statement_event_params(statement, event)
@statement[1..-1].each_with_index do |i, idx|
value = event[i]
value = event.get(i)
value = if value.nil? and i.to_s =~ /%{/
event.sprintf(i)