From bd28b6bbf24932014efee3b84ac05f6e83e44764 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Mon, 18 Dec 2017 13:46:02 +0100 Subject: [PATCH] FIX: CR LF prevented type validation for ints --- plugin.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 62749d7..06b3727 100644 --- a/plugin.rb +++ b/plugin.rb @@ -872,7 +872,9 @@ SQL def self.create_from_sql(sql, opts = {}) in_params = false ret_params = [] - sql.split("\n").find do |line| + sql.lines.find do |line| + line.chomp! + if in_params # -- (ident) :(ident) (= (ident))?