Skip to content

getRowCount with SQLSRV driver #433

@pswmauro

Description

@pswmauro

Version: latest (4.2.7) on windows with PHP 8.1
Correctly installed Microsoft SQL Server driver for PHP. Connection inizialized with:
$db = new Dibi\Connection([ 'driver' => 'sqlsrv', 'host' => 'localhost', 'username' => 'user', 'password' => 'password', 'database' => 'TEST', 'charset' => 'UTF-8', ]);
I can successfully exec
$result = $db->query($qry)
and
$all = $result->fetchAll();
but if use
$result->getRowCount()
it throws exception "Row count is not available for unbuffered queries".

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