Below is the list of changes that have just been committed into a local
5.1 repository of antony. When antony 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.2190 06/03/16 04:29:59 acurtis@stripped +5 -0
Merge xiphis.org:/home/antony/work2/p1-bug14575.1
into xiphis.org:/home/antony/work2/p1-bug14575.1-mrg2
sql/mysqld.cc
1.547 06/03/16 04:29:56 acurtis@stripped +0 -25
merge bug#14575 forwards
sql/mysql_priv.h
1.385 06/03/16 04:29:56 acurtis@stripped +0 -47
merge bug#14575 forwards
sql/sql_select.cc
1.392 06/03/16 04:23:20 acurtis@stripped +0 -0
Auto merged
mysql-test/r/subselect.result
1.138 06/03/16 04:23:20 acurtis@stripped +0 -0
Auto merged
include/config-win.h
1.82 06/03/16 04:23:19 acurtis@stripped +0 -0
Auto merged
# 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: acurtis
# Host: localhost.(none)
# Root: /home/antony/work2/p1-bug14575.1-mrg2/RESYNC
--- 1.81/include/config-win.h 2006-02-28 13:46:20 -08:00
+++ 1.82/include/config-win.h 2006-03-16 04:23:19 -08:00
@@ -429,8 +429,8 @@ inline double ulonglong2double(ulonglong
#define HAVE_RTREE_KEYS 1
#define HAVE_ROW_BASED_REPLICATION 1
-/* #undef HAVE_OPENSSL */
-/* #undef HAVE_YASSL */
+#define HAVE_OPENSSL 1
+#define HAVE_YASSL 1
/* Define charsets you want */
/* #undef HAVE_CHARSET_armscii8 */
--- 1.391/sql/sql_select.cc 2006-02-22 00:27:17 -08:00
+++ 1.392/sql/sql_select.cc 2006-03-16 04:23:20 -08:00
@@ -7114,7 +7114,10 @@ static Item *eliminate_item_equal(COND *
if (!cond)
cond= new Item_cond_and(eq_list);
else
+ {
+ DBUG_ASSERT(cond->type() == Item::COND_ITEM);
((Item_cond *) cond)->add_at_head(&eq_list);
+ }
cond->quick_fix_field();
cond->update_used_tables();
@@ -7199,6 +7202,11 @@ static COND* substitute_for_best_equal_f
while ((item_equal= it++))
{
cond= eliminate_item_equal(cond, cond_equal->upper_levels, item_equal);
+ // This occurs when eliminate_item_equal() founds that cond is
+ // always false and substitues it with Item_int 0.
+ // Due to this, value of item_equal will be 0, so just return it.
+ if (cond->type() != Item::COND_ITEM)
+ break;
}
}
}
--- 1.137/mysql-test/r/subselect.result 2006-03-06 02:35:33 -08:00
+++ 1.138/mysql-test/r/subselect.result 2006-03-16 04:23:20 -08:00
@@ -3156,3 +3156,10 @@ id select_type table type possible_keys
1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
2 DEPENDENT SUBQUERY t1 index NULL a 8 NULL 9 Using filesort
DROP TABLE t1;
+create table t1( f1 int,f2 int);
+insert into t1 values (1,1),(2,2);
+select tt.t from (select 'crash1' as t, f2 from t1) as tt left join t1 on tt.t = 'crash2'
and tt.f2 = t1.f2 where tt.t = 'crash1';
+t
+crash1
+crash1
+drop table t1;
| Thread |
|---|
| • bk commit into 5.1 tree (acurtis:1.2190) | antony | 16 Mar |