Skip to content

Proposed fix for #13 that keeps scalar -columns scalar #14

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Epiphero
Copy link

@Epiphero Epiphero commented Feb 9, 2018

If the -columns argument to select is scalar, pass it directly to SQL::Abstract without enclosing it in an array ref. I've added a test for the issue.

I've also changed the test for RT#99455 , because it used a scalar to test aliasing. Having looked at the original issue on rt.cpan.org, the original code used an array ref, so I think the updated rt_099455.t is still a good test.

If the -columns argument to select is a scalar, keep it that way
so that it will be treated as raw SQL by SQL:*Abstract.
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

Successfully merging this pull request may close these issues.

1 participant