List:Commits« Previous MessageNext Message »
From:Sergey Petrunia Date:January 25 2007 12:27am
Subject:bk commit into 5.0 tree (sergefp:1.2387) BUG#24127
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of psergey. When psergey 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@stripped, 2007-01-25 02:27:28+03:00, sergefp@stripped +1 -0
  BUG#24127: wrong result for (null,not-null) IN (SELECT a,b ...):
  Fixed typo problem that surfaced after the merge

  sql/sql_select.cc@stripped, 2007-01-25 02:27:26+03:00, sergefp@stripped +2 -2
    BUG#24127: wrong result for (null,not-null) IN (SELECT a,b ...):
    Fixed typo problem that surfaced after the merge

# 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:	sergefp
# Host:	pylon.mylan
# Root:	/home/psergey/mysql-5.0-bug8804-r12

--- 1.484/sql/sql_select.cc	2007-01-25 02:27:33 +03:00
+++ 1.485/sql/sql_select.cc	2007-01-25 02:27:33 +03:00
@@ -2973,14 +2973,14 @@
     if (cond->type() == Item::FUNC_ITEM &&
         ((Item_func*)cond)->functype() == Item_func::TRIG_COND_FUNC)
     {
-      cond= ((Item_func*)cond)->arguments()[0];
+      Item *cond_arg= ((Item_func*)cond)->arguments()[0];
       if (!join->group_list && !join->order &&
           join->unit->item && 
           join->unit->item->substype() == Item_subselect::IN_SUBS &&
           !join->unit->first_select()->next_select())
       {
         KEY_FIELD *save= *key_fields;
-        add_key_fields(join, key_fields, and_level, cond, usable_tables,
+        add_key_fields(join, key_fields, and_level, cond_arg, usable_tables,
                        sargables);
         // Indicate that this ref access candidate is for subquery lookup:
         for (; save != *key_fields; save++)
Thread
bk commit into 5.0 tree (sergefp:1.2387) BUG#24127Sergey Petrunia25 Jan