From 71e7e78bf85ca5218225fea2f04a0be8332c34b6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 29 Dec 2006 17:22:20 +0000 Subject: [PATCH] - Patch #105540 by souvent22: small SQL optimization. --- modules/watchdog/watchdog.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index 16129e11c9d..acb73901154 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -120,7 +120,7 @@ function watchdog_overview() { array('data' => t('Operations')) ); - $sql = "SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid"; + $sql = "SELECT w.wid, w.uid, w.severity, w.type, w.timestamp, w.message, w.link, u.name FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid"; $tablesort = tablesort_sql($header); $type = $_SESSION['watchdog_overview_filter']; if ($type != 'all') {