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

rename issue - renaming more than one columns #133

Open
gowda opened this issue Dec 31, 2012 · 0 comments
Open

rename issue - renaming more than one columns #133

gowda opened this issue Dec 31, 2012 · 0 comments

Comments

@gowda
Copy link
Contributor

gowda commented Dec 31, 2012

(-> (project items [:content :id :user_id]) (join users (where (= :items.user_id :users.id))) (rename {:items.id :idx}))

generates

SELECT items.content,items.id,items.user_id,users.* FROM items AS items(content,idx,user_idx) JOIN users ON (items.user_id = users.id)

this sql query renames two columns for 'items' table, 'id' and 'user_id'. the intent is to rename only one column 'id' to 'idx'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant