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

Cursor moving during fetchAll #1

Closed
adamturcsan opened this issue Dec 13, 2016 · 0 comments
Closed

Cursor moving during fetchAll #1

adamturcsan opened this issue Dec 13, 2016 · 0 comments
Assignees
Labels

Comments

@adamturcsan
Copy link
Owner

PDOStatement moves cursor with 1 step during fetchAll which is absolutely wrong.
Should move none or all.

src/ReconnectingPDOStatement.php 131-136

    case 'fetch':
    case 'fetchAll':
    case 'fetchColumn':
    case 'fetchObject':
        $this->trackCursor($method);
        break;

src/ReconnectingPDOStatement.php 198-201

    protected function trackCursor()
    {
        $this->cursor->next();
    }
@adamturcsan adamturcsan self-assigned this Jan 5, 2017
adamturcsan added a commit that referenced this issue Jan 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant