diff -urpN drupal-6.x-dev.org/modules/dblog/dblog.module drupal-6.x-dev/modules/dblog/dblog.module
--- drupal-6.x-dev.org/modules/dblog/dblog.module	2007-05-28 14:08:42.000000000 +0800
+++ drupal-6.x-dev/modules/dblog/dblog.module	2007-05-30 09:38:54.000000000 +0800
@@ -196,7 +196,7 @@ function dblog_top($type) {
     array('data' => t('Message'), 'field' => 'message')
   );
 
-  $result = pager_query("SELECT COUNT(wid) AS count, message, variables FROM {watchdog} WHERE type = '%s' GROUP BY message ". tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = '%s'", $type);
+  $result = pager_query("SELECT COUNT(wid) AS count, message, variables FROM {watchdog} WHERE type = '%s' GROUP BY (message, variables) ". tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = '%s'", $type);
 
   $rows = array();
   while ($dblog = db_fetch_object($result)) {
diff -urpN drupal-6.x-dev.org/modules/dblog/dblog.schema drupal-6.x-dev/modules/dblog/dblog.schema
--- drupal-6.x-dev.org/modules/dblog/dblog.schema	2007-05-25 20:46:44.000000000 +0800
+++ drupal-6.x-dev/modules/dblog/dblog.schema	2007-05-30 03:17:20.000000000 +0800
@@ -7,8 +7,8 @@ function dblog_schema() {
       'wid'       => array('type' => 'serial', 'not null' => TRUE),
       'uid'       => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
       'type'      => array('type' => 'varchar', 'length' => 16, 'not null' => TRUE, 'default' => ''),
-      'message'   => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
-      'variables' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
+      'message'   => array('type' => 'text', 'not null' => TRUE, 'size' => 'medium'),
+      'variables' => array('type' => 'text', 'not null' => TRUE, 'size' => 'medium'),
       'severity'  => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
       'link'      => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
       'location'  => array('type' => 'text', 'not null' => TRUE),
