~ubuntu-branches/ubuntu/quantal/mysql-5.5/quantal-security

« back to all changes in this revision

Viewing changes to mysql-test/suite/sys_vars/r/sql_max_join_size_func.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-10-18 11:09:57 UTC
  • mfrom: (1.1.10) (21.1.1 quantal)
  • Revision ID: package-import@ubuntu.com-20121018110957-42tdjjbzsqokg3ia
Tags: 5.5.28-0ubuntu0.12.10.1
* SECURITY UPDATE: Update to 5.5.28 to fix security issues (LP: #1068158)
  - http://www.oracle.com/technetwork/topics/security/cpuoct2012-1515893.html
* debian/patches/fix-mysqlhotcopy.patch: removed, included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
'#--------------------FN_DYNVARS_161_01-------------------------#'
18
18
SET SESSION sql_max_join_size=9;
19
19
Warnings:
20
 
Warning 1287    The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
 
20
Warning 1287    '@@sql_max_join_size' is deprecated and will be removed in a future release.
21
21
SELECT * FROM t1 INNER JOIN t2 ON t1.a = t2.a;
22
22
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
23
23
Expected error The SELECT would examine more than MAX_JOIN_SIZE rows.
33
33
This should work
34
34
SET SESSION sql_max_join_size=DEFAULT;
35
35
Warnings:
36
 
Warning 1287    The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
 
36
Warning 1287    '@@sql_max_join_size' is deprecated and will be removed in a future release.
37
37
DELETE FROM t2 WHERE a = 'aa4';
38
38
SELECT * FROM t1 INNER JOIN t2 ON t1.a = t2.a;
39
39
a       b       a       b
45
45
'#----------------------------FN_DYNVARS_136_05-------------------------#'
46
46
SET GLOBAL sql_max_join_size = 4;
47
47
Warnings:
48
 
Warning 1287    The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
 
48
Warning 1287    '@@sql_max_join_size' is deprecated and will be removed in a future release.
49
49
** Connecting con_int1 using root **
50
50
** Connection con_int1 **
51
51
SELECT @@SESSION.sql_max_join_size;
54
54
4 Expected
55
55
SET SESSION sql_max_join_size = 2;
56
56
Warnings:
57
 
Warning 1287    The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
 
57
Warning 1287    '@@sql_max_join_size' is deprecated and will be removed in a future release.
58
58
** Connecting con_int2 using root **
59
59
** Connection con_int2 **
60
60
SELECT @@SESSION.sql_max_join_size;
63
63
4 Expected
64
64
SET SESSION sql_max_join_size = 10;
65
65
Warnings:
66
 
Warning 1287    The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
 
66
Warning 1287    '@@sql_max_join_size' is deprecated and will be removed in a future release.
67
67
** Connection con_int2 **
68
68
SELECT @@SESSION.sql_max_join_size;
69
69
@@SESSION.sql_max_join_size
82
82
Disconnecting Connections con_int1, con_int2
83
83
SET @@SESSION.sql_max_join_size = @session_max_join_size;
84
84
Warnings:
85
 
Warning 1287    The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
 
85
Warning 1287    '@@sql_max_join_size' is deprecated and will be removed in a future release.
86
86
SET @@GLOBAL.sql_max_join_size = @global_max_join_size ;
87
87
Warnings:
88
 
Warning 1287    The syntax '@@sql_max_join_size' is deprecated and will be removed in MySQL 7.0.
 
88
Warning 1287    '@@sql_max_join_size' is deprecated and will be removed in a future release.
89
89
SET @@SESSION.sql_big_selects = @session_sql_big_selects;
90
90
DROP TABLE t1;
91
91
DROP TABLE t2;