Fix #19537 - Make sure rowCount is always int#19538
Conversation
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #19538 +/- ##
============================================
- Coverage 60.16% 60.08% -0.09%
+ Complexity 15864 15856 -8
============================================
Files 675 675
Lines 61098 61071 -27
============================================
- Hits 36760 36693 -67
- Misses 24338 24378 +40
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
This method is used as phpmyadmin/src/Table/Table.php Line 1745 in 38bbaff |
|
You can even make this function simpler by using |
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
kamil-tekiela
left a comment
There was a problem hiding this comment.
That's very good, but I am thinking now whether we should actually show some information to the user that it's impossible to fetch the row count. For example, instead of displaying 0 show a message such as N/A.
|
Wouldn't we run then in more potential bugs? There are other functions that have to be changed for this change. Also, instead of N/A, probably 18.01.2025_19.19.50_REC.mp4 |
Description
Fixes #19537
Before submitting pull request, please review the following checklist:
Signed-off-byline as described in our DCO. This ensures that the work you're submitting is your own creation.