New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: #1287 FOUND_ROWS() is deprecated #15652
Comments
|
Why do I get |
|
Are you working on this @williamdes ? Can you help me with the steps in reproducing this issue? |
|
The warning does not appear when server is MariaDb. working on this. |
|
@victorphoenix3 The warning is not shown because FOUND_ROWS is not being deprecated for MariaDB, but only for MySQL. You can check this by googling or also refer from here https://core.trac.wordpress.org/ticket/47280 |
|
@kartik1000 so should we modify the sql to not use SQL_CALC_FOUND_ROWS anywhere. Right? |
|
Yes I think this should be the best possible solution since, It will do the same task for MariaDB as well and we will not need FOUND_ROWS for it as well. What do you think @williamdes |
I agree, if we can migrate out of FOUND_ROWS totally without breaking all the current servers supported |
|
I'll try to fix this :) |
|
@williamdes Moreover we might as well reduce the complexity of counting rows which is needed for pagination and it might also fix #15285 . What do you think? |
|
I am working on it...
|
That would be cool if possible Keep us updated @warlockk |
|
Hey, @warlockk if you're not working on it right now I would like to take it up. 😄 |
You can take this one, I will be glad to have a clean fix for it |
Signed-off-by: Saksham Gupta <shucon01@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Ref: #15652 Signed-off-by: William Desportes <williamdes@wdes.fr>


Warning: #1287 FOUND_ROWS() is deprecated and will be removed in a future release. Consider using COUNT(*) instead.When clicking on Unique Values for any field.
https://demo.phpmyadmin.net/master-config/index.php?route=/table/structure&db=sakila&table=actor
The text was updated successfully, but these errors were encountered: