FIX: CR LF prevented type validation for ints

This commit is contained in:
Gerhard Schlager 2017-12-18 13:46:02 +01:00
parent 336fd38dc8
commit bd28b6bbf2
1 changed files with 3 additions and 1 deletions

View File

@ -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))?