~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/r/explain.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
SET SESSION sql_mode='ONLY_FULL_GROUP_BY';
177
177
EXPLAIN EXTENDED SELECT 1 FROM t1
178
178
WHERE f1 > ALL( SELECT t.f1 FROM t1,t1 AS t );
179
 
ERROR 42000: Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
180
 
SHOW WARNINGS;
181
 
Level   Code    Message
182
 
Error   1140    Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause
183
 
Note    1003    select 1 AS `1` from `test`.`t1` where <not>(<exists>(...))
 
179
id      select_type     table   type    possible_keys   key     key_len ref     rows    filtered        Extra
 
180
1       PRIMARY NULL    NULL    NULL    NULL    NULL    NULL    NULL    NULL    Impossible WHERE noticed after reading const tables
 
181
2       SUBQUERY        t1      system  NULL    NULL    NULL    NULL    0       0.00    const row not found
 
182
2       SUBQUERY        t       system  NULL    NULL    NULL    NULL    0       0.00    const row not found
 
183
Warnings:
 
184
Note    1003    select 1 AS `1` from `test`.`t1` where 0
184
185
SET SESSION sql_mode=@old_sql_mode;
185
186
DROP TABLE t1;
186
187
End of 5.0 tests.
251
252
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
252
253
1       SIMPLE  t1      ref     c2,c2_2 c2      10      const,const     3       Using where
253
254
DROP TABLE t1;
 
255
#
 
256
# Bug#56814 Explain + subselect + fulltext crashes server
 
257
#
 
258
CREATE TABLE t1(f1 VARCHAR(6) NOT NULL,
 
259
FULLTEXT KEY(f1),UNIQUE(f1));
 
260
INSERT INTO t1 VALUES ('test');
 
261
EXPLAIN SELECT 1 FROM t1
 
262
WHERE 1 > ALL((SELECT 1 FROM t1 JOIN t1 a ON (MATCH(t1.f1) AGAINST (""))
 
263
WHERE t1.f1 GROUP BY t1.f1));
 
264
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
265
1       PRIMARY t1      system  NULL    NULL    NULL    NULL    1       
 
266
2       SUBQUERY        a       system  NULL    NULL    NULL    NULL    1       Using filesort
 
267
2       SUBQUERY        t1      fulltext        f1      f1      0               1       Using where
 
268
PREPARE stmt FROM
 
269
'EXPLAIN SELECT 1 FROM t1
 
270
 WHERE 1 > ALL((SELECT 1 FROM t1 RIGHT OUTER JOIN t1 a
 
271
 ON (MATCH(t1.f1) AGAINST (""))
 
272
 WHERE t1.f1 GROUP BY t1.f1))';
 
273
EXECUTE stmt;
 
274
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
275
1       PRIMARY t1      system  NULL    NULL    NULL    NULL    1       
 
276
2       SUBQUERY        a       system  NULL    NULL    NULL    NULL    1       Using filesort
 
277
2       SUBQUERY        t1      fulltext        f1      f1      0               1       Using where
 
278
EXECUTE stmt;
 
279
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
280
1       PRIMARY t1      system  NULL    NULL    NULL    NULL    1       
 
281
2       SUBQUERY        a       system  NULL    NULL    NULL    NULL    1       Using filesort
 
282
2       SUBQUERY        t1      fulltext        f1      f1      0               1       Using where
 
283
DEALLOCATE PREPARE stmt;
 
284
PREPARE stmt FROM
 
285
'EXPLAIN SELECT 1 FROM t1
 
286
 WHERE 1 > ALL((SELECT 1 FROM t1 JOIN t1 a
 
287
 ON (MATCH(t1.f1) AGAINST (""))
 
288
 WHERE t1.f1 GROUP BY t1.f1))';
 
289
EXECUTE stmt;
 
290
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
291
1       PRIMARY t1      system  NULL    NULL    NULL    NULL    1       
 
292
2       SUBQUERY        a       system  NULL    NULL    NULL    NULL    1       Using filesort
 
293
2       SUBQUERY        t1      fulltext        f1      f1      0               1       Using where
 
294
EXECUTE stmt;
 
295
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
 
296
1       PRIMARY t1      system  NULL    NULL    NULL    NULL    1       
 
297
2       SUBQUERY        a       system  NULL    NULL    NULL    NULL    1       Using filesort
 
298
2       SUBQUERY        t1      fulltext        f1      f1      0               1       Using where
 
299
DEALLOCATE PREPARE stmt;
 
300
DROP TABLE t1;
254
301
End of 5.1 tests.