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

DBAL-1028: [GH-709] [DBAL-1028] Fix fetching NULL values via fetchColumn() #958

Closed
doctrinebot opened this issue Oct 27, 2014 · 4 comments
Closed
Assignees
Labels
Milestone

Comments

@doctrinebot
Copy link

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of deeky666:

Url: #709

Message:

PDO drivers return null when retrieving a SQL NULL value from a column via Statement::fetchColumn().
However all native driver implementations except mysqli return false which according to the interface should only be returned if no more rows are available or an error occurred. So currently it is not possible to retrieve a SQL NULL value via Statement::fetchColumn() with those drivers.
This PR fixes this. Additionally if a non-existing column index is requested from the resultset, PDO also returns null whereas those mentioned native drivers return false. This is also fixed.

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-709] was assigned:
#709

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-709] was closed:
#709

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.5 milestone Dec 6, 2015
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants