wrong number of arguments (3 for 2)

setInt and setFloat
This commit is contained in:
aceoliver 2014-10-09 15:53:21 +08:00
parent 745876c736
commit 55751a7f4a

View File

@ -103,9 +103,9 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
# Most reliable solution, cross JDBC driver # Most reliable solution, cross JDBC driver
statement.setString(idx + 1, event[i].iso8601()) statement.setString(idx + 1, event[i].iso8601())
when Fixnum, Integer when Fixnum, Integer
statement.setInt(idx, + 1, event[i]) statement.setInt(idx + 1, event[i])
when Float when Float
statement.setFloat(idx, + 1, event[i]) statement.setFloat(idx + 1, event[i])
when String when String
statement.setString(idx + 1, event[i]) statement.setString(idx + 1, event[i])
else else