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
So the problem is caused by using $mode parameter instead of class property $adodbFetchMode (set by parent constructor). Problem is also present in other drivers, will add relevant tags.
According to git bisect, the culprit is 5c9e24c. I'll look into it.
Oh, one of those. 😄
Fix an overarching issue in the app's architecture; then the wheels fall off everywhere else.
Usually because the app made assumptions based on the now corrected bug, or compensated for it in some way that is no longer applicable.
I've done it too, fix one bug, find 10 more. as a result. In the end the codebase gets better. 👍
It looks like the parent class $fetchMode variable is not propagating down to the drivers.
Probably this at the beginning of the drivers will set things right.
if ($mode === false) {
$mode = $this->fetchMode;
}
Unless the $mode flag for the drivers doesn't need to be passed anymore in which case, simply
Verified locally, both approaches to this issue correct it.
If you want, I'll go through and add the fix to the drivers changed in the git bisect above & put it together into a PR for you.
Would you want the single line or if block fix?
If you want the single line fix, is the $mode parameter for the drivers even necessary anymore?
Description
The
metacolumns()
function is returning different info in the master branch compared to the last release.Environment
Steps to reproduce
Detailed, step-by-step instructions to reproduce the behavior, including:
Expected behavior
master branch code returns 255.
Additional context
Found this while working on #978
Reproduced locally and in CI.
The text was updated successfully, but these errors were encountered: