This function is not portable. $rs->rowCount() only reliably works for
UPDATE, DELETE and INSERT statements across all databases.

On Tue, Jan 6, 2015 at 12:41 PM, 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