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

Fix fetchall_arrayref({}) behavior with no columns #31

Closed

Conversation

dmcgee
Copy link
Contributor

@dmcgee dmcgee commented Feb 9, 2016

When no columns were present in a result set, fetchall_arrayref({}) died
because the resulting arguments to bind_columns were incorrect (by
virtue of not existing at all). Since there can't be results with an
empty column set, this fixes the issue by returning an empty result set
in that case.

This issue was first referenced in November 2012:
http://www.nntp.perl.org/group/perl.dbi.users/2012/11/msg36513.html

When no columns were present in a result set, fetchall_arrayref({}) died
because the resulting arguments to bind_columns were incorrect (by
virtue of not existing at all). Since there can't be results with an
empty column set, this fixes the issue by returning an empty result set
in that case.

This issue was first referenced in November 2012:
http://www.nntp.perl.org/group/perl.dbi.users/2012/11/msg36513.html
@timbunce
Copy link
Member

Fixed in 49b330e. Thanks!

@timbunce timbunce closed this Apr 21, 2016
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.

None yet

2 participants