Requires more input.

Anyway, this may be a bug in the underlying layer, since the code that
actually returns the row count is tested in insulation for this
https://github.com/doctrine/dbal/blob/1b71f926976f0b5b3bccd7443a26059f64342c67/tests/Doctrine/Tests/DBAL/Portability/StatementTest.php#L156-L165

Consider providing a functional test that shows the failure.


Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 6 January 2015 at 12:41, Pablo <[email protected]> wrote:

> I am not able to count the number of rows for a query using the sqlserver
> database, using rowCount it returns (-1) however there is at least a dozen
> records in the result set.
>
> I'm doing portability tests and the same funcinou procedure in mysql and
> postgress, but now I have this problem in sqlserver.
>
> $nLinhas = $rs->rowCount();
>
>         var_dump($nLinhas); // return (-1)
>         exit();
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to