Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table to CSV Column Problem #34

Open
skynet86 opened this issue Aug 11, 2016 · 0 comments
Open

Table to CSV Column Problem #34

skynet86 opened this issue Aug 11, 2016 · 0 comments
Assignees
Labels

Comments

@skynet86
Copy link

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.

@diogob diogob self-assigned this Aug 18, 2016
@diogob diogob added the defect label Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants