MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:ramil Date:September 1 2005 10:06am
Subject:bk commit into 5.0 tree (ramil:1.1933) BUG#10303
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of ram. When ram does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.1933 05/09/01 15:06:36 ramil@stripped +1 -0
  a fix (bug #10303: Misleading Last_query_cost value).

  sql/sql_select.cc
    1.365 05/09/01 15:06:29 ramil@stripped +3 -0
    a fix (bug #10303: Misleading Last_query_cost value).
    reset last_query_cost in the very beginning.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	ramil
# Host:	gw.mysql.r18.ru
# Root:	/usr/home/ram/work/5.0.b10303

--- 1.364/sql/sql_select.cc	2005-08-31 23:05:02 +05:00
+++ 1.365/sql/sql_select.cc	2005-09-01 15:06:29 +05:00
@@ -541,6 +541,9 @@
     DBUG_RETURN(0);
   optimized= 1;
 
+  if (thd->lex->orig_sql_command != SQLCOM_SHOW_STATUS)
+    thd->status_var.last_query_cost= 0.0;
+
   row_limit= ((select_distinct || order || group_list) ? HA_POS_ERROR :
 	      unit->select_limit_cnt);
   /* select_limit is used to decide if we are likely to scan the whole table */
Thread
bk commit into 5.0 tree (ramil:1.1933) BUG#10303ramil1 Sep