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

Fix invalid fetch mode #15

Closed
wants to merge 6 commits into from

Conversation

neopheus
Copy link

Hi,

PHP Warning: PDO::query(): SQLSTATE[HY000]: General error: mode must be an integer in ...\vendor\filisko\pdo-plus\src\PDO.php:40

with

$stmt =$this->sut->query("SELECT * FROM users WHERE `name` = 'Filis'");
$data = $stmt->fetchAll(PDO::FETCH_CLASS, "User");

class User
{
    public $name;
    public $surname;
}

this pull request add new phpunit test and fix this problem

@filisko
Copy link
Owner

filisko commented Jul 21, 2021

Are you using v3?

@neopheus
Copy link
Author

no v4

@filisko filisko closed this in ee32e30 Jul 23, 2021
@filisko
Copy link
Owner

filisko commented Jul 23, 2021

thanks! @neopheus !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants