| Bug #31290 | FOUND_ROWS() returns 1 for some queries | ||
|---|---|---|---|
| Submitted: | 28 Sep 2007 22:59 | Modified: | 28 Sep 2007 23:29 |
| Reporter: | Matt Castetter | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
| Version: | 5.0.45 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | found_rows | ||
[28 Sep 2007 22:59]
Matt Castetter
[28 Sep 2007 23:29]
Matt Castetter
The key to resolving this was to do: SELECT FOUND_ROWS() as mycount and then reference mycount instead of using mysql_result and assuming it would be the first variable returned.
