Skip to content

incorrect hash key when select alias by using symbol as arguments #20

@khiav223577

Description

@khiav223577

If use string, it's correct

User.pluck_h('id AS d')  # => [{"d"=>2}, {"d"=>1}] 

But if use symbol, the output is wrong

User.pluck_h(:'id AS d') # => [{"id AS d"=>2}, {"id AS d"=>1}] 

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