Skip to content

rename issue - renaming more than one columns #133

@gowda

Description

@gowda
(-> (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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions