You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 returnnull
when retrieving a SQLNULL
value from a column viaStatement::fetchColumn()
.However all native driver implementations except
mysqli
returnfalse
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 SQLNULL
value viaStatement::fetchColumn()
with those drivers.This PR fixes this. Additionally if a non-existing column index is requested from the resultset,
PDO
also returnsnull
whereas those mentioned native drivers returnfalse
. This is also fixed.The text was updated successfully, but these errors were encountered: