unknown
6de277910b
Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized
...
away.
During optimization stage the WHERE conditions can be changed or even
be removed at all if they know for sure to be true of false. Thus they aren't
showed in the EXPLAIN EXTENDED which prints conditions after optimization.
Now if all elements of an Item_cond were removed this Item_cond is substituted
for an Item_int with the int value of the Item_cond.
If there were conditions that were totally optimized away then values of the
saved cond_value and having_value will be printed instead.
mysql-test/t/explain.test:
Added a test case for the bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized away.
mysql-test/r/subselect.result:
Corrected test case result after fix for bug#22331.
mysql-test/r/func_test.result:
Corrected test case result after fix for bug#22331.
mysql-test/r/explain.result:
Added a test case for the bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized away.
sql/sql_select.cc:
Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized
away.
Now if all elements of an Item_cond were removed this Item_cond is substituted
for an Item_int with the int value of the Item_cond.
If there were conditions that were totally optimized away then values of the
saved cond_value and having_value will be printed instead.
sql/sql_lex.h:
Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized
away.
The cond_value and the having_value variables are
added to the SELECT_LEX class.
sql/sql_lex.cc:
Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized
away.
The initialization of the cond_value and the having_value variables.
sql/sql_select.h:
Bug#22331: Wrong WHERE in EXPLAIN EXTENDED when all expressions were optimized
away.
Now having_value is also stored in the JOIN class.
2007-03-07 21:44:58 +03:00
..
2007-01-19 23:15:59 +03:00
2007-01-18 18:37:52 -07:00
2006-09-28 14:32:30 -04:00
2006-05-29 16:27:45 +02:00
2006-12-11 16:43:21 +01:00
2006-06-17 02:57:50 +04:00
2007-01-16 21:23:52 +03:00
2006-10-11 14:50:19 +02:00
2006-10-23 15:02:51 +05:00
2006-11-13 20:06:45 +04:00
2006-11-15 12:23:07 -05:00
2006-07-10 20:46:05 +02:00
2006-09-13 15:18:14 +04:00
2006-07-12 13:22:38 -07:00
2006-08-15 10:13:17 +03:00
2006-10-03 16:14:23 +02:00
2006-06-14 13:40:21 +05:00
2006-06-04 21:27:41 +03:00
2006-11-20 22:42:06 +02:00
2006-11-20 22:42:06 +02:00
2006-11-20 22:42:06 +02:00
2006-11-20 22:42:06 +02:00
2006-09-29 16:24:11 +05:00
2006-12-22 15:30:37 +03:00
2006-09-01 08:53:56 +02:00
2006-05-24 00:55:53 +02:00
2006-08-11 13:19:44 +05:00
2006-08-11 13:19:44 +05:00
2006-11-20 22:46:52 +02:00
2006-11-20 15:06:33 +04:00
2006-11-22 09:19:51 +04:00
2007-02-12 15:41:36 +04:00
2006-11-13 20:06:45 +04:00
2007-01-12 16:43:52 +03:00
2006-07-19 22:33:19 +04:00
2007-01-24 22:11:27 +03:00
2007-01-31 10:18:26 +02:00
2006-08-21 12:18:59 +04:00
2006-11-13 20:06:45 +04:00
2007-03-07 21:44:58 +03:00
2006-11-29 13:56:59 -05:00
2006-11-29 12:04:29 +01:00
2006-12-01 09:49:19 +01:00
2006-12-01 09:49:19 +01:00
2006-11-13 20:06:45 +04:00
2006-11-16 23:16:44 +04:00
2006-11-16 23:16:44 +04:00
2007-01-23 10:11:53 -08:00
2006-10-13 19:09:22 +05:00
2006-06-14 23:54:08 +04:00
2006-10-02 12:37:01 +02:00
2006-11-30 18:47:59 +02:00
2006-12-26 12:42:54 -07:00
2006-09-13 15:18:14 +04:00
2007-01-23 14:08:58 +04:00
2006-09-25 14:58:10 -04:00
2006-11-20 22:42:06 +02:00
2007-01-12 16:43:52 +03:00
2006-11-06 17:45:47 -05:00
2007-01-30 17:43:34 +02:00
2006-06-22 20:50:38 +02:00
2006-12-19 15:04:26 +02:00
2007-02-12 15:41:36 +04:00
2006-08-09 22:23:41 -04:00
2006-12-19 15:10:15 +01:00
2006-11-20 22:42:06 +02:00
2006-11-20 22:42:06 +02:00
2007-01-11 23:18:01 +03:00
2006-11-29 11:25:22 +01:00
2006-08-20 20:47:32 +05:00
2006-09-01 03:44:03 +02:00
2006-05-10 21:50:04 +05:00
2006-06-19 14:13:34 +04:00
2006-11-23 22:55:36 +03:00
2006-06-19 14:13:34 +04:00
2006-11-23 22:55:36 +03:00
2006-08-29 15:46:40 +04:00
2006-08-29 15:46:40 +04:00
2006-06-19 14:13:34 +04:00
2006-11-23 22:55:36 +03:00
2006-12-26 17:47:30 +04:00
2006-09-12 18:25:35 +05:00
2006-12-22 00:38:34 +01:00
2006-11-13 20:06:45 +04:00
2007-02-12 16:06:14 +04:00
2006-11-15 10:23:27 +01:00
2006-10-03 16:14:23 +02:00
2006-12-19 16:57:51 -07:00
2007-02-10 23:55:56 -08:00
2006-12-19 16:57:51 -07:00
2006-12-19 16:57:51 -07:00
2006-10-23 15:02:51 +05:00
2006-10-23 15:02:51 +05:00
2006-12-08 15:22:46 +04:00
2006-11-13 20:06:45 +04:00
2007-02-09 22:25:09 +03:00
2006-09-15 14:14:38 +02:00
2007-01-22 15:14:38 +03:00
2007-01-31 16:04:38 +02:00
2007-02-09 12:54:50 -08:00
2007-01-11 19:10:01 +02:00
2006-11-15 10:23:27 +01:00
2006-06-30 19:37:11 +02:00
2006-11-23 22:55:36 +03:00
2006-12-08 17:09:43 +01:00
2006-11-28 20:59:57 +01:00
2006-09-05 16:52:05 +02:00
2006-09-05 16:52:05 +02:00
2006-12-26 20:22:16 +04:00
2006-12-04 14:05:27 +03:00
2006-11-14 19:45:52 +01:00
2006-06-06 11:25:31 +05:00
2006-10-19 10:54:23 +02:00
2006-10-30 14:40:15 +04:00
2007-01-31 17:09:58 +04:00
2006-11-09 16:55:42 +02:00
2007-01-18 10:06:36 -07:00
2006-05-29 19:07:35 +04:00
2007-01-25 01:26:57 +04:00
2006-10-03 15:33:44 +02:00
2006-11-21 21:10:02 -05:00
2006-11-22 01:27:06 -05:00
2006-10-19 10:54:23 +02:00
2007-01-03 03:33:26 +04:00
2007-01-17 13:43:03 +01:00
2007-01-17 11:13:03 +01:00
2006-12-14 16:31:23 +04:00
2006-07-24 13:31:20 -07:00
2006-10-24 17:54:45 +02:00
2006-12-08 23:33:39 +01:00
2006-07-21 20:29:25 -07:00
2006-12-22 00:38:34 +01:00
2006-05-08 15:19:17 +02:00
2006-05-15 16:23:59 +02:00
2007-01-23 00:34:00 +07:00
2006-05-21 11:04:57 +02:00
2006-09-06 11:54:01 +02:00
2006-09-13 23:19:18 +02:00
2007-01-08 13:53:37 +01:00
2006-12-07 15:51:16 +01:00
2006-06-14 20:16:32 +02:00
2007-01-15 12:32:38 +03:00
2006-10-31 16:09:31 +01:00
2007-02-06 23:06:58 +01:00
2006-07-02 01:51:10 +04:00
2006-07-06 18:50:44 +02:00
2006-07-02 01:51:10 +04:00
2006-06-02 07:26:45 +02:00
2007-01-18 13:26:48 -07:00
2006-11-30 15:02:33 +01:00
2006-10-11 14:50:19 +02:00
2006-11-20 22:42:06 +02:00
2006-07-10 16:27:03 +03:00
2006-10-19 15:04:12 +02:00
2006-08-22 14:29:48 +02:00
2007-01-10 08:55:55 -08:00
2006-05-12 10:27:20 +02:00
2006-08-01 11:29:10 +02:00
2007-01-31 16:45:33 +04:00
2006-10-04 11:19:23 -04:00
2006-10-03 16:14:23 +02:00
2006-10-12 17:10:34 -06:00
2007-01-24 19:33:06 +03:00
2006-12-19 15:31:10 +01:00
2006-11-17 10:30:16 +04:00
2007-01-23 14:08:58 +04:00
2006-11-20 17:35:23 +03:00
2006-11-16 23:16:44 +04:00
2006-10-19 18:04:34 +05:00
2006-06-07 16:17:56 +04:00
2006-07-20 13:41:12 +05:00
2006-09-01 04:23:04 -07:00
2006-12-19 15:31:10 +01:00
2006-12-19 15:31:10 +01:00
2006-05-22 12:18:18 +09:30
2006-07-06 14:37:09 +02:00
2006-10-19 10:54:23 +02:00
2006-11-09 14:27:34 +04:00
2006-10-04 22:52:44 +02:00
2006-11-28 20:59:57 +01:00
2006-11-30 11:08:23 +04:00
2006-11-15 10:23:27 +01:00
2006-10-13 11:53:19 +02:00
2006-10-13 20:22:56 +02:00
2006-10-19 10:54:23 +02:00
2006-10-03 16:14:23 +02:00
2006-11-15 10:23:27 +01:00
2006-11-01 12:30:01 +04:00
2006-11-01 12:30:01 +04:00
2006-11-15 10:23:27 +01:00
2006-10-06 13:34:07 +04:00
2006-10-19 10:54:23 +02:00
2006-10-05 18:29:59 +02:00
2006-12-07 09:31:53 +04:00
2006-10-19 10:54:23 +02:00
2006-10-19 10:54:23 +02:00
2006-11-15 10:23:27 +01:00
2006-09-05 16:52:05 +02:00
2006-09-05 16:52:05 +02:00
2006-12-22 10:20:20 +01:00
2006-09-12 00:19:05 +03:00
2006-09-12 00:19:05 +03:00
2006-11-15 12:53:07 +02:00
2006-10-19 10:54:23 +02:00
2007-01-11 09:43:44 -05:00
2006-10-07 20:19:57 +02:00
2007-01-08 22:01:06 +01:00
2006-05-16 19:33:24 +03:00
2006-11-15 10:23:27 +01:00
2006-11-13 15:40:22 -07:00
2006-10-03 15:33:44 +02:00
2006-05-11 16:29:02 +02:00
2006-11-15 10:23:27 +01:00
2006-09-21 00:59:48 +02:00
2007-02-06 11:08:57 +02:00
2006-10-12 17:10:34 -06:00
2006-11-16 23:16:44 +04:00
2006-10-04 13:09:37 +02:00
2006-12-11 18:52:24 -07:00
2006-11-17 12:14:29 -07:00
2007-01-23 15:03:48 +03:00
2006-11-20 22:42:06 +02:00
2006-07-13 17:12:31 +04:00
2006-10-19 11:39:51 -07:00
2007-01-18 10:06:36 -07:00
2006-10-19 00:53:01 +02:00
2006-09-25 16:44:15 +02:00
2006-11-16 23:16:44 +04:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-11-20 22:42:06 +02:00
2006-07-26 19:19:30 +03:00
2007-01-26 17:10:45 -08:00
2007-01-25 21:01:28 -08:00
2007-01-19 12:03:03 +01:00
2006-11-21 15:31:11 +01:00
2006-11-21 15:31:11 +01:00
2006-11-21 15:31:11 +01:00
2006-11-21 15:31:11 +01:00
2006-09-29 12:36:12 +04:00
2006-11-01 17:35:35 +03:00
2006-11-01 16:47:40 +03:00
2006-11-01 16:47:40 +03:00
2006-11-01 16:47:40 +03:00
2006-05-12 13:55:21 +04:00
2007-02-01 11:07:17 +02:00
2007-01-09 22:35:30 +03:00
2006-11-28 00:47:21 +02:00
2006-10-03 15:33:44 +02:00
2006-09-14 18:45:23 +04:00
2006-10-25 20:14:39 +05:00
2006-10-11 19:44:12 +04:00
2006-09-11 14:50:46 +05:00
2006-09-22 19:40:07 +04:00
2006-11-27 16:25:52 +01:00
2006-08-08 13:34:27 +05:00
2006-12-04 14:26:05 +02:00
2007-01-18 17:33:38 +02:00
2006-08-03 09:32:58 +02:00
2007-02-02 15:22:10 -08:00
2007-01-09 23:24:56 +03:00
2006-11-23 22:55:36 +03:00
2006-12-22 00:38:34 +01:00
2006-12-05 14:08:19 +04:00
2007-01-18 13:06:10 +03:00
2007-02-11 19:36:46 -08:00
2006-11-23 22:55:36 +03:00
2006-11-29 02:44:12 +03:00
2006-10-05 12:41:26 +02:00
2006-07-21 09:53:12 +02:00
2006-09-27 19:26:25 -04:00
2006-12-07 17:01:00 +01:00