1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/sql
sergefp@mysql.com 1b349cf85f BUG#16798: Inapplicable ref_or_null query plan and bad query result on random occasions
The bug was as follows: When merge_key_fields() encounters "t.key=X OR t.key=Y" it will 
try to join them into ref_or_null access via "t.key=X OR NULL". In order to make this 
inference it checks if Y<=>NULL, ignoring the fact that value of Y may be not yet known.

The fix is that the check if Y<=>NULL is made only if value of Y is known (i.e. it is a
constant).
TODO: When merging to 5.0, replace used_tables() with const_item() everywhere in merge_key_fields().
2006-05-06 13:15:00 +04:00
..
2005-11-06 02:11:12 +03:00
2005-09-30 14:03:55 +02:00
2005-09-12 18:48:17 +03:00
2004-09-01 04:12:09 +03:00
2005-08-30 02:46:03 +02:00
2005-06-21 04:24:21 -07:00
2005-03-17 10:59:25 +04:00
2005-09-24 15:51:45 +02:00
2006-04-13 14:06:46 +04:00
2005-10-18 14:04:14 +04:00
2004-10-06 19:14:33 +03:00
2005-11-01 13:00:02 +02:00
2004-12-14 03:36:19 +03:00
2006-04-20 22:15:38 -07:00
2005-05-18 22:14:08 +02:00
2006-04-25 17:12:06 -07:00
2006-05-04 00:03:58 +05:00
2006-04-20 22:15:38 -07:00
2006-04-20 22:15:38 -07:00
2004-11-08 01:13:54 +02:00
2005-12-13 18:30:10 +02:00
2005-07-27 13:05:30 +03:00