lib/rom/sql/relation.rb in rom-sql-1.3.1 vs lib/rom/sql/relation.rb in rom-sql-1.3.2
- old
+ new
@@ -52,10 +52,10 @@
table = opts[:from].first
if db.table_exists?(table)
if schema
- select(*schema.map(&:to_sym)).order(*schema.project(*schema.primary_key_names).qualified.map(&:to_sym))
+ select(*schema).order(*schema.project(*schema.primary_key_names).qualified)
else
select(*columns).order(*klass.primary_key_columns(db, table))
end
else
self