8000 $stmt->rowCount doesn't use actual results · Issue #34 · jimbojsb/pseudo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
$stmt->rowCount doesn't use actual results #34
Open
@JTimNolan

Description

@JTimNolan

When creating a mocked select result from an array, the rowCount stays at 0. e.g.

$p->mock($query, [['id' => 1],['id' => 2],['id' => 3]]);
$stmt = $p->query($query);
echo $stmt->rowCount(); // Outputs 0, expected 3

Assuming I'm not just doing something wrong, I'd be happy to submit a PR for this, though it'd be helpful to be pointed in the right direction 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0