lib/mini_sql/postgres/connection.rb in mini_sql-1.4.0 vs lib/mini_sql/postgres/connection.rb in mini_sql-1.5.0
- old
+ new
@@ -190,24 +190,17 @@
result.to_a
ensure
result.clear if result
end
- def build(sql)
- Builder.new(self, sql)
- end
-
def escape_string(str)
raw_connection.escape_string(str)
end
private
def run(sql, params)
- if params && params.length > 0
- sql = param_encoder.encode(sql, *params)
- end
- raw_connection.async_exec(sql)
+ raw_connection.async_exec(to_sql(sql, *params))
end
end
end
end