Open
Description
Command:
User.select("Other_column").where(:id => [1,2,3]).copy_to "/tmp/users.csv"
Is generating the following SQL command:
COPY (SELECT name FROM "users" WHERE "users"."id" IN (1, 2, 3)) TO '/tmp/users.csv' WITH DELIMITER ',' CSV HEADER
※Mentioed column is not present in SQL command
Thank you.