MantisBT: next 3e449f85

Author Committer Branch Timestamp Parent
dhx dhx next 2011-05-16 03:25 next 97c8da3a
Changeset

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.

mod - application/core/bug_api.php Diff File
mod - application/core/file_api.php Diff File
mod - application/core/relationship_api.php Diff File
mod - application/core/user_api.php Diff File
mod - application/services/soap/mc_api.php Diff File
mod - application/services/soap/mc_issue_api.php Diff File
mod - application/services/soap/mc_project_api.php Diff File
mod - public/account_sponsor_page.php Diff File
mod - public/admin/copy_field.php Diff File
mod - public/admin/move_db2disk.php Diff File
mod - public/manage_user_page.php Diff File
mod - public/print_bugnote_inc.php Diff File