-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Implemented Statement::fetch(PDO::FETCH_COLUMN) in non-PDO driveres #2964
Conversation
@@ -272,6 +272,12 @@ public function fetch($fetchMode = null, $cursorOrientation = \PDO::FETCH_ORI_NE | |||
return false; | |||
} | |||
|
|||
$fetchMode = $fetchMode ?: $this->_defaultFetchMode; | |||
|
|||
if ($fetchMode == PDO::FETCH_COLUMN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use ===
here (and below)?
@@ -282,4 +282,13 @@ function (Statement $stmt) { | |||
), | |||
); | |||
} | |||
|
|||
public function testFetchInColumnMode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
: void
LGTM 👍 |
@morozov does this need a backport to 2.6.x? |
@Ocramius, yes. |
@lcobucci was this already backported? I didn't do that, so the milestone change may be incorrect until it's done. |
Fixes #2963.