-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace remaining uses of deprecated db_num_rows() function
The db_num_rows() function is deprecated with the new database API because PDO doesn't know how many rows are being returned until all rows have been requested from the server. We therefore have to perform the row count ourselves - when necessary. In many cases it may make more sense to perform a SELECT(*) query to retrieve counts. This is less costly than returning data that we're not going to use. This is something to consider in the future as the core is upgraded to use more modern/robust database queries.
- Loading branch information
1 parent
e1c3b57
commit 393315c
Showing
12 changed files
with
309 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.