Georgi Kodinov
d2f61748cd
Bug #49512 : subquery with aggregate function crash
...
subselect_single_select_engine::exec()
When a subquery doesn't need to be evaluated because
it returns only aggregate functions and these aggregates
can be calculated from the metadata about the table it
was not updating all the relevant members of the JOIN
structure to reflect that this is a constant query.
This caused problems to the enclosing subquery
('<> SOME' in the test case above) trying to read some
data about the tables.
Fixed by setting const_tables to the number of tables
when the SELECT is optimized away.
2009-12-23 17:11:22 +02:00
..
2009-06-17 15:54:01 +02:00
2009-12-13 23:57:57 +03:00
2009-08-13 17:07:20 -03:00
2009-09-29 17:38:40 +02:00
2009-10-04 12:53:02 +03:00
2009-09-29 17:38:40 +02:00
2010-01-19 13:03:40 +04:00
2008-05-09 09:43:02 +02:00
2009-11-21 09:18:21 -02:00
2009-02-13 11:41:47 -05:00
2008-11-10 21:21:49 +01:00
2008-05-09 09:43:02 +02:00
2009-07-24 15:45:42 -03:00
2010-01-19 13:03:40 +04:00
2009-06-17 15:54:01 +02:00
2009-12-18 14:00:30 +02:00
2009-11-20 12:10:47 +02:00
2009-01-09 14:04:47 +02:00
2009-02-13 11:41:47 -05:00
2009-06-09 18:11:21 +02:00
2009-10-16 13:29:42 +03:00
2009-10-16 13:29:42 +03:00
2010-01-18 17:49:18 +01:00
2009-11-17 20:02:16 +01:00
2009-12-01 11:19:51 +02:00
2009-10-12 14:46:00 +02:00
2010-01-13 12:28:42 +02:00
2010-01-13 12:28:42 +02:00
2010-01-13 10:00:03 +01:00
2009-12-22 14:38:33 +04:00
2009-12-22 17:52:15 +02:00
2009-11-24 18:26:13 +03:00
2010-01-13 08:16:36 +04:00
2009-12-04 13:36:58 -02:00
2009-11-06 22:42:24 +03:00
2009-11-17 17:06:46 +03:00
2009-11-24 18:30:21 +03:00
2009-11-17 17:06:46 +03:00
2009-12-03 13:22:34 +04:00
2009-12-13 23:29:50 +03:00
2009-11-06 22:34:25 +03:00
2010-01-15 16:09:20 +02:00
2010-01-12 15:16:26 +01:00
2008-10-10 12:01:01 +02:00
2009-07-29 10:54:20 +02:00
2009-08-28 18:21:54 +02:00
2010-01-19 00:10:00 +00:00
2010-01-19 00:10:00 +00:00
2009-12-15 13:14:14 +08:00
2009-12-24 02:26:29 +00:00
2009-12-04 14:40:42 +00:00
2009-09-29 17:38:40 +02:00
2008-10-23 15:28:53 +02:00
2008-10-23 15:28:53 +02:00
2008-10-23 15:28:53 +02:00
2008-10-23 15:28:53 +02:00
2008-11-27 12:33:04 +01:00
2009-11-02 09:21:39 -02:00
2010-01-19 13:03:40 +04:00
2009-10-06 13:04:51 +02:00
2009-12-17 17:15:13 +05:30
2009-07-28 22:44:28 +04:00
2008-11-22 01:10:38 +01:00
2008-11-22 01:10:38 +01:00
2009-11-25 11:02:25 +01:00
2008-08-25 21:18:22 +04:00
2009-10-14 10:46:50 +02:00
2009-06-19 13:24:43 +05:00
2009-04-13 18:09:10 +05:00
2009-09-23 15:21:29 +02:00
2009-09-02 18:42:08 +03:00
2009-06-01 16:00:38 +04:00
2009-07-29 22:07:08 +02:00
2009-07-29 22:07:08 +02:00
2009-11-03 20:45:52 +03:00
2010-01-19 13:03:40 +04:00
2008-12-29 17:04:10 +01:00
2009-09-10 11:40:57 +04:00
2009-10-22 01:15:45 +01:00
2009-10-22 01:15:45 +01:00
2009-06-16 16:04:30 +01:00
2009-06-16 16:04:30 +01:00
2009-12-14 18:50:22 +02:00
2009-12-14 18:32:22 +02:00
2009-11-20 16:18:01 +01:00
2008-08-20 19:06:31 +05:00
2008-06-30 22:11:18 +02:00
2010-01-05 14:25:29 +08:00
2009-12-17 17:15:13 +05:30
2009-09-29 17:38:40 +02:00
2009-12-14 18:32:22 +02:00
2009-11-12 17:10:19 +02:00
2009-11-20 16:18:01 +01:00
2008-07-03 23:41:22 +04:00
2009-12-23 17:44:03 +04:00
2009-11-20 16:18:01 +01:00
2009-04-29 07:59:10 +05:00
2009-12-18 16:44:24 -02:00
2009-11-06 22:34:25 +03:00
2009-12-02 15:17:08 +04:00
2009-11-20 16:18:01 +01:00
2009-08-28 18:21:54 +02:00
2009-06-17 16:56:44 +02:00
2010-01-13 12:39:00 +01:00
2009-11-21 09:18:21 -02:00
2009-06-17 16:56:44 +02:00
2009-12-02 16:49:21 +03:00
2009-10-14 09:39:05 +08:00
2009-11-20 13:49:06 +01:00
2009-11-20 13:49:06 +01:00
2009-12-01 14:38:40 +04:00
2009-12-02 16:49:21 +03:00
2009-12-18 16:44:24 -02:00
2009-12-04 13:36:58 -02:00
2009-12-04 13:36:58 -02:00
2008-12-10 18:16:21 +04:00
2010-01-19 13:03:40 +04:00
2009-11-22 13:10:33 +08:00
2009-05-27 18:19:44 +03:00
2009-02-13 11:41:47 -05:00
2009-09-17 17:25:52 +02:00
2009-06-17 16:56:44 +02:00
2009-12-17 10:52:43 +04:00
2009-09-17 17:10:30 +02:00
2009-09-28 05:41:10 -07:00
2009-06-10 10:59:49 +02:00
2009-12-06 01:11:32 +00:00
2009-10-19 13:41:52 +05:00
2008-12-04 19:41:53 +01:00
2010-01-19 12:18:48 +01:00
2010-01-19 12:18:48 +01:00
2009-12-13 23:29:50 +03:00
2009-12-18 17:14:09 -02:00
2009-05-14 14:03:33 +02:00
2010-01-16 15:44:24 +08:00
2009-07-16 15:37:38 +03:00
2009-06-10 10:59:49 +02:00
2009-10-16 13:29:42 +03:00
2010-01-08 13:42:23 +08:00
2009-12-23 17:11:22 +02:00
2010-01-15 16:09:20 +02:00
2010-01-13 12:39:00 +01:00
2010-01-19 13:03:40 +04:00
2008-11-10 21:21:49 +01:00
2009-07-31 22:14:52 +05:00
2009-07-31 22:14:52 +05:00
2010-01-18 17:49:18 +01:00
2009-10-16 13:29:42 +03:00
2009-04-14 14:05:32 +02:00
2009-10-16 13:29:42 +03:00
2009-01-14 18:50:51 +04:00
2009-10-16 13:29:42 +03:00
2009-12-22 17:52:15 +02:00
2010-01-12 15:16:26 +01:00
2010-01-19 13:03:40 +04:00
2009-04-13 18:09:10 +05:00
2009-12-13 23:57:57 +03:00
2009-09-23 15:21:29 +02:00
2009-11-03 20:45:52 +03:00
2010-01-19 13:03:40 +04:00
2009-11-21 09:18:21 -02:00
2009-06-29 16:00:47 +02:00
2009-11-02 13:24:07 +01:00
2009-06-17 16:56:44 +02:00
2009-01-12 17:40:29 +01:00
2009-09-17 17:25:52 +02:00
2009-06-17 16:56:44 +02:00
2009-09-02 16:19:28 +05:00
2009-07-31 15:28:15 -04:00