[MDEV-4072] FOUND_ROWS() returns 1 if no statement has still been executed Created: 2013-01-23 Updated: 2013-01-23 Resolved: 2013-01-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Federico Razzoli | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
5.5 |
||
| Description |
|
Reading MySQL manual it's not clear what FOUND_ROWS() should return if no statement has been executed by the current session. However I think that 1 could be misleading. Enter password: This software comes with ABSOLUTELY NO WARRANTY. This is free software, Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> select found_rows();
--------------
-------------- |
| Comments |
| Comment by Elena Stepanova [ 2013-01-23 ] |
|
It's not quite true that no statement has been executed by the session; it's just that you didn't issue any statements, but the session did. If you turn on your general log, you'll see that there are several statements executed when you open a connection, last of them being |