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

feature request and possible branch pull request #1

Open
pstaabp opened this issue Jul 20, 2017 · 0 comments
Open

feature request and possible branch pull request #1

pstaabp opened this issue Jul 20, 2017 · 0 comments

Comments

@pstaabp
Copy link

pstaabp commented Jul 20, 2017

I've been working with this for a couple of weeks, trying to determine if it will work for my project. I'm running into the following problem.

I am building up a ResultSet using joins, and from different databases, I have columns with the same name (called name). For example I have a

->select("subj.name","ch.name","me.name")

and the result (from all or single) gives a hashref with only name in there, not subj.name, ch.name, me.name (which I think should be able to have another named reference).

I would love to have a way to rename columns. For example:

->select({column => "subj.name", name => "subject_name"})
->select({column => "ch.name", name => "chapter_name"})
->select({column => "me.name", name => "section_name"})

I would be willing to branch and try this. I was wondering if you are still maintaining this at all though.

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