lib/sqlcomposer/cli.rb in sqlcomposer-0.1.0 vs lib/sqlcomposer/cli.rb in sqlcomposer-0.1.1

- old
+ new

@@ -26,10 +26,10 @@ end def parse_params(raw_sql, line) return [] unless raw_sql raw_params = line.split(/=>\s+Parameters:/).last.chomp.strip - raw_params.split(/,\s*/).map do |raw_param| + raw_params.split(/(?<=\)), /).map do |raw_param| raw_param.strip.scan(/([^()]+)\((\w+?)\)/).first end end def compose_sql(raw_sql, params)