1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
Tatiana A. Nurnberg eaad6119da Bug#48295: explain extended crash with subquery and ONLY_FULL_GROUP_BY sql_mode
If an outer query is broken, a subquery might not even get set up.
EXPLAIN EXTENDED did not expect this and merrily tried to de-ref all
of the half-setup info.

We now catch this case and print as much as we have, as it doesn't cost us
anything (doesn't make regular execution slower).

mysql-test/r/explain.result:
  Show that EXPLAIN EXTENDED with subquery and illegal out query doesn't crash.
  Show also that SHOW WARNINGS will render an additional Note in the hope of
  being, well, helpful.
mysql-test/t/explain.test:
  If we have only half a query for EXPLAIN EXTENDED to print (i.e.,
  incomplete subquery info as outer query is illegal), we should
  provide the user with as much info as we easily can if they ask
  for it. What we should not do is crash when they come asking for
  help, that violates etiquette in some countries.
sql/item_subselect.cc:
  If the sub-query's actually set up, print it. Otherwise, elide.
2009-10-29 16:01:54 -07:00
..
2008-04-02 10:06:36 +02:00
2009-10-09 23:57:43 +02:00
2009-08-27 15:59:25 +05:00
2009-02-10 16:27:35 +03:00
2009-09-10 11:58:13 +05:00
2009-08-20 14:30:59 +02:00
2009-09-03 08:38:06 +02:00
2009-01-23 13:22:05 +01:00
2009-06-25 13:44:50 +05:00
2009-08-10 15:46:20 -03:00
2008-11-21 17:32:45 +04:00
2008-09-03 13:06:03 +05:00
2009-07-15 15:43:45 +05:30
2009-06-01 16:00:38 +04:00
2009-03-27 10:18:06 +08:00
2008-09-05 13:36:02 +05:00
2009-02-07 16:50:31 +01:00
2009-09-10 15:30:03 +05:00
2009-01-23 13:22:05 +01:00
2009-10-23 23:37:57 +05:00
2009-10-24 09:57:31 +03:00
2009-02-26 18:17:06 +01:00
2009-02-03 14:45:17 +01:00
2009-05-06 15:00:14 +05:30
2009-06-15 17:36:51 +03:00
2009-02-10 16:27:35 +03:00
2009-09-02 18:58:17 +02:00
2009-04-09 14:38:50 +05:00
2009-03-16 20:54:50 +01:00
2008-10-23 21:27:09 +02:00
2009-01-26 15:20:33 +01:00
2009-02-19 18:22:28 +01:00
2009-02-03 14:45:17 +01:00
2009-09-10 11:54:26 +05:00
2008-07-03 23:41:22 +04:00
2009-02-19 17:59:00 +04:00
2008-04-02 10:06:36 +02:00
2009-10-22 14:40:15 +05:00
2009-06-10 11:58:36 +03:00
2009-09-28 16:48:40 +03:00
2008-07-07 11:43:56 +03:00
2008-12-13 19:42:12 +00:00
2009-02-09 22:00:15 +01:00
2009-02-19 18:24:25 -05:00
2009-01-13 15:04:28 +01:00
2009-02-14 20:14:10 +03:00
2009-05-15 12:42:57 +04:00
2009-05-15 12:11:07 +05:00
2009-05-10 21:20:35 +05:00
2009-08-31 17:09:09 +03:00