mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-06-27 10:02:11 +00:00
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…
x
Reference in New Issue
Block a user