From: Roland Häder Date: Wed, 31 Aug 2016 07:17:27 +0000 (+0200) Subject: Must be id to have NULL counted, too. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee616bf74be728a09f61774d9d0c41eafdeefd0d;p=ctracker.git Must be id to have NULL counted, too. Signed-off-by: Roland Häder --- diff --git a/libs/lib_updates.php b/libs/lib_updates.php index 94e4f4b..fd34fcc 100644 --- a/libs/lib_updates.php +++ b/libs/lib_updates.php @@ -94,7 +94,7 @@ FOREIGN KEY ( `ctracker_data_id` ) REFERENCES `' . $GLOBALS['ctracker_dbname'] . // View for request methods 8 => array( 'CREATE VIEW `view_most_request_methods` AS - SELECT SQL_CALC_FOUND_ROWS COUNT(`request_method`) AS `total_rows`, `request_method` + SELECT SQL_CALC_FOUND_ROWS COUNT(`id`) AS `total_rows`, `request_method` FROM `ctracker_data` GROUP BY `request_method`' ),