FIX: CR LF prevented type validation for ints
This commit is contained in:
parent
336fd38dc8
commit
bd28b6bbf2
|
@ -872,7 +872,9 @@ SQL
|
||||||
def self.create_from_sql(sql, opts = {})
|
def self.create_from_sql(sql, opts = {})
|
||||||
in_params = false
|
in_params = false
|
||||||
ret_params = []
|
ret_params = []
|
||||||
sql.split("\n").find do |line|
|
sql.lines.find do |line|
|
||||||
|
line.chomp!
|
||||||
|
|
||||||
if in_params
|
if in_params
|
||||||
# -- (ident) :(ident) (= (ident))?
|
# -- (ident) :(ident) (= (ident))?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue