lib/rom/sql/extensions/postgres/commands.rb in rom-sql-1.0.0.beta2 vs lib/rom/sql/extensions/postgres/commands.rb in rom-sql-1.0.0.beta3
- old
+ new
@@ -10,10 +10,10 @@
#
# @api private
def insert(tuples)
tuples.map do |tuple|
relation.dataset.returning(*relation.columns).insert(tuple)
- end.flatten
+ end.flatten(1)
end
# Executes multi_insert statement and returns inserted tuples
#
# @api private