Merge lp:~vkolesnikov/pbxt/pbxt-5.1.35-upgrade into lp:pbxt

Proposed by Vladimir Kolesnikov
Status: Merged
Merged at revision: not available
Proposed branch: lp:~vkolesnikov/pbxt/pbxt-5.1.35-upgrade
Merge into: lp:pbxt
Diff against target: None lines
To merge this branch: bzr merge lp:~vkolesnikov/pbxt/pbxt-5.1.35-upgrade
Reviewer Review Type Date Requested Status
PBXT Core Pending
Review via email: mp+7550@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Vladimir Kolesnikov (vkolesnikov) wrote :

tests passed on local 32-bit ubuntu and dev8

Revision history for this message
Paul McCullagh (paul-mccullagh) wrote :

Hi Vlad,

Could you please add a release note. Something like:

PBXT now compiles and runs with MySQL 5.1.35. All tests pass.

Later we can add something like (to the same release note):

PBXT also compiles and has been tested with MySQL 5.4.x.

On Jun 17, 2009, at 3:15 PM, Vladimir Kolesnikov wrote:

> Vladimir Kolesnikov has proposed merging lp:~vkolesnikov/pbxt/
> pbxt-5.1.35-upgrade into lp:pbxt.
>
> Requested reviews:
> PBXT Core (pbxt-core)
>
> tests passed on local 32-bit ubuntu and dev8
> --
> https://code.launchpad.net/~vkolesnikov/pbxt/pbxt-5.1.35-upgrade/
> +merge/7550
> Your team PBXT Core is subscribed to branch lp:pbxt.
> === added file 'test/mysql-test/include/count_sessions.inc'
> --- test/mysql-test/include/count_sessions.inc 1970-01-01 00:00:00
> +0000
> +++ test/mysql-test/include/count_sessions.inc 2009-06-02 18:38:30
> +0000

--
Paul McCullagh
PrimeBase Technologies
www.primebase.org
www.blobstreaming.org
pbxt.blogspot.com

Revision history for this message
Vladimir Kolesnikov (vkolesnikov) wrote :

of course I forgot about it, sorry. Pushed.

Paul McCullagh wrote:
> Hi Vlad,
>
> Could you please add a release note. Something like:
>
> PBXT now compiles and runs with MySQL 5.1.35. All tests pass.
>
> Later we can add something like (to the same release note):
>
> PBXT also compiles and has been tested with MySQL 5.4.x.
>
> On Jun 17, 2009, at 3:15 PM, Vladimir Kolesnikov wrote:
>
>
>> Vladimir Kolesnikov has proposed merging lp:~vkolesnikov/pbxt/
>> pbxt-5.1.35-upgrade into lp:pbxt.
>>
>> Requested reviews:
>> PBXT Core (pbxt-core)
>>
>> tests passed on local 32-bit ubuntu and dev8
>> --
>> https://code.launchpad.net/~vkolesnikov/pbxt/pbxt-5.1.35-upgrade/
>> +merge/7550
>> Your team PBXT Core is subscribed to branch lp:pbxt.
>> === added file 'test/mysql-test/include/count_sessions.inc'
>> --- test/mysql-test/include/count_sessions.inc 1970-01-01 00:00:00
>> +0000
>> +++ test/mysql-test/include/count_sessions.inc 2009-06-02 18:38:30
>> +0000
>>
>
>
>
> --
> Paul McCullagh
> PrimeBase Technologies
> www.primebase.org
> www.blobstreaming.org
> pbxt.blogspot.com
>
>
>
>

--
--
Best Regards,
Vladimir

659. By Paul McCullagh

Merged RN248

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'test/mysql-test/include/count_sessions.inc'
--- test/mysql-test/include/count_sessions.inc 1970-01-01 00:00:00 +0000
+++ test/mysql-test/include/count_sessions.inc 2009-06-02 18:38:30 +0000
@@ -0,0 +1,21 @@
1# include/count_sessions.inc
2#
3# SUMMARY
4#
5# Stores the number of current sessions in $count_sessions.
6#
7#
8# USAGE
9#
10# Please look into include/wait_until_count_sessions.inc
11# for examples of typical usage.
12#
13#
14# EXAMPLE
15# backup.test, grant3.test
16#
17#
18# Created: 2009-01-14 mleich
19#
20
21let $count_sessions= query_get_value(SHOW STATUS LIKE 'Threads_connected', Value, 1);
022
=== modified file 'test/mysql-test/include/mysqltest-x.inc'
--- test/mysql-test/include/mysqltest-x.inc 2006-10-23 09:14:04 +0000
+++ test/mysql-test/include/mysqltest-x.inc 2009-06-02 18:38:30 +0000
@@ -1,2 +1,3 @@
1echo Output from mysqltest-x.inc;1echo Output from mysqltest-x.inc;
2exit;
23
34
=== modified file 'test/mysql-test/include/ps_modify.inc'
--- test/mysql-test/include/ps_modify.inc 2008-06-09 12:49:32 +0000
+++ test/mysql-test/include/ps_modify.inc 2009-06-02 20:26:05 +0000
@@ -108,7 +108,6 @@
108select a,b from t1 where a=@arg00;108select a,b from t1 where a=@arg00;
109set @arg00=NULL;109set @arg00=NULL;
110set @arg01=2;110set @arg01=2;
111--error 1048
112execute stmt1 using @arg00, @arg01;111execute stmt1 using @arg00, @arg01;
113select a,b from t1 order by a;112select a,b from t1 order by a;
114set @arg00=0;113set @arg00=0;
115114
=== added file 'test/mysql-test/include/wait_until_count_sessions.inc'
--- test/mysql-test/include/wait_until_count_sessions.inc 1970-01-01 00:00:00 +0000
+++ test/mysql-test/include/wait_until_count_sessions.inc 2009-06-02 18:38:30 +0000
@@ -0,0 +1,126 @@
1# include/wait_until_count_sessions.inc
2#
3# SUMMARY
4#
5# Waits until the passed number ($count_sessions) of concurrent sessions or
6# a smaller number was observed via
7# SHOW STATUS LIKE 'Threads_connected'
8# or the operation times out.
9# Note:
10# 1. We wait for $current_sessions <= $count_sessions because in the use case
11# with count_sessions.inc before and wait_until_count_sessions.inc after
12# the core of the test it could happen that the disconnects of sessions
13# belonging to the preceeding test are not finished.
14# sessions at test begin($count_sessions) = m + n
15# sessions of the previous test which will be soon disconnected = n (n >= 0)
16# sessions at test end ($current sessions, assuming the test disconnects
17# all additional sessions) = m
18# 2. Starting with 5.1 we could also use
19# SELECT COUNT(*) FROM information_schema.processlist
20# I stay with "SHOW STATUS LIKE 'Threads_connected'" because this
21# runs in all versions 5.0+
22#
23#
24# USAGE
25#
26# let $count_sessions= 3;
27# --source include/wait_until_count_sessions.inc
28#
29# OR typical example of a test which uses more than one session
30# Such a test could harm successing tests if there is no server shutdown
31# and start between.
32#
33# If the testing box is slow than the disconnect of sessions belonging to
34# the current test might happen when the successing test gets executed.
35# This means the successing test might see activities like unexpected
36# rows within the general log or the PROCESSLIST.
37# Example from bug http://bugs.mysql.com/bug.php?id=40377
38# --- bzr_mysql-6.0-rpl/.../r/log_state.result
39# +++ bzr_mysql-6.0-rpl/.../r/log_state.reject
40# @@ -25,6 +25,7 @@
41# event_time user_host ... command_type argument
42# TIMESTAMP USER_HOST ... Query create table t1(f1 int)
43# TIMESTAMP USER_HOST ... Query select * from mysql.general_log
44# +TIMESTAMP USER_HOST ... Quit
45# ....
46#
47# What to do?
48# -----------
49# <start of test>
50# # Determine initial number of connections (set $count_sessions)
51# --source include/count_sessions.inc
52# ...
53# connect (con1,.....)
54# ...
55# connection default;
56# ...
57# disconnect con1;
58# ...
59# # Wait until we have reached the initial number of connections
60# # or more than the sleep time above (10 seconds) has passed.
61# # $count_sessions
62# --source include/wait_until_count_sessions.inc
63# <end of test>
64#
65# Important note about tests with unfortunate (= not cooperative
66# to successing tests) architecture:
67# connection con1;
68# send SELECT ..., sleep(10)
69# connection default;
70# ...
71# disconnect con1;
72# <end of test>
73# should be fixed by
74# connection con1;
75# send SELECT ..., sleep(10)
76# connection default;
77# ...
78# connect con1;
79# reap;
80# connection default;
81# disconnect con1;
82# <end of test>
83# and not only by appending include/wait_until_count_sessions.inc etc.
84#
85#
86# EXAMPLE
87#
88# backup.test, grant3.test
89#
90#
91# Created:
92# 2009-01-14 mleich
93# Modified:
94# 2009-02-24 mleich Fix Bug#43114 wait_until_count_sessions too restrictive,
95# random PB failures
96#
97
98let $wait_counter= 100;
99if ($wait_timeout)
100{
101 let $wait_counter= `SELECT $wait_timeout * 10`;
102}
103# Reset $wait_timeout so that its value won't be used on subsequent
104# calls, and default will be used instead.
105let $wait_timeout= 0;
106while ($wait_counter)
107{
108 let $current_sessions= query_get_value(SHOW STATUS LIKE 'Threads_connected', Value, 1);
109 let $success= `SELECT $current_sessions <= $count_sessions`;
110 if ($success)
111 {
112 let $wait_counter= 0;
113 }
114 if (!$success)
115 {
116 real_sleep 0.1;
117 dec $wait_counter;
118 }
119}
120if (!$success)
121{
122 --echo # Timeout in wait_until_count_sessions.inc
123 --echo # Number of sessions expected: <= $count_sessions found: $current_sessions
124 SHOW PROCESSLIST;
125}
126
0127
=== modified file 'test/mysql-test/r/auto_increment.result'
--- test/mysql-test/r/auto_increment.result 2009-03-27 20:05:34 +0000
+++ test/mysql-test/r/auto_increment.result 2009-06-02 00:08:42 +0000
@@ -229,7 +229,8 @@
229204 7229204 7
230delete from t1 where a=0;230delete from t1 where a=0;
231update t1 set a=NULL where b=6;231update t1 set a=NULL where b=6;
232ERROR 23000: Column 'a' cannot be null232Warnings:
233Warning 1048 Column 'a' cannot be null
233update t1 set a=300 where b=7;234update t1 set a=300 where b=7;
234SET SQL_MODE='';235SET SQL_MODE='';
235insert into t1(a,b)values(NULL,8);236insert into t1(a,b)values(NULL,8);
@@ -244,7 +245,7 @@
2441 12451 1
245200 2246200 2
246201 4247201 4
247203 62480 6
248300 7249300 7
249301 8250301 8
250400 9251400 9
@@ -260,7 +261,6 @@
2601 12611 1
261200 2262200 2
262201 4263201 4
263203 6
264300 7264300 7
265301 8265301 8
266400 9266400 9
@@ -271,20 +271,20 @@
271405 14271405 14
272delete from t1 where a=0;272delete from t1 where a=0;
273update t1 set a=NULL where b=13;273update t1 set a=NULL where b=13;
274ERROR 23000: Column 'a' cannot be null274Warnings:
275Warning 1048 Column 'a' cannot be null
275update t1 set a=500 where b=14;276update t1 set a=500 where b=14;
276select * from t1 order by b;277select * from t1 order by b;
277a b278a b
2781 12791 1
279200 2280200 2
280201 4281201 4
281203 6
282300 7282300 7
283301 8283301 8
284400 9284400 9
285401 10285401 10
286402 11286402 11
287404 132870 13
288500 14288500 14
289drop table t1;289drop table t1;
290create table t1 (a bigint);290create table t1 (a bigint);
291291
=== modified file 'test/mysql-test/r/binlog_stm_ctype_ucs.result'
--- test/mysql-test/r/binlog_stm_ctype_ucs.result 2008-11-05 15:56:49 +0000
+++ test/mysql-test/r/binlog_stm_ctype_ucs.result 2009-06-02 00:12:43 +0000
@@ -17,7 +17,7 @@
17use test/*!*/;17use test/*!*/;
18SET TIMESTAMP=10000/*!*/;18SET TIMESTAMP=10000/*!*/;
19SET @@session.pseudo_thread_id=999999999/*!*/;19SET @@session.pseudo_thread_id=999999999/*!*/;
20SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;20SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
21SET @@session.sql_mode=0/*!*/;21SET @@session.sql_mode=0/*!*/;
22SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;22SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
23/*!\C latin1 *//*!*/;23/*!\C latin1 *//*!*/;
2424
=== modified file 'test/mysql-test/r/func_compress.result'
--- test/mysql-test/r/func_compress.result 2007-01-29 15:04:29 +0000
+++ test/mysql-test/r/func_compress.result 2009-06-02 00:20:29 +0000
@@ -68,10 +68,11 @@
68Error 1259 ZLIB: Input data corrupted68Error 1259 ZLIB: Input data corrupted
69Error 1256 Uncompressed data size too large; the maximum size is 1048576 (probably, length of uncompressed data was corrupted)69Error 1256 Uncompressed data size too large; the maximum size is 1048576 (probably, length of uncompressed data was corrupted)
70drop table t1;70drop table t1;
71set @@max_allowed_packet=1048576*100;71set @@global.max_allowed_packet=1048576*100;
72select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null;72select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null;
73compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null73compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null
740740
75set @@global.max_allowed_packet=default;
75create table t1(a blob);76create table t1(a blob);
76insert into t1 values(NULL), (compress('a'));77insert into t1 values(NULL), (compress('a'));
77select uncompress(a), uncompressed_length(a) from t1;78select uncompress(a), uncompressed_length(a) from t1;
7879
=== modified file 'test/mysql-test/r/func_group.result'
--- test/mysql-test/r/func_group.result 2009-04-03 19:39:12 +0000
+++ test/mysql-test/r/func_group.result 2009-06-02 00:58:37 +0000
@@ -61,7 +61,7 @@
61NULL NULL61NULL NULL
621 7621 7
632 20.25632 20.25
643 45.483163247594643 45.4831632475944
65create table t2 (grp int, a bigint unsigned, c char(10));65create table t2 (grp int, a bigint unsigned, c char(10));
66insert into t2 select grp,max(a)+max(grp),max(c) from t1 group by grp;66insert into t2 select grp,max(a)+max(grp),max(c) from t1 group by grp;
67replace into t2 select grp, a, c from t1 limit 2,1;67replace into t2 select grp, a, c from t1 limit 2,1;
@@ -1186,7 +1186,7 @@
11860.2132576411860.21325764
1187select std(o1/o2) from bug22555;1187select std(o1/o2) from bug22555;
1188std(o1/o2)1188std(o1/o2)
11890.2132576358664911890.213257635866493
1190select std(e1/e2) from bug22555;1190select std(e1/e2) from bug22555;
1191std(e1/e2)1191std(e1/e2)
11920.2132576411920.21325764
@@ -1212,7 +1212,7 @@
12120.2132576358664934112120.21325763586649341
1213select std(o1/o2) from bug22555;1213select std(o1/o2) from bug22555;
1214std(o1/o2)1214std(o1/o2)
12150.2132576358664912150.213257635866493
1216select round(std(e1/e2), 17) from bug22555;1216select round(std(e1/e2), 17) from bug22555;
1217round(std(e1/e2), 17)1217round(std(e1/e2), 17)
12180.2132576358664934112180.21325763586649341
@@ -1237,7 +1237,7 @@
12370.2132576358664934112370.21325763586649341
1238select std(o1/o2) from bug22555;1238select std(o1/o2) from bug22555;
1239std(o1/o2)1239std(o1/o2)
12400.2132576358664912400.213257635866493
1241select round(std(e1/e2), 17) from bug22555;1241select round(std(e1/e2), 17) from bug22555;
1242round(std(e1/e2), 17)1242round(std(e1/e2), 17)
12430.2132576358664934112430.21325763586649341
12441244
=== modified file 'test/mysql-test/r/func_math.result'
--- test/mysql-test/r/func_math.result 2008-03-10 11:36:34 +0000
+++ test/mysql-test/r/func_math.result 2009-06-02 00:58:37 +0000
@@ -60,7 +60,7 @@
60Note 1003 select ln(exp(10)) AS `ln(exp(10))`,exp((ln(sqrt(10)) * 2)) AS `exp(ln(sqrt(10))*2)`,ln(-(1)) AS `ln(-1)`,ln(0) AS `ln(0)`,ln(NULL) AS `ln(NULL)`60Note 1003 select ln(exp(10)) AS `ln(exp(10))`,exp((ln(sqrt(10)) * 2)) AS `exp(ln(sqrt(10))*2)`,ln(-(1)) AS `ln(-1)`,ln(0) AS `ln(0)`,ln(NULL) AS `ln(NULL)`
61select log2(8),log2(15),log2(-2),log2(0),log2(NULL);61select log2(8),log2(15),log2(-2),log2(0),log2(NULL);
62log2(8) log2(15) log2(-2) log2(0) log2(NULL)62log2(8) log2(15) log2(-2) log2(0) log2(NULL)
633 3.9068905956085 NULL NULL NULL633 3.90689059560852 NULL NULL NULL
64explain extended select log2(8),log2(15),log2(-2),log2(0),log2(NULL);64explain extended select log2(8),log2(15),log2(-2),log2(0),log2(NULL);
65id select_type table type possible_keys key key_len ref rows filtered Extra65id select_type table type possible_keys key key_len ref rows filtered Extra
661 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used661 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
@@ -68,7 +68,7 @@
68Note 1003 select log2(8) AS `log2(8)`,log2(15) AS `log2(15)`,log2(-(2)) AS `log2(-2)`,log2(0) AS `log2(0)`,log2(NULL) AS `log2(NULL)`68Note 1003 select log2(8) AS `log2(8)`,log2(15) AS `log2(15)`,log2(-(2)) AS `log2(-2)`,log2(0) AS `log2(0)`,log2(NULL) AS `log2(NULL)`
69select log10(100),log10(18),log10(-4),log10(0),log10(NULL);69select log10(100),log10(18),log10(-4),log10(0),log10(NULL);
70log10(100) log10(18) log10(-4) log10(0) log10(NULL)70log10(100) log10(18) log10(-4) log10(0) log10(NULL)
712 1.2552725051033 NULL NULL NULL712 1.25527250510331 NULL NULL NULL
72explain extended select log10(100),log10(18),log10(-4),log10(0),log10(NULL);72explain extended select log10(100),log10(18),log10(-4),log10(0),log10(NULL);
73id select_type table type possible_keys key key_len ref rows filtered Extra73id select_type table type possible_keys key key_len ref rows filtered Extra
741 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used741 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
@@ -85,7 +85,7 @@
85set @@rand_seed1=10000000,@@rand_seed2=1000000;85set @@rand_seed1=10000000,@@rand_seed2=1000000;
86select rand(999999),rand();86select rand(999999),rand();
87rand(999999) rand()87rand(999999) rand()
880.014231365187309 0.028870999839968880.0142313651873091 0.028870999839968
89explain extended select rand(999999),rand();89explain extended select rand(999999),rand();
90id select_type table type possible_keys key key_len ref rows filtered Extra90id select_type table type possible_keys key key_len ref rows filtered Extra
911 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used911 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
@@ -101,7 +101,7 @@
101Note 1003 select pi() AS `pi()`,format(sin((pi() / 2)),6) AS `format(sin(pi()/2),6)`,format(cos((pi() / 2)),6) AS `format(cos(pi()/2),6)`,format(abs(tan(pi())),6) AS `format(abs(tan(pi())),6)`,format((1 / tan(1)),6) AS `format(cot(1),6)`,format(asin(1),6) AS `format(asin(1),6)`,format(acos(0),6) AS `format(acos(0),6)`,format(atan(1),6) AS `format(atan(1),6)`101Note 1003 select pi() AS `pi()`,format(sin((pi() / 2)),6) AS `format(sin(pi()/2),6)`,format(cos((pi() / 2)),6) AS `format(cos(pi()/2),6)`,format(abs(tan(pi())),6) AS `format(abs(tan(pi())),6)`,format((1 / tan(1)),6) AS `format(cot(1),6)`,format(asin(1),6) AS `format(asin(1),6)`,format(acos(0),6) AS `format(acos(0),6)`,format(atan(1),6) AS `format(atan(1),6)`
102select degrees(pi()),radians(360);102select degrees(pi()),radians(360);
103degrees(pi()) radians(360)103degrees(pi()) radians(360)
104180 6.2831853071796104180 6.28318530717959
105select format(atan(-2, 2), 6);105select format(atan(-2, 2), 6);
106format(atan(-2, 2), 6)106format(atan(-2, 2), 6)
107-0.785398107-0.785398
108108
=== modified file 'test/mysql-test/r/func_str.result'
--- test/mysql-test/r/func_str.result 2009-03-27 20:05:34 +0000
+++ test/mysql-test/r/func_str.result 2009-06-02 00:58:37 +0000
@@ -717,8 +717,6 @@
717replace(_latin2'abcd',_latin2'b',_latin2'B'),717replace(_latin2'abcd',_latin2'b',_latin2'B'),
718encode('abcd','ab')718encode('abcd','ab')
719;719;
720Warnings:
721Warning 1265 Data truncated for column 'format(130,10)' at row 1
722show create table t1;720show create table t1;
723Table Create Table721Table Create Table
724t1 CREATE TABLE `t1` (722t1 CREATE TABLE `t1` (
@@ -727,7 +725,7 @@
727 `conv(130,16,10)` varchar(64) DEFAULT NULL,725 `conv(130,16,10)` varchar(64) DEFAULT NULL,
728 `hex(130)` varchar(6) NOT NULL DEFAULT '',726 `hex(130)` varchar(6) NOT NULL DEFAULT '',
729 `char(130)` varbinary(4) NOT NULL DEFAULT '',727 `char(130)` varbinary(4) NOT NULL DEFAULT '',
730 `format(130,10)` varchar(4) NOT NULL DEFAULT '',728 `format(130,10)` varchar(37) NOT NULL DEFAULT '',
731 `left(_latin2'a',1)` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '',729 `left(_latin2'a',1)` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '',
732 `right(_latin2'a',1)` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '',730 `right(_latin2'a',1)` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '',
733 `lcase(_latin2'a')` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '',731 `lcase(_latin2'a')` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '',
@@ -1329,10 +1327,10 @@
132920.06132720.06
1330select conv("18383815659218730760",10,10) + 0;1328select conv("18383815659218730760",10,10) + 0;
1331conv("18383815659218730760",10,10) + 01329conv("18383815659218730760",10,10) + 0
13321.8383815659219e+1913301.83838156592187e+19
1333select "18383815659218730760" + 0;1331select "18383815659218730760" + 0;
1334"18383815659218730760" + 01332"18383815659218730760" + 0
13351.8383815659219e+1913331.83838156592187e+19
1336CREATE TABLE t1 (code varchar(10));1334CREATE TABLE t1 (code varchar(10));
1337INSERT INTO t1 VALUES ('a12'), ('A12'), ('a13');1335INSERT INTO t1 VALUES ('a12'), ('A12'), ('a13');
1338SELECT ASCII(code), code FROM t1 WHERE code='A12';1336SELECT ASCII(code), code FROM t1 WHERE code='A12';
13391337
=== modified file 'test/mysql-test/r/grant.result'
--- test/mysql-test/r/grant.result 2008-03-28 10:24:43 +0000
+++ test/mysql-test/r/grant.result 2009-06-02 01:40:43 +0000
@@ -457,7 +457,7 @@
457Alter Tables To alter the table457Alter Tables To alter the table
458Alter routine Functions,Procedures To alter or drop stored functions/procedures458Alter routine Functions,Procedures To alter or drop stored functions/procedures
459Create Databases,Tables,Indexes To create new databases and tables459Create Databases,Tables,Indexes To create new databases and tables
460Create routine Functions,Procedures To use CREATE FUNCTION/PROCEDURE460Create routine Databases To use CREATE FUNCTION/PROCEDURE
461Create temporary tables Databases To use CREATE TEMPORARY TABLE461Create temporary tables Databases To use CREATE TEMPORARY TABLE
462Create view Tables To create new views462Create view Tables To create new views
463Create user Server Admin To create new users463Create user Server Admin To create new users
464464
=== modified file 'test/mysql-test/r/information_schema_db.result'
--- test/mysql-test/r/information_schema_db.result 2008-11-14 17:55:06 +0000
+++ test/mysql-test/r/information_schema_db.result 2009-06-02 01:42:27 +0000
@@ -201,7 +201,7 @@
201f1 char(4) YES NULL 201f1 char(4) YES NULL
202show create view v2;202show create view v2;
203View Create View character_set_client collation_connection203View Create View character_set_client collation_connection
204v2 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `test`.`v2` AS select `v1`.`f1` AS `f1` from `testdb_1`.`v1` latin1 latin1_swedish_ci204v2 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_2`@`localhost` SQL SECURITY DEFINER VIEW `v2` AS select `v1`.`f1` AS `f1` from `testdb_1`.`v1` latin1 latin1_swedish_ci
205show create view testdb_1.v1;205show create view testdb_1.v1;
206ERROR 42000: SHOW VIEW command denied to user 'testdb_2'@'localhost' for table 'v1'206ERROR 42000: SHOW VIEW command denied to user 'testdb_2'@'localhost' for table 'v1'
207select table_name from information_schema.columns a 207select table_name from information_schema.columns a
208208
=== modified file 'test/mysql-test/r/information_schema_part.result'
--- test/mysql-test/r/information_schema_part.result 2008-05-21 12:07:14 +0000
+++ test/mysql-test/r/information_schema_part.result 2009-06-02 01:44:36 +0000
@@ -119,7 +119,10 @@
119Table Create Table119Table Create Table
120t1 CREATE TABLE `t1` (120t1 CREATE TABLE `t1` (
121 `a` int(11) DEFAULT NULL121 `a` int(11) DEFAULT NULL
122) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) SUBPARTITION BY LINEAR HASH (a) (PARTITION p0 VALUES LESS THAN (10) ENGINE = PBXT) */122) ENGINE=PBXT DEFAULT CHARSET=latin1
123/*!50100 PARTITION BY RANGE (a)
124SUBPARTITION BY LINEAR HASH (a)
125(PARTITION p0 VALUES LESS THAN (10) ENGINE = PBXT) */
123select SUBPARTITION_METHOD FROM information_schema.partitions WHERE126select SUBPARTITION_METHOD FROM information_schema.partitions WHERE
124table_schema="test" AND table_name="t1";127table_schema="test" AND table_name="t1";
125SUBPARTITION_METHOD128SUBPARTITION_METHOD
@@ -134,7 +137,9 @@
134Table Create Table137Table Create Table
135t1 CREATE TABLE `t1` (138t1 CREATE TABLE `t1` (
136 `a` int(11) DEFAULT NULL139 `a` int(11) DEFAULT NULL
137) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY LIST (a) (PARTITION p0 VALUES IN (10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53) ENGINE = PBXT) */140) ENGINE=PBXT DEFAULT CHARSET=latin1
141/*!50100 PARTITION BY LIST (a)
142(PARTITION p0 VALUES IN (10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53) ENGINE = PBXT) */
138SELECT PARTITION_DESCRIPTION FROM information_schema.partitions WHERE143SELECT PARTITION_DESCRIPTION FROM information_schema.partitions WHERE
139table_schema = "test" AND table_name = "t1";144table_schema = "test" AND table_name = "t1";
140PARTITION_DESCRIPTION145PARTITION_DESCRIPTION
141146
=== modified file 'test/mysql-test/r/key_cache.result'
--- test/mysql-test/r/key_cache.result 2009-04-03 19:39:12 +0000
+++ test/mysql-test/r/key_cache.result 2009-06-02 01:59:10 +0000
@@ -257,8 +257,6 @@
257drop table t1,t2,t3;257drop table t1,t2,t3;
258set global keycache2.key_buffer_size=0;258set global keycache2.key_buffer_size=0;
259set global keycache3.key_buffer_size=100;259set global keycache3.key_buffer_size=100;
260Warnings:
261Warning 1292 Truncated incorrect key_buffer_size value: '100'
262set global keycache3.key_buffer_size=0;260set global keycache3.key_buffer_size=0;
263create table t1 (mytext text, FULLTEXT (mytext)) engine=myisam;261create table t1 (mytext text, FULLTEXT (mytext)) engine=myisam;
264insert t1 values ('aaabbb');262insert t1 values ('aaabbb');
265263
=== modified file 'test/mysql-test/r/myisam-blob.result'
--- test/mysql-test/r/myisam-blob.result 2007-03-13 19:06:47 +0000
+++ test/mysql-test/r/myisam-blob.result 2009-06-02 17:54:03 +0000
@@ -1,5 +1,5 @@
1drop table if exists t1;1drop table if exists t1;
2set @@max_allowed_packet=20*1024*1024;2SET global max_allowed_packet=20*1024*1024;
3CREATE TABLE t1 (data LONGBLOB) ENGINE=pbxt;3CREATE TABLE t1 (data LONGBLOB) ENGINE=pbxt;
4INSERT INTO t1 (data) VALUES (NULL);4INSERT INTO t1 (data) VALUES (NULL);
5UPDATE t1 set data=repeat('a',18*1024*1024);5UPDATE t1 set data=repeat('a',18*1024*1024);
66
=== modified file 'test/mysql-test/r/mysql_client_test.result'
--- test/mysql-test/r/mysql_client_test.result 2006-10-23 09:14:04 +0000
+++ test/mysql-test/r/mysql_client_test.result 2009-06-02 18:07:21 +0000
@@ -1,1 +1,3 @@
1SET @old_general_log= @@global.general_log;
1ok2ok
3SET @@global.general_log= @old_general_log;
24
=== modified file 'test/mysql-test/r/mysqldump.result'
--- test/mysql-test/r/mysqldump.result 2009-04-03 19:39:12 +0000
+++ test/mysql-test/r/mysqldump.result 2009-06-02 18:26:32 +0000
@@ -29,12 +29,12 @@
29CREATE TABLE t1 (a decimal(64, 20));29CREATE TABLE t1 (a decimal(64, 20));
30INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),30INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"),
31("0987654321098765432109876543210987654321");31("0987654321098765432109876543210987654321");
32SET @saved_cs_client = @@character_set_client;32/*!40101 SET @saved_cs_client = @@character_set_client */;
33SET character_set_client = utf8;33/*!40101 SET character_set_client = utf8 */;
34CREATE TABLE `t1` (34CREATE TABLE `t1` (
35 `a` decimal(64,20) DEFAULT NULL35 `a` decimal(64,20) DEFAULT NULL
36) ENGINE=PBXT DEFAULT CHARSET=latin1;36) ENGINE=PBXT DEFAULT CHARSET=latin1;
37SET character_set_client = @saved_cs_client;37/*!40101 SET character_set_client = @saved_cs_client */;
38INSERT INTO `t1` VALUES ('1234567890123456789012345678901234567890.00000000000000000000'),('987654321098765432109876543210987654321.00000000000000000000');38INSERT INTO `t1` VALUES ('1234567890123456789012345678901234567890.00000000000000000000'),('987654321098765432109876543210987654321.00000000000000000000');
39DROP TABLE t1;39DROP TABLE t1;
40#40#
@@ -44,12 +44,12 @@
44INSERT INTO t1 VALUES ('-9e999999');44INSERT INTO t1 VALUES ('-9e999999');
45Warnings:45Warnings:
46Warning 1264 Out of range value for column 'a' at row 146Warning 1264 Out of range value for column 'a' at row 1
47SET @saved_cs_client = @@character_set_client;47/*!40101 SET @saved_cs_client = @@character_set_client */;
48SET character_set_client = utf8;48/*!40101 SET character_set_client = utf8 */;
49CREATE TABLE `t1` (49CREATE TABLE `t1` (
50 `a` double DEFAULT NULL50 `a` double DEFAULT NULL
51) ENGINE=PBXT DEFAULT CHARSET=latin1;51) ENGINE=PBXT DEFAULT CHARSET=latin1;
52SET character_set_client = @saved_cs_client;52/*!40101 SET character_set_client = @saved_cs_client */;
53INSERT INTO `t1` VALUES (RES);53INSERT INTO `t1` VALUES (RES);
54DROP TABLE t1;54DROP TABLE t1;
55#55#
@@ -65,21 +65,21 @@
65INSERT INTO t1 VALUES ("1.2345", 2.3456);65INSERT INTO t1 VALUES ("1.2345", 2.3456);
66ERROR 42S22: Unknown column '1.2345' in 'field list'66ERROR 42S22: Unknown column '1.2345' in 'field list'
67SET SQL_MODE=@OLD_SQL_MODE;67SET SQL_MODE=@OLD_SQL_MODE;
68SET @saved_cs_client = @@character_set_client;68/*!40101 SET @saved_cs_client = @@character_set_client */;
69SET character_set_client = utf8;69/*!40101 SET character_set_client = utf8 */;
70CREATE TABLE `t1` (70CREATE TABLE `t1` (
71 `a` decimal(10,5) DEFAULT NULL,71 `a` decimal(10,5) DEFAULT NULL,
72 `b` float DEFAULT NULL72 `b` float DEFAULT NULL
73) ENGINE=PBXT DEFAULT CHARSET=latin1;73) ENGINE=PBXT DEFAULT CHARSET=latin1;
74SET character_set_client = @saved_cs_client;74/*!40101 SET character_set_client = @saved_cs_client */;
75INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456);75INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456);
76SET @saved_cs_client = @@character_set_client;76/*!40101 SET @saved_cs_client = @@character_set_client */;
77SET character_set_client = utf8;77/*!40101 SET character_set_client = utf8 */;
78CREATE TABLE `t1` (78CREATE TABLE `t1` (
79 `a` decimal(10,5) DEFAULT NULL,79 `a` decimal(10,5) DEFAULT NULL,
80 `b` float DEFAULT NULL80 `b` float DEFAULT NULL
81);81);
82SET character_set_client = @saved_cs_client;82/*!40101 SET character_set_client = @saved_cs_client */;
83INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456);83INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456);
8484
85/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;85/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
@@ -93,13 +93,13 @@
93/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;93/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
94/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;94/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
95DROP TABLE IF EXISTS `t1`;95DROP TABLE IF EXISTS `t1`;
96SET @saved_cs_client = @@character_set_client;96/*!40101 SET @saved_cs_client = @@character_set_client */;
97SET character_set_client = utf8;97/*!40101 SET character_set_client = utf8 */;
98CREATE TABLE `t1` (98CREATE TABLE `t1` (
99 `a` decimal(10,5) DEFAULT NULL,99 `a` decimal(10,5) DEFAULT NULL,
100 `b` float DEFAULT NULL100 `b` float DEFAULT NULL
101);101);
102SET character_set_client = @saved_cs_client;102/*!40101 SET character_set_client = @saved_cs_client */;
103103
104LOCK TABLES `t1` WRITE;104LOCK TABLES `t1` WRITE;
105/*!40000 ALTER TABLE `t1` DISABLE KEYS */;105/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -122,13 +122,13 @@
122/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;122/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
123/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;123/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
124/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;124/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
125SET @saved_cs_client = @@character_set_client;125/*!40101 SET @saved_cs_client = @@character_set_client */;
126SET character_set_client = utf8;126/*!40101 SET character_set_client = utf8 */;
127CREATE TABLE `t1` (127CREATE TABLE `t1` (
128 `a` decimal(10,5) DEFAULT NULL,128 `a` decimal(10,5) DEFAULT NULL,
129 `b` float DEFAULT NULL129 `b` float DEFAULT NULL
130);130);
131SET character_set_client = @saved_cs_client;131/*!40101 SET character_set_client = @saved_cs_client */;
132132
133INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456);133INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456);
134/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;134/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -204,12 +204,12 @@
204/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;204/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
205/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;205/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
206DROP TABLE IF EXISTS `t1`;206DROP TABLE IF EXISTS `t1`;
207SET @saved_cs_client = @@character_set_client;207/*!40101 SET @saved_cs_client = @@character_set_client */;
208SET character_set_client = utf8;208/*!40101 SET character_set_client = utf8 */;
209CREATE TABLE `t1` (209CREATE TABLE `t1` (
210 `a` varchar(255) DEFAULT NULL210 `a` varchar(255) DEFAULT NULL
211) ENGINE=PBXT DEFAULT CHARSET=koi8r;211) ENGINE=PBXT DEFAULT CHARSET=koi8r;
212SET character_set_client = @saved_cs_client;212/*!40101 SET character_set_client = @saved_cs_client */;
213213
214LOCK TABLES `t1` WRITE;214LOCK TABLES `t1` WRITE;
215/*!40000 ALTER TABLE `t1` DISABLE KEYS */;215/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -240,12 +240,9 @@
240/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL40' */;240/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL40' */;
241/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;241/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
242DROP TABLE IF EXISTS `t1`;242DROP TABLE IF EXISTS `t1`;
243SET @saved_cs_client = @@character_set_client;
244SET character_set_client = utf8;
245CREATE TABLE `t1` (243CREATE TABLE `t1` (
246 `a` int(11) DEFAULT NULL244 `a` int(11) DEFAULT NULL
247) TYPE=PBXT;245) TYPE=PBXT;
248SET character_set_client = @saved_cs_client;
249246
250LOCK TABLES `t1` WRITE;247LOCK TABLES `t1` WRITE;
251/*!40000 ALTER TABLE `t1` DISABLE KEYS */;248/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -266,12 +263,9 @@
266/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;263/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
267/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;264/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
268DROP TABLE IF EXISTS `t1`;265DROP TABLE IF EXISTS `t1`;
269SET @saved_cs_client = @@character_set_client;
270SET character_set_client = utf8;
271CREATE TABLE `t1` (266CREATE TABLE `t1` (
272 `a` int(11) DEFAULT NULL267 `a` int(11) DEFAULT NULL
273) TYPE=PBXT;268) TYPE=PBXT;
274SET character_set_client = @saved_cs_client;
275269
276LOCK TABLES `t1` WRITE;270LOCK TABLES `t1` WRITE;
277/*!40000 ALTER TABLE `t1` DISABLE KEYS */;271/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -290,12 +284,12 @@
290# Bug #2592 'mysqldump doesn't quote "tricky" names correctly'284# Bug #2592 'mysqldump doesn't quote "tricky" names correctly'
291#285#
292create table ```a` (i int);286create table ```a` (i int);
293SET @saved_cs_client = @@character_set_client;287/*!40101 SET @saved_cs_client = @@character_set_client */;
294SET character_set_client = utf8;288/*!40101 SET character_set_client = utf8 */;
295CREATE TABLE ```a` (289CREATE TABLE ```a` (
296 `i` int(11) DEFAULT NULL290 `i` int(11) DEFAULT NULL
297) ENGINE=PBXT DEFAULT CHARSET=latin1;291) ENGINE=PBXT DEFAULT CHARSET=latin1;
298SET character_set_client = @saved_cs_client;292/*!40101 SET character_set_client = @saved_cs_client */;
299drop table ```a`;293drop table ```a`;
300#294#
301# Bug #2591 "mysqldump quotes names inconsistently"295# Bug #2591 "mysqldump quotes names inconsistently"
@@ -313,12 +307,12 @@
313/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;307/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
314/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;308/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
315DROP TABLE IF EXISTS `t1`;309DROP TABLE IF EXISTS `t1`;
316SET @saved_cs_client = @@character_set_client;310/*!40101 SET @saved_cs_client = @@character_set_client */;
317SET character_set_client = utf8;311/*!40101 SET character_set_client = utf8 */;
318CREATE TABLE `t1` (312CREATE TABLE `t1` (
319 `a` int(11) DEFAULT NULL313 `a` int(11) DEFAULT NULL
320) ENGINE=PBXT DEFAULT CHARSET=latin1;314) ENGINE=PBXT DEFAULT CHARSET=latin1;
321SET character_set_client = @saved_cs_client;315/*!40101 SET character_set_client = @saved_cs_client */;
322316
323LOCK TABLES `t1` WRITE;317LOCK TABLES `t1` WRITE;
324/*!40000 ALTER TABLE `t1` DISABLE KEYS */;318/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -341,12 +335,12 @@
341/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;335/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
342/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;336/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
343DROP TABLE IF EXISTS "t1";337DROP TABLE IF EXISTS "t1";
344SET @saved_cs_client = @@character_set_client;338/*!40101 SET @saved_cs_client = @@character_set_client */;
345SET character_set_client = utf8;339/*!40101 SET character_set_client = utf8 */;
346CREATE TABLE "t1" (340CREATE TABLE "t1" (
347 "a" int(11) DEFAULT NULL341 "a" int(11) DEFAULT NULL
348);342);
349SET character_set_client = @saved_cs_client;343/*!40101 SET character_set_client = @saved_cs_client */;
350344
351LOCK TABLES "t1" WRITE;345LOCK TABLES "t1" WRITE;
352/*!40000 ALTER TABLE "t1" DISABLE KEYS */;346/*!40000 ALTER TABLE "t1" DISABLE KEYS */;
@@ -372,12 +366,12 @@
372/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;366/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
373/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;367/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
374DROP TABLE IF EXISTS `t1`;368DROP TABLE IF EXISTS `t1`;
375SET @saved_cs_client = @@character_set_client;369/*!40101 SET @saved_cs_client = @@character_set_client */;
376SET character_set_client = utf8;370/*!40101 SET character_set_client = utf8 */;
377CREATE TABLE `t1` (371CREATE TABLE `t1` (
378 `a` int(11) DEFAULT NULL372 `a` int(11) DEFAULT NULL
379) ENGINE=PBXT DEFAULT CHARSET=latin1;373) ENGINE=PBXT DEFAULT CHARSET=latin1;
380SET character_set_client = @saved_cs_client;374/*!40101 SET character_set_client = @saved_cs_client */;
381375
382LOCK TABLES `t1` WRITE;376LOCK TABLES `t1` WRITE;
383/*!40000 ALTER TABLE `t1` DISABLE KEYS */;377/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -400,12 +394,12 @@
400/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;394/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
401/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;395/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
402DROP TABLE IF EXISTS "t1";396DROP TABLE IF EXISTS "t1";
403SET @saved_cs_client = @@character_set_client;397/*!40101 SET @saved_cs_client = @@character_set_client */;
404SET character_set_client = utf8;398/*!40101 SET character_set_client = utf8 */;
405CREATE TABLE "t1" (399CREATE TABLE "t1" (
406 "a" int(11) DEFAULT NULL400 "a" int(11) DEFAULT NULL
407);401);
408SET character_set_client = @saved_cs_client;402/*!40101 SET character_set_client = @saved_cs_client */;
409403
410LOCK TABLES "t1" WRITE;404LOCK TABLES "t1" WRITE;
411/*!40000 ALTER TABLE "t1" DISABLE KEYS */;405/*!40000 ALTER TABLE "t1" DISABLE KEYS */;
@@ -435,12 +429,12 @@
435/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */;429/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */;
436/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;430/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
437DROP TABLE IF EXISTS `t1`;431DROP TABLE IF EXISTS `t1`;
438SET @saved_cs_client = @@character_set_client;432/*!40101 SET @saved_cs_client = @@character_set_client */;
439SET character_set_client = utf8;433/*!40101 SET character_set_client = utf8 */;
440CREATE TABLE `t1` (434CREATE TABLE `t1` (
441 `a` int(11) DEFAULT NULL435 `a` int(11) DEFAULT NULL
442) ENGINE=PBXT DEFAULT CHARSET=latin1;436) ENGINE=PBXT DEFAULT CHARSET=latin1;
443SET character_set_client = @saved_cs_client;437/*!40101 SET character_set_client = @saved_cs_client */;
444438
445/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;439/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
446440
@@ -529,12 +523,12 @@
529/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;523/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
530/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;524/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
531DROP TABLE IF EXISTS `t1`;525DROP TABLE IF EXISTS `t1`;
532SET @saved_cs_client = @@character_set_client;526/*!40101 SET @saved_cs_client = @@character_set_client */;
533SET character_set_client = utf8;527/*!40101 SET character_set_client = utf8 */;
534CREATE TABLE `t1` (528CREATE TABLE `t1` (
535 `a` char(10) DEFAULT NULL529 `a` char(10) DEFAULT NULL
536) ENGINE=PBXT DEFAULT CHARSET=latin1;530) ENGINE=PBXT DEFAULT CHARSET=latin1;
537SET character_set_client = @saved_cs_client;531/*!40101 SET character_set_client = @saved_cs_client */;
538532
539LOCK TABLES `t1` WRITE;533LOCK TABLES `t1` WRITE;
540/*!40000 ALTER TABLE `t1` DISABLE KEYS */;534/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -565,64 +559,55 @@
565/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;559/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
566/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;560/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
567DROP TABLE IF EXISTS `t1`;561DROP TABLE IF EXISTS `t1`;
568SET @saved_cs_client = @@character_set_client;562CREATE TABLE `t1` (
569SET character_set_client = utf8;563 `a` char(10) DEFAULT NULL
570CREATE TABLE `t1` (564) TYPE=PBXT;
571 `a` char(10) DEFAULT NULL565
572) TYPE=PBXT;566LOCK TABLES `t1` WRITE;
573SET character_set_client = @saved_cs_client;567/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
574568INSERT INTO `t1` VALUES ('Ž™šá');
575LOCK TABLES `t1` WRITE;569/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
576/*!40000 ALTER TABLE `t1` DISABLE KEYS */;570UNLOCK TABLES;
577INSERT INTO `t1` VALUES ('Ž™šá');571/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
578/*!40000 ALTER TABLE `t1` ENABLE KEYS */;572
579UNLOCK TABLES;573/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
580/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;574/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
581575/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
582/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;576/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
583/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;577
584/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;578/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
585/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;579/*!40103 SET TIME_ZONE='+00:00' */;
586580/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
587/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;581/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
588/*!40103 SET TIME_ZONE='+00:00' */;582/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
589/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;583/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
590/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;584DROP TABLE IF EXISTS `t1`;
591/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;585CREATE TABLE `t1` (
592/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;586 `a` char(10) DEFAULT NULL
593DROP TABLE IF EXISTS `t1`;587) TYPE=PBXT;
594SET @saved_cs_client = @@character_set_client;588
595SET character_set_client = utf8;589LOCK TABLES `t1` WRITE;
596CREATE TABLE `t1` (590/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
597 `a` char(10) DEFAULT NULL591INSERT INTO `t1` VALUES ('Ž™šá');
598) TYPE=PBXT;592/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
599SET character_set_client = @saved_cs_client;593UNLOCK TABLES;
600594/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
601LOCK TABLES `t1` WRITE;595
602/*!40000 ALTER TABLE `t1` DISABLE KEYS */;596/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
603INSERT INTO `t1` VALUES ('Ž™šá');597/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
604/*!40000 ALTER TABLE `t1` ENABLE KEYS */;598/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
605UNLOCK TABLES;599/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
606/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;600
607601/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
608/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;602/*!40103 SET TIME_ZONE='+00:00' */;
609/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;603/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
610/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;604/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
611/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;605/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
612606/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
613/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;607DROP TABLE IF EXISTS `t1`;
614/*!40103 SET TIME_ZONE='+00:00' */;608CREATE TABLE `t1` (
615/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;609 `a` char(10) DEFAULT NULL
616/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;610) TYPE=PBXT;
617/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */;
618/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
619DROP TABLE IF EXISTS `t1`;
620SET @saved_cs_client = @@character_set_client;
621SET character_set_client = utf8;
622CREATE TABLE `t1` (
623 `a` char(10) DEFAULT NULL
624) TYPE=PBXT;
625SET character_set_client = @saved_cs_client;
626611
627LOCK TABLES `t1` WRITE;612LOCK TABLES `t1` WRITE;
628/*!40000 ALTER TABLE `t1` DISABLE KEYS */;613/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -656,12 +641,12 @@
656/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;641/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
657/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;642/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
658DROP TABLE IF EXISTS `t2`;643DROP TABLE IF EXISTS `t2`;
659SET @saved_cs_client = @@character_set_client;644/*!40101 SET @saved_cs_client = @@character_set_client */;
660SET character_set_client = utf8;645/*!40101 SET character_set_client = utf8 */;
661CREATE TABLE `t2` (646CREATE TABLE `t2` (
662 `a` int(11) DEFAULT NULL647 `a` int(11) DEFAULT NULL
663) ENGINE=PBXT DEFAULT CHARSET=latin1;648) ENGINE=PBXT DEFAULT CHARSET=latin1;
664SET character_set_client = @saved_cs_client;649/*!40101 SET character_set_client = @saved_cs_client */;
665650
666LOCK TABLES `t2` WRITE;651LOCK TABLES `t2` WRITE;
667/*!40000 ALTER TABLE `t2` DISABLE KEYS */;652/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
@@ -697,12 +682,12 @@
697/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;682/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
698/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;683/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
699DROP TABLE IF EXISTS `t1`;684DROP TABLE IF EXISTS `t1`;
700SET @saved_cs_client = @@character_set_client;685/*!40101 SET @saved_cs_client = @@character_set_client */;
701SET character_set_client = utf8;686/*!40101 SET character_set_client = utf8 */;
702CREATE TABLE `t1` (687CREATE TABLE `t1` (
703 `b` blob688 `b` blob
704) ENGINE=PBXT DEFAULT CHARSET=latin1;689) ENGINE=PBXT DEFAULT CHARSET=latin1;
705SET character_set_client = @saved_cs_client;690/*!40101 SET character_set_client = @saved_cs_client */;
706691
707LOCK TABLES `t1` WRITE;692LOCK TABLES `t1` WRITE;
708/*!40000 ALTER TABLE `t1` DISABLE KEYS */;693/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -738,12 +723,12 @@
738/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;723/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
739/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;724/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
740DROP TABLE IF EXISTS `t1`;725DROP TABLE IF EXISTS `t1`;
741SET @saved_cs_client = @@character_set_client;726/*!40101 SET @saved_cs_client = @@character_set_client */;
742SET character_set_client = utf8;727/*!40101 SET character_set_client = utf8 */;
743CREATE TABLE `t1` (728CREATE TABLE `t1` (
744 `a` int(11) DEFAULT NULL729 `a` int(11) DEFAULT NULL
745) ENGINE=PBXT DEFAULT CHARSET=latin1;730) ENGINE=PBXT DEFAULT CHARSET=latin1;
746SET character_set_client = @saved_cs_client;731/*!40101 SET character_set_client = @saved_cs_client */;
747732
748LOCK TABLES `t1` WRITE;733LOCK TABLES `t1` WRITE;
749/*!40000 ALTER TABLE `t1` DISABLE KEYS */;734/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -772,12 +757,12 @@
772/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;757/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
773/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;758/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
774DROP TABLE IF EXISTS `t1`;759DROP TABLE IF EXISTS `t1`;
775SET @saved_cs_client = @@character_set_client;760/*!40101 SET @saved_cs_client = @@character_set_client */;
776SET character_set_client = utf8;761/*!40101 SET character_set_client = utf8 */;
777CREATE TABLE `t1` (762CREATE TABLE `t1` (
778 `a` int(11) DEFAULT NULL763 `a` int(11) DEFAULT NULL
779) ENGINE=PBXT DEFAULT CHARSET=latin1;764) ENGINE=PBXT DEFAULT CHARSET=latin1;
780SET character_set_client = @saved_cs_client;765/*!40101 SET character_set_client = @saved_cs_client */;
781766
782/*!40000 ALTER TABLE `t1` DISABLE KEYS */;767/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
783INSERT IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6);768INSERT IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6);
@@ -1141,8 +1126,8 @@
1141/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;1126/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
1142/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1127/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1143DROP TABLE IF EXISTS `t1`;1128DROP TABLE IF EXISTS `t1`;
1144SET @saved_cs_client = @@character_set_client;1129/*!40101 SET @saved_cs_client = @@character_set_client */;
1145SET character_set_client = utf8;1130/*!40101 SET character_set_client = utf8 */;
1146CREATE TABLE `t1` (1131CREATE TABLE `t1` (
1147 `F_c4ca4238a0b923820dcc509a6f75849b` int(11) DEFAULT NULL,1132 `F_c4ca4238a0b923820dcc509a6f75849b` int(11) DEFAULT NULL,
1148 `F_c81e728d9d4c2f636f067f89cc14862c` int(11) DEFAULT NULL,1133 `F_c81e728d9d4c2f636f067f89cc14862c` int(11) DEFAULT NULL,
@@ -1475,7 +1460,7 @@
1475 `F_6faa8040da20ef399b63a72d0e4ab575` int(11) DEFAULT NULL,1460 `F_6faa8040da20ef399b63a72d0e4ab575` int(11) DEFAULT NULL,
1476 `F_fe73f687e5bc5280214e0486b273a5f9` int(11) DEFAULT NULL1461 `F_fe73f687e5bc5280214e0486b273a5f9` int(11) DEFAULT NULL
1477) ENGINE=PBXT DEFAULT CHARSET=latin1;1462) ENGINE=PBXT DEFAULT CHARSET=latin1;
1478SET character_set_client = @saved_cs_client;1463/*!40101 SET character_set_client = @saved_cs_client */;
14791464
1480LOCK TABLES `t1` WRITE;1465LOCK TABLES `t1` WRITE;
1481/*!40000 ALTER TABLE `t1` DISABLE KEYS */;1466/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -1516,12 +1501,12 @@
15161501
1517USE `test`;1502USE `test`;
1518DROP TABLE IF EXISTS `t1`;1503DROP TABLE IF EXISTS `t1`;
1519SET @saved_cs_client = @@character_set_client;1504/*!40101 SET @saved_cs_client = @@character_set_client */;
1520SET character_set_client = utf8;1505/*!40101 SET character_set_client = utf8 */;
1521CREATE TABLE `t1` (1506CREATE TABLE `t1` (
1522 `a` int(11) DEFAULT NULL1507 `a` int(11) DEFAULT NULL
1523) ENGINE=PBXT DEFAULT CHARSET=latin1;1508) ENGINE=PBXT DEFAULT CHARSET=latin1;
1524SET character_set_client = @saved_cs_client;1509/*!40101 SET character_set_client = @saved_cs_client */;
15251510
1526LOCK TABLES `t1` WRITE;1511LOCK TABLES `t1` WRITE;
1527/*!40000 ALTER TABLE `t1` DISABLE KEYS */;1512/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -1560,19 +1545,19 @@
1560/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;1545/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
1561/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1546/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1562DROP TABLE IF EXISTS `t1`;1547DROP TABLE IF EXISTS `t1`;
1563SET @saved_cs_client = @@character_set_client;1548/*!40101 SET @saved_cs_client = @@character_set_client */;
1564SET character_set_client = utf8;1549/*!40101 SET character_set_client = utf8 */;
1565CREATE TABLE `t1` (1550CREATE TABLE `t1` (
1566 `a` int(11) DEFAULT NULL1551 `a` int(11) DEFAULT NULL
1567) ENGINE=PBXT DEFAULT CHARSET=latin1;1552) ENGINE=PBXT DEFAULT CHARSET=latin1;
1568SET character_set_client = @saved_cs_client;1553/*!40101 SET character_set_client = @saved_cs_client */;
1569DROP TABLE IF EXISTS `t2`;1554DROP TABLE IF EXISTS `t2`;
1570SET @saved_cs_client = @@character_set_client;1555/*!40101 SET @saved_cs_client = @@character_set_client */;
1571SET character_set_client = utf8;1556/*!40101 SET character_set_client = utf8 */;
1572CREATE TABLE `t2` (1557CREATE TABLE `t2` (
1573 `a` int(11) DEFAULT NULL1558 `a` int(11) DEFAULT NULL
1574) ENGINE=PBXT DEFAULT CHARSET=latin1;1559) ENGINE=PBXT DEFAULT CHARSET=latin1;
1575SET character_set_client = @saved_cs_client;1560/*!40101 SET character_set_client = @saved_cs_client */;
1576/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;1561/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
15771562
1578/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;1563/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
@@ -1595,19 +1580,19 @@
1595/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;1580/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
1596/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1581/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1597DROP TABLE IF EXISTS `t1`;1582DROP TABLE IF EXISTS `t1`;
1598SET @saved_cs_client = @@character_set_client;1583/*!40101 SET @saved_cs_client = @@character_set_client */;
1599SET character_set_client = utf8;1584/*!40101 SET character_set_client = utf8 */;
1600CREATE TABLE `t1` (1585CREATE TABLE `t1` (
1601 `a` int(11) DEFAULT NULL1586 `a` int(11) DEFAULT NULL
1602) ENGINE=PBXT DEFAULT CHARSET=latin1;1587) ENGINE=PBXT DEFAULT CHARSET=latin1;
1603SET character_set_client = @saved_cs_client;1588/*!40101 SET character_set_client = @saved_cs_client */;
1604DROP TABLE IF EXISTS `t2`;1589DROP TABLE IF EXISTS `t2`;
1605SET @saved_cs_client = @@character_set_client;1590/*!40101 SET @saved_cs_client = @@character_set_client */;
1606SET character_set_client = utf8;1591/*!40101 SET character_set_client = utf8 */;
1607CREATE TABLE `t2` (1592CREATE TABLE `t2` (
1608 `a` int(11) DEFAULT NULL1593 `a` int(11) DEFAULT NULL
1609) ENGINE=PBXT DEFAULT CHARSET=latin1;1594) ENGINE=PBXT DEFAULT CHARSET=latin1;
1610SET character_set_client = @saved_cs_client;1595/*!40101 SET character_set_client = @saved_cs_client */;
1611/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;1596/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
16121597
1613/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;1598/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
@@ -1807,26 +1792,26 @@
1807/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;1792/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
1808/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1793/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1809DROP TABLE IF EXISTS `t3`;1794DROP TABLE IF EXISTS `t3`;
1810SET @saved_cs_client = @@character_set_client;1795/*!40101 SET @saved_cs_client = @@character_set_client */;
1811SET character_set_client = utf8;1796/*!40101 SET character_set_client = utf8 */;
1812CREATE TABLE `t3` (1797CREATE TABLE `t3` (
1813 `a` int(11) DEFAULT NULL1798 `a` int(11) DEFAULT NULL
1814) ENGINE=PBXT DEFAULT CHARSET=latin1;1799) ENGINE=PBXT DEFAULT CHARSET=latin1;
1815SET character_set_client = @saved_cs_client;1800/*!40101 SET character_set_client = @saved_cs_client */;
1816DROP TABLE IF EXISTS `t1`;1801DROP TABLE IF EXISTS `t1`;
1817SET @saved_cs_client = @@character_set_client;1802/*!40101 SET @saved_cs_client = @@character_set_client */;
1818SET character_set_client = utf8;1803/*!40101 SET character_set_client = utf8 */;
1819CREATE TABLE `t1` (1804CREATE TABLE `t1` (
1820 `a` int(11) DEFAULT NULL1805 `a` int(11) DEFAULT NULL
1821) ENGINE=PBXT DEFAULT CHARSET=latin1;1806) ENGINE=PBXT DEFAULT CHARSET=latin1;
1822SET character_set_client = @saved_cs_client;1807/*!40101 SET character_set_client = @saved_cs_client */;
1823DROP TABLE IF EXISTS `t2`;1808DROP TABLE IF EXISTS `t2`;
1824SET @saved_cs_client = @@character_set_client;1809/*!40101 SET @saved_cs_client = @@character_set_client */;
1825SET character_set_client = utf8;1810/*!40101 SET character_set_client = utf8 */;
1826CREATE TABLE `t2` (1811CREATE TABLE `t2` (
1827 `a` int(11) DEFAULT NULL1812 `a` int(11) DEFAULT NULL
1828) ENGINE=PBXT DEFAULT CHARSET=latin1;1813) ENGINE=PBXT DEFAULT CHARSET=latin1;
1829SET character_set_client = @saved_cs_client;1814/*!40101 SET character_set_client = @saved_cs_client */;
1830/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;1815/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
18311816
1832/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;1817/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
@@ -1856,12 +1841,12 @@
1856/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;1841/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
1857/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1842/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1858DROP TABLE IF EXISTS `t1`;1843DROP TABLE IF EXISTS `t1`;
1859SET @saved_cs_client = @@character_set_client;1844/*!40101 SET @saved_cs_client = @@character_set_client */;
1860SET character_set_client = utf8;1845/*!40101 SET character_set_client = utf8 */;
1861CREATE TABLE `t1` (1846CREATE TABLE `t1` (
1862 `a` int(11) DEFAULT NULL1847 `a` int(11) DEFAULT NULL
1863) ENGINE=PBXT DEFAULT CHARSET=latin1;1848) ENGINE=PBXT DEFAULT CHARSET=latin1;
1864SET character_set_client = @saved_cs_client;1849/*!40101 SET character_set_client = @saved_cs_client */;
18651850
1866/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;1851/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
18671852
@@ -1892,15 +1877,15 @@
1892/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;1877/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
1893/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1878/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1894DROP TABLE IF EXISTS "t1";1879DROP TABLE IF EXISTS "t1";
1895SET @saved_cs_client = @@character_set_client;1880/*!40101 SET @saved_cs_client = @@character_set_client */;
1896SET character_set_client = utf8;1881/*!40101 SET character_set_client = utf8 */;
1897CREATE TABLE "t1" (1882CREATE TABLE "t1" (
1898 "a b" int(11) NOT NULL DEFAULT '0',1883 "a b" int(11) NOT NULL DEFAULT '0',
1899 "c""d" int(11) NOT NULL DEFAULT '0',1884 "c""d" int(11) NOT NULL DEFAULT '0',
1900 "e`f" int(11) NOT NULL DEFAULT '0',1885 "e`f" int(11) NOT NULL DEFAULT '0',
1901 PRIMARY KEY ("a b","c""d","e`f")1886 PRIMARY KEY ("a b","c""d","e`f")
1902);1887);
1903SET character_set_client = @saved_cs_client;1888/*!40101 SET character_set_client = @saved_cs_client */;
19041889
1905LOCK TABLES "t1" WRITE;1890LOCK TABLES "t1" WRITE;
1906/*!40000 ALTER TABLE "t1" DISABLE KEYS */;1891/*!40000 ALTER TABLE "t1" DISABLE KEYS */;
@@ -1926,15 +1911,15 @@
1926/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;1911/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
1927/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1912/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1928DROP TABLE IF EXISTS `t1`;1913DROP TABLE IF EXISTS `t1`;
1929SET @saved_cs_client = @@character_set_client;1914/*!40101 SET @saved_cs_client = @@character_set_client */;
1930SET character_set_client = utf8;1915/*!40101 SET character_set_client = utf8 */;
1931CREATE TABLE `t1` (1916CREATE TABLE `t1` (
1932 `a b` int(11) NOT NULL DEFAULT '0',1917 `a b` int(11) NOT NULL DEFAULT '0',
1933 `c"d` int(11) NOT NULL DEFAULT '0',1918 `c"d` int(11) NOT NULL DEFAULT '0',
1934 `e``f` int(11) NOT NULL DEFAULT '0',1919 `e``f` int(11) NOT NULL DEFAULT '0',
1935 PRIMARY KEY (`a b`,`c"d`,`e``f`)1920 PRIMARY KEY (`a b`,`c"d`,`e``f`)
1936) ENGINE=PBXT DEFAULT CHARSET=latin1;1921) ENGINE=PBXT DEFAULT CHARSET=latin1;
1937SET character_set_client = @saved_cs_client;1922/*!40101 SET character_set_client = @saved_cs_client */;
19381923
1939LOCK TABLES `t1` WRITE;1924LOCK TABLES `t1` WRITE;
1940/*!40000 ALTER TABLE `t1` DISABLE KEYS */;1925/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -1980,13 +1965,13 @@
1980/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;1965/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
1981/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;1966/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
1982DROP TABLE IF EXISTS `t2`;1967DROP TABLE IF EXISTS `t2`;
1983SET @saved_cs_client = @@character_set_client;1968/*!40101 SET @saved_cs_client = @@character_set_client */;
1984SET character_set_client = utf8;1969/*!40101 SET character_set_client = utf8 */;
1985CREATE TABLE `t2` (1970CREATE TABLE `t2` (
1986 `a` varchar(30) DEFAULT NULL,1971 `a` varchar(30) DEFAULT NULL,
1987 KEY `a` (`a`(5))1972 KEY `a` (`a`(5))
1988) ENGINE=PBXT DEFAULT CHARSET=latin1;1973) ENGINE=PBXT DEFAULT CHARSET=latin1;
1989SET character_set_client = @saved_cs_client;1974/*!40101 SET character_set_client = @saved_cs_client */;
19901975
1991LOCK TABLES `t2` WRITE;1976LOCK TABLES `t2` WRITE;
1992/*!40000 ALTER TABLE `t2` DISABLE KEYS */;1977/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
@@ -2079,12 +2064,12 @@
2079/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;2064/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
2080/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;2065/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
2081DROP TABLE IF EXISTS `t1`;2066DROP TABLE IF EXISTS `t1`;
2082SET @saved_cs_client = @@character_set_client;2067/*!40101 SET @saved_cs_client = @@character_set_client */;
2083SET character_set_client = utf8;2068/*!40101 SET character_set_client = utf8 */;
2084CREATE TABLE `t1` (2069CREATE TABLE `t1` (
2085 `a` int(11) DEFAULT NULL2070 `a` int(11) DEFAULT NULL
2086) ENGINE=PBXT DEFAULT CHARSET=latin1;2071) ENGINE=PBXT DEFAULT CHARSET=latin1;
2087SET character_set_client = @saved_cs_client;2072/*!40101 SET character_set_client = @saved_cs_client */;
20882073
2089LOCK TABLES `t1` WRITE;2074LOCK TABLES `t1` WRITE;
2090/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2075/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2151,13 +2136,13 @@
2151/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;2136/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
2152/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;2137/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
2153DROP TABLE IF EXISTS `t2`;2138DROP TABLE IF EXISTS `t2`;
2154SET @saved_cs_client = @@character_set_client;2139/*!40101 SET @saved_cs_client = @@character_set_client */;
2155SET character_set_client = utf8;2140/*!40101 SET character_set_client = utf8 */;
2156CREATE TABLE `t2` (2141CREATE TABLE `t2` (
2157 `a` varchar(30) DEFAULT NULL,2142 `a` varchar(30) DEFAULT NULL,
2158 KEY `a` (`a`(5))2143 KEY `a` (`a`(5))
2159) ENGINE=PBXT DEFAULT CHARSET=latin1;2144) ENGINE=PBXT DEFAULT CHARSET=latin1;
2160SET character_set_client = @saved_cs_client;2145/*!40101 SET character_set_client = @saved_cs_client */;
21612146
2162LOCK TABLES `t2` WRITE;2147LOCK TABLES `t2` WRITE;
2163/*!40000 ALTER TABLE `t2` DISABLE KEYS */;2148/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
@@ -2218,12 +2203,12 @@
2218/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;2203/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
2219/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;2204/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
2220DROP TABLE IF EXISTS `t1`;2205DROP TABLE IF EXISTS `t1`;
2221SET @saved_cs_client = @@character_set_client;2206/*!40101 SET @saved_cs_client = @@character_set_client */;
2222SET character_set_client = utf8;2207/*!40101 SET character_set_client = utf8 */;
2223CREATE TABLE `t1` (2208CREATE TABLE `t1` (
2224 `a` char(10) DEFAULT NULL2209 `a` char(10) DEFAULT NULL
2225) ENGINE=PBXT DEFAULT CHARSET=latin1;2210) ENGINE=PBXT DEFAULT CHARSET=latin1;
2226SET character_set_client = @saved_cs_client;2211/*!40101 SET character_set_client = @saved_cs_client */;
22272212
2228LOCK TABLES `t1` WRITE;2213LOCK TABLES `t1` WRITE;
2229/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2214/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2264,14 +2249,14 @@
2264/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;2249/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
2265/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;2250/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
2266DROP TABLE IF EXISTS `t1`;2251DROP TABLE IF EXISTS `t1`;
2267SET @saved_cs_client = @@character_set_client;2252/*!40101 SET @saved_cs_client = @@character_set_client */;
2268SET character_set_client = utf8;2253/*!40101 SET character_set_client = utf8 */;
2269CREATE TABLE `t1` (2254CREATE TABLE `t1` (
2270 `a` int(11) DEFAULT NULL,2255 `a` int(11) DEFAULT NULL,
2271 `b` int(11) DEFAULT NULL,2256 `b` int(11) DEFAULT NULL,
2272 `c` varchar(30) DEFAULT NULL2257 `c` varchar(30) DEFAULT NULL
2273) ENGINE=PBXT DEFAULT CHARSET=latin1;2258) ENGINE=PBXT DEFAULT CHARSET=latin1;
2274SET character_set_client = @saved_cs_client;2259/*!40101 SET character_set_client = @saved_cs_client */;
22752260
2276LOCK TABLES `t1` WRITE;2261LOCK TABLES `t1` WRITE;
2277/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2262/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2423,13 +2408,13 @@
24232408
2424USE `test`;2409USE `test`;
2425DROP TABLE IF EXISTS `t1`;2410DROP TABLE IF EXISTS `t1`;
2426SET @saved_cs_client = @@character_set_client;2411/*!40101 SET @saved_cs_client = @@character_set_client */;
2427SET character_set_client = utf8;2412/*!40101 SET character_set_client = utf8 */;
2428CREATE TABLE `t1` (2413CREATE TABLE `t1` (
2429 `a` int(11) DEFAULT NULL,2414 `a` int(11) DEFAULT NULL,
2430 `b` bigint(20) DEFAULT NULL2415 `b` bigint(20) DEFAULT NULL
2431) ENGINE=PBXT DEFAULT CHARSET=latin1;2416) ENGINE=PBXT DEFAULT CHARSET=latin1;
2432SET character_set_client = @saved_cs_client;2417/*!40101 SET character_set_client = @saved_cs_client */;
24332418
2434LOCK TABLES `t1` WRITE;2419LOCK TABLES `t1` WRITE;
2435/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2420/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2495,12 +2480,12 @@
2495/*!50003 SET character_set_results = @saved_cs_results */ ;2480/*!50003 SET character_set_results = @saved_cs_results */ ;
2496/*!50003 SET collation_connection = @saved_col_connection */ ;2481/*!50003 SET collation_connection = @saved_col_connection */ ;
2497DROP TABLE IF EXISTS `t2`;2482DROP TABLE IF EXISTS `t2`;
2498SET @saved_cs_client = @@character_set_client;2483/*!40101 SET @saved_cs_client = @@character_set_client */;
2499SET character_set_client = utf8;2484/*!40101 SET character_set_client = utf8 */;
2500CREATE TABLE `t2` (2485CREATE TABLE `t2` (
2501 `a` int(11) DEFAULT NULL2486 `a` int(11) DEFAULT NULL
2502) ENGINE=PBXT DEFAULT CHARSET=latin1;2487) ENGINE=PBXT DEFAULT CHARSET=latin1;
2503SET character_set_client = @saved_cs_client;2488/*!40101 SET character_set_client = @saved_cs_client */;
25042489
2505LOCK TABLES `t2` WRITE;2490LOCK TABLES `t2` WRITE;
2506/*!40000 ALTER TABLE `t2` DISABLE KEYS */;2491/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
@@ -2552,13 +2537,13 @@
25522537
2553USE `test`;2538USE `test`;
2554DROP TABLE IF EXISTS `t1`;2539DROP TABLE IF EXISTS `t1`;
2555SET @saved_cs_client = @@character_set_client;2540/*!40101 SET @saved_cs_client = @@character_set_client */;
2556SET character_set_client = utf8;2541/*!40101 SET character_set_client = utf8 */;
2557CREATE TABLE `t1` (2542CREATE TABLE `t1` (
2558 `a` int(11) DEFAULT NULL,2543 `a` int(11) DEFAULT NULL,
2559 `b` bigint(20) DEFAULT NULL2544 `b` bigint(20) DEFAULT NULL
2560) ENGINE=PBXT DEFAULT CHARSET=latin1;2545) ENGINE=PBXT DEFAULT CHARSET=latin1;
2561SET character_set_client = @saved_cs_client;2546/*!40101 SET character_set_client = @saved_cs_client */;
25622547
2563LOCK TABLES `t1` WRITE;2548LOCK TABLES `t1` WRITE;
2564/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2549/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2566,12 +2551,12 @@
2566/*!40000 ALTER TABLE `t1` ENABLE KEYS */;2551/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
2567UNLOCK TABLES;2552UNLOCK TABLES;
2568DROP TABLE IF EXISTS `t2`;2553DROP TABLE IF EXISTS `t2`;
2569SET @saved_cs_client = @@character_set_client;2554/*!40101 SET @saved_cs_client = @@character_set_client */;
2570SET character_set_client = utf8;2555/*!40101 SET character_set_client = utf8 */;
2571CREATE TABLE `t2` (2556CREATE TABLE `t2` (
2572 `a` int(11) DEFAULT NULL2557 `a` int(11) DEFAULT NULL
2573) ENGINE=PBXT DEFAULT CHARSET=latin1;2558) ENGINE=PBXT DEFAULT CHARSET=latin1;
2574SET character_set_client = @saved_cs_client;2559/*!40101 SET character_set_client = @saved_cs_client */;
25752560
2576LOCK TABLES `t2` WRITE;2561LOCK TABLES `t2` WRITE;
2577/*!40000 ALTER TABLE `t2` DISABLE KEYS */;2562/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
@@ -2695,12 +2680,12 @@
26952680
2696USE `test`;2681USE `test`;
2697DROP TABLE IF EXISTS `t1`;2682DROP TABLE IF EXISTS `t1`;
2698SET @saved_cs_client = @@character_set_client;2683/*!40101 SET @saved_cs_client = @@character_set_client */;
2699SET character_set_client = utf8;2684/*!40101 SET character_set_client = utf8 */;
2700CREATE TABLE `t1` (2685CREATE TABLE `t1` (
2701 `id` int(11) DEFAULT NULL2686 `id` int(11) DEFAULT NULL
2702) ENGINE=PBXT DEFAULT CHARSET=latin1;2687) ENGINE=PBXT DEFAULT CHARSET=latin1;
2703SET character_set_client = @saved_cs_client;2688/*!40101 SET character_set_client = @saved_cs_client */;
27042689
2705LOCK TABLES `t1` WRITE;2690LOCK TABLES `t1` WRITE;
2706/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2691/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2846,13 +2831,13 @@
28462831
2847USE `test`;2832USE `test`;
2848DROP TABLE IF EXISTS `t1`;2833DROP TABLE IF EXISTS `t1`;
2849SET @saved_cs_client = @@character_set_client;2834/*!40101 SET @saved_cs_client = @@character_set_client */;
2850SET character_set_client = utf8;2835/*!40101 SET character_set_client = utf8 */;
2851CREATE TABLE `t1` (2836CREATE TABLE `t1` (
2852 `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,2837 `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2853 UNIQUE KEY `d` (`d`)2838 UNIQUE KEY `d` (`d`)
2854) ENGINE=PBXT DEFAULT CHARSET=latin1;2839) ENGINE=PBXT DEFAULT CHARSET=latin1;
2855SET character_set_client = @saved_cs_client;2840/*!40101 SET character_set_client = @saved_cs_client */;
28562841
2857LOCK TABLES `t1` WRITE;2842LOCK TABLES `t1` WRITE;
2858/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2843/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2883,13 +2868,13 @@
28832868
2884USE `test`;2869USE `test`;
2885DROP TABLE IF EXISTS `t1`;2870DROP TABLE IF EXISTS `t1`;
2886SET @saved_cs_client = @@character_set_client;2871/*!40101 SET @saved_cs_client = @@character_set_client */;
2887SET character_set_client = utf8;2872/*!40101 SET character_set_client = utf8 */;
2888CREATE TABLE `t1` (2873CREATE TABLE `t1` (
2889 `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,2874 `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
2890 UNIQUE KEY `d` (`d`)2875 UNIQUE KEY `d` (`d`)
2891) ENGINE=PBXT DEFAULT CHARSET=latin1;2876) ENGINE=PBXT DEFAULT CHARSET=latin1;
2892SET character_set_client = @saved_cs_client;2877/*!40101 SET character_set_client = @saved_cs_client */;
28932878
2894LOCK TABLES `t1` WRITE;2879LOCK TABLES `t1` WRITE;
2895/*!40000 ALTER TABLE `t1` DISABLE KEYS */;2880/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -2936,12 +2921,12 @@
2936/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;2921/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,ANSI' */;
2937/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;2922/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
2938DROP TABLE IF EXISTS "t1 test";2923DROP TABLE IF EXISTS "t1 test";
2939SET @saved_cs_client = @@character_set_client;2924/*!40101 SET @saved_cs_client = @@character_set_client */;
2940SET character_set_client = utf8;2925/*!40101 SET character_set_client = utf8 */;
2941CREATE TABLE "t1 test" (2926CREATE TABLE "t1 test" (
2942 "a1" int(11) DEFAULT NULL2927 "a1" int(11) DEFAULT NULL
2943);2928);
2944SET character_set_client = @saved_cs_client;2929/*!40101 SET character_set_client = @saved_cs_client */;
29452930
2946LOCK TABLES "t1 test" WRITE;2931LOCK TABLES "t1 test" WRITE;
2947/*!40000 ALTER TABLE "t1 test" DISABLE KEYS */;2932/*!40000 ALTER TABLE "t1 test" DISABLE KEYS */;
@@ -2965,12 +2950,12 @@
2965/*!50003 SET character_set_results = @saved_cs_results */ ;2950/*!50003 SET character_set_results = @saved_cs_results */ ;
2966/*!50003 SET collation_connection = @saved_col_connection */ ;2951/*!50003 SET collation_connection = @saved_col_connection */ ;
2967DROP TABLE IF EXISTS "t2 test";2952DROP TABLE IF EXISTS "t2 test";
2968SET @saved_cs_client = @@character_set_client;2953/*!40101 SET @saved_cs_client = @@character_set_client */;
2969SET character_set_client = utf8;2954/*!40101 SET character_set_client = utf8 */;
2970CREATE TABLE "t2 test" (2955CREATE TABLE "t2 test" (
2971 "a2" int(11) DEFAULT NULL2956 "a2" int(11) DEFAULT NULL
2972);2957);
2973SET character_set_client = @saved_cs_client;2958/*!40101 SET character_set_client = @saved_cs_client */;
29742959
2975LOCK TABLES "t2 test" WRITE;2960LOCK TABLES "t2 test" WRITE;
2976/*!40000 ALTER TABLE "t2 test" DISABLE KEYS */;2961/*!40000 ALTER TABLE "t2 test" DISABLE KEYS */;
@@ -3019,14 +3004,14 @@
30193004
3020USE `test`;3005USE `test`;
3021DROP TABLE IF EXISTS `t1`;3006DROP TABLE IF EXISTS `t1`;
3022SET @saved_cs_client = @@character_set_client;3007/*!40101 SET @saved_cs_client = @@character_set_client */;
3023SET character_set_client = utf8;3008/*!40101 SET character_set_client = utf8 */;
3024CREATE TABLE `t1` (3009CREATE TABLE `t1` (
3025 `a` int(11) DEFAULT NULL,3010 `a` int(11) DEFAULT NULL,
3026 `b` varchar(32) DEFAULT NULL,3011 `b` varchar(32) DEFAULT NULL,
3027 `c` varchar(32) DEFAULT NULL3012 `c` varchar(32) DEFAULT NULL
3028) ENGINE=PBXT DEFAULT CHARSET=latin1;3013) ENGINE=PBXT DEFAULT CHARSET=latin1;
3029SET character_set_client = @saved_cs_client;3014/*!40101 SET character_set_client = @saved_cs_client */;
30303015
3031LOCK TABLES `t1` WRITE;3016LOCK TABLES `t1` WRITE;
3032/*!40000 ALTER TABLE `t1` DISABLE KEYS */;3017/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -3150,12 +3135,12 @@
31503135
3151USE `test`;3136USE `test`;
3152DROP TABLE IF EXISTS `t1`;3137DROP TABLE IF EXISTS `t1`;
3153SET @saved_cs_client = @@character_set_client;3138/*!40101 SET @saved_cs_client = @@character_set_client */;
3154SET character_set_client = utf8;3139/*!40101 SET character_set_client = utf8 */;
3155CREATE TABLE `t1` (3140CREATE TABLE `t1` (
3156 `a` int(11) DEFAULT NULL3141 `a` int(11) DEFAULT NULL
3157) ENGINE=PBXT DEFAULT CHARSET=latin1;3142) ENGINE=PBXT DEFAULT CHARSET=latin1;
3158SET character_set_client = @saved_cs_client;3143/*!40101 SET character_set_client = @saved_cs_client */;
31593144
3160LOCK TABLES `t1` WRITE;3145LOCK TABLES `t1` WRITE;
3161/*!40000 ALTER TABLE `t1` DISABLE KEYS */;3146/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -3209,13 +3194,13 @@
3209/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;3194/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
3210/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;3195/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
3211DROP TABLE IF EXISTS `t1`;3196DROP TABLE IF EXISTS `t1`;
3212SET @saved_cs_client = @@character_set_client;3197/*!40101 SET @saved_cs_client = @@character_set_client */;
3213SET character_set_client = utf8;3198/*!40101 SET character_set_client = utf8 */;
3214CREATE TABLE `t1` (3199CREATE TABLE `t1` (
3215 `a` binary(1) DEFAULT NULL,3200 `a` binary(1) DEFAULT NULL,
3216 `b` blob3201 `b` blob
3217) ENGINE=PBXT DEFAULT CHARSET=latin1;3202) ENGINE=PBXT DEFAULT CHARSET=latin1;
3218SET character_set_client = @saved_cs_client;3203/*!40101 SET character_set_client = @saved_cs_client */;
32193204
3220LOCK TABLES `t1` WRITE;3205LOCK TABLES `t1` WRITE;
3221/*!40000 ALTER TABLE `t1` DISABLE KEYS */;3206/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -3244,13 +3229,13 @@
3244/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;3229/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
3245/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;3230/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
3246DROP TABLE IF EXISTS `t1`;3231DROP TABLE IF EXISTS `t1`;
3247SET @saved_cs_client = @@character_set_client;3232/*!40101 SET @saved_cs_client = @@character_set_client */;
3248SET character_set_client = utf8;3233/*!40101 SET character_set_client = utf8 */;
3249CREATE TABLE `t1` (3234CREATE TABLE `t1` (
3250 `a` binary(1) DEFAULT NULL,3235 `a` binary(1) DEFAULT NULL,
3251 `b` blob3236 `b` blob
3252) ENGINE=PBXT DEFAULT CHARSET=latin1;3237) ENGINE=PBXT DEFAULT CHARSET=latin1;
3253SET character_set_client = @saved_cs_client;3238/*!40101 SET character_set_client = @saved_cs_client */;
32543239
3255LOCK TABLES `t1` WRITE;3240LOCK TABLES `t1` WRITE;
3256/*!40000 ALTER TABLE `t1` DISABLE KEYS */;3241/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -3423,12 +3408,12 @@
34233408
3424USE `mysqldump_test_db`;3409USE `mysqldump_test_db`;
3425DROP TABLE IF EXISTS `t1`;3410DROP TABLE IF EXISTS `t1`;
3426SET @saved_cs_client = @@character_set_client;3411/*!40101 SET @saved_cs_client = @@character_set_client */;
3427SET character_set_client = utf8;3412/*!40101 SET character_set_client = utf8 */;
3428CREATE TABLE `t1` (3413CREATE TABLE `t1` (
3429 `id` int(11) DEFAULT NULL3414 `id` int(11) DEFAULT NULL
3430) ENGINE=PBXT DEFAULT CHARSET=latin1;3415) ENGINE=PBXT DEFAULT CHARSET=latin1;
3431SET character_set_client = @saved_cs_client;3416/*!40101 SET character_set_client = @saved_cs_client */;
34323417
3433LOCK TABLES `t1` WRITE;3418LOCK TABLES `t1` WRITE;
3434/*!40000 ALTER TABLE `t1` DISABLE KEYS */;3419/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -3485,14 +3470,14 @@
3485CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_tables` /*!40100 DEFAULT CHARACTER SET latin1 */;3470CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_tables` /*!40100 DEFAULT CHARACTER SET latin1 */;
34863471
3487USE `mysqldump_tables`;3472USE `mysqldump_tables`;
3488SET @saved_cs_client = @@character_set_client;3473/*!40101 SET @saved_cs_client = @@character_set_client */;
3489SET character_set_client = utf8;3474/*!40101 SET character_set_client = utf8 */;
3490CREATE TABLE `basetable` (3475CREATE TABLE `basetable` (
3491 `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,3476 `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
3492 `tag` varchar(64) DEFAULT NULL,3477 `tag` varchar(64) DEFAULT NULL,
3493 UNIQUE KEY `id` (`id`)3478 UNIQUE KEY `id` (`id`)
3494) ENGINE=PBXT DEFAULT CHARSET=latin1;3479) ENGINE=PBXT DEFAULT CHARSET=latin1;
3495SET character_set_client = @saved_cs_client;3480/*!40101 SET character_set_client = @saved_cs_client */;
34963481
3497CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_views` /*!40100 DEFAULT CHARACTER SET latin1 */;3482CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_views` /*!40100 DEFAULT CHARACTER SET latin1 */;
34983483
@@ -3516,7 +3501,7 @@
3516/*!50001 SET collation_connection = latin1_swedish_ci */;3501/*!50001 SET collation_connection = latin1_swedish_ci */;
3517/*!50001 CREATE ALGORITHM=UNDEFINED */3502/*!50001 CREATE ALGORITHM=UNDEFINED */
3518/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */3503/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
3519/*!50001 VIEW `mysqldump_views`.`nasishnasifu` AS select `mysqldump_tables`.`basetable`.`id` AS `id` from `mysqldump_tables`.`basetable` */;3504/*!50001 VIEW `nasishnasifu` AS select `mysqldump_tables`.`basetable`.`id` AS `id` from `mysqldump_tables`.`basetable` */;
3520/*!50001 SET character_set_client = @saved_cs_client */;3505/*!50001 SET character_set_client = @saved_cs_client */;
3521/*!50001 SET character_set_results = @saved_cs_results */;3506/*!50001 SET character_set_results = @saved_cs_results */;
3522/*!50001 SET collation_connection = @saved_col_connection */;3507/*!50001 SET collation_connection = @saved_col_connection */;
@@ -3659,31 +3644,31 @@
3659/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;3644/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
3660/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;3645/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
3661DROP TABLE IF EXISTS `t1`;3646DROP TABLE IF EXISTS `t1`;
3662SET @saved_cs_client = @@character_set_client;3647/*!40101 SET @saved_cs_client = @@character_set_client */;
3663SET character_set_client = utf8;3648/*!40101 SET character_set_client = utf8 */;
3664CREATE TABLE `t1` (3649CREATE TABLE `t1` (
3665 `a` int(11) DEFAULT NULL3650 `a` int(11) DEFAULT NULL
3666) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t2`,`t3`);3651) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t2`,`t3`);
3667SET character_set_client = @saved_cs_client;3652/*!40101 SET character_set_client = @saved_cs_client */;
3668DROP TABLE IF EXISTS `t2`;3653DROP TABLE IF EXISTS `t2`;
3669SET @saved_cs_client = @@character_set_client;3654/*!40101 SET @saved_cs_client = @@character_set_client */;
3670SET character_set_client = utf8;3655/*!40101 SET character_set_client = utf8 */;
3671CREATE TABLE `t2` (3656CREATE TABLE `t2` (
3672 `a` int(11) DEFAULT NULL3657 `a` int(11) DEFAULT NULL
3673) ENGINE=MyISAM DEFAULT CHARSET=latin1;3658) ENGINE=MyISAM DEFAULT CHARSET=latin1;
3674SET character_set_client = @saved_cs_client;3659/*!40101 SET character_set_client = @saved_cs_client */;
36753660
3676LOCK TABLES `t2` WRITE;3661LOCK TABLES `t2` WRITE;
3677/*!40000 ALTER TABLE `t2` DISABLE KEYS */;3662/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
3678/*!40000 ALTER TABLE `t2` ENABLE KEYS */;3663/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
3679UNLOCK TABLES;3664UNLOCK TABLES;
3680DROP TABLE IF EXISTS `t3`;3665DROP TABLE IF EXISTS `t3`;
3681SET @saved_cs_client = @@character_set_client;3666/*!40101 SET @saved_cs_client = @@character_set_client */;
3682SET character_set_client = utf8;3667/*!40101 SET character_set_client = utf8 */;
3683CREATE TABLE `t3` (3668CREATE TABLE `t3` (
3684 `a` int(11) DEFAULT NULL3669 `a` int(11) DEFAULT NULL
3685) ENGINE=MyISAM DEFAULT CHARSET=latin1;3670) ENGINE=MyISAM DEFAULT CHARSET=latin1;
3686SET character_set_client = @saved_cs_client;3671/*!40101 SET character_set_client = @saved_cs_client */;
36873672
3688LOCK TABLES `t3` WRITE;3673LOCK TABLES `t3` WRITE;
3689/*!40000 ALTER TABLE `t3` DISABLE KEYS */;3674/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
@@ -3763,13 +3748,13 @@
3763#3748#
3764CREATE TABLE t1 (c1 INT, c2 LONGBLOB);3749CREATE TABLE t1 (c1 INT, c2 LONGBLOB);
3765INSERT INTO t1 SET c1=11, c2=REPEAT('q',509);3750INSERT INTO t1 SET c1=11, c2=REPEAT('q',509);
3766SET @saved_cs_client = @@character_set_client;3751/*!40101 SET @saved_cs_client = @@character_set_client */;
3767SET character_set_client = utf8;3752/*!40101 SET character_set_client = utf8 */;
3768CREATE TABLE `t1` (3753CREATE TABLE `t1` (
3769 `c1` int(11) DEFAULT NULL,3754 `c1` int(11) DEFAULT NULL,
3770 `c2` longblob3755 `c2` longblob
3771);3756);
3772SET character_set_client = @saved_cs_client;3757/*!40101 SET character_set_client = @saved_cs_client */;
3773INSERT INTO `t1` VALUES (11,0x7171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171);3758INSERT INTO `t1` VALUES (11,0x7171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171);
3774DROP TABLE t1;3759DROP TABLE t1;
3775#3760#
@@ -3846,13 +3831,13 @@
3846/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;3831/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
3847/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;3832/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
3848DROP TABLE IF EXISTS `t1`;3833DROP TABLE IF EXISTS `t1`;
3849SET @saved_cs_client = @@character_set_client;3834/*!40101 SET @saved_cs_client = @@character_set_client */;
3850SET character_set_client = utf8;3835/*!40101 SET character_set_client = utf8 */;
3851CREATE TABLE `t1` (3836CREATE TABLE `t1` (
3852 `a` int(11) DEFAULT NULL,3837 `a` int(11) DEFAULT NULL,
3853 `b` int(11) DEFAULT NULL3838 `b` int(11) DEFAULT NULL
3854) ENGINE=PBXT DEFAULT CHARSET=latin1;3839) ENGINE=PBXT DEFAULT CHARSET=latin1;
3855SET character_set_client = @saved_cs_client;3840/*!40101 SET character_set_client = @saved_cs_client */;
38563841
3857LOCK TABLES `t1` WRITE;3842LOCK TABLES `t1` WRITE;
3858/*!40000 ALTER TABLE `t1` DISABLE KEYS */;3843/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -3941,12 +3926,12 @@
39413926
3942USE `mysqldump_test_db`;3927USE `mysqldump_test_db`;
3943DROP TABLE IF EXISTS `t1`;3928DROP TABLE IF EXISTS `t1`;
3944SET @saved_cs_client = @@character_set_client;3929/*!40101 SET @saved_cs_client = @@character_set_client */;
3945SET character_set_client = utf8;3930/*!40101 SET character_set_client = utf8 */;
3946CREATE TABLE `t1` (3931CREATE TABLE `t1` (
3947 `id` int(11) DEFAULT NULL3932 `id` int(11) DEFAULT NULL
3948) ENGINE=PBXT DEFAULT CHARSET=latin1;3933) ENGINE=PBXT DEFAULT CHARSET=latin1;
3949SET character_set_client = @saved_cs_client;3934/*!40101 SET character_set_client = @saved_cs_client */;
39503935
3951LOCK TABLES `t1` WRITE;3936LOCK TABLES `t1` WRITE;
3952/*!40000 ALTER TABLE `t1` DISABLE KEYS */;3937/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
@@ -4046,12 +4031,12 @@
4046use `test-database`;4031use `test-database`;
4047create table test (a int);4032create table test (a int);
4048DROP TABLE IF EXISTS `test`;4033DROP TABLE IF EXISTS `test`;
4049SET @saved_cs_client = @@character_set_client;4034/*!40101 SET @saved_cs_client = @@character_set_client */;
4050SET character_set_client = utf8;4035/*!40101 SET character_set_client = utf8 */;
4051CREATE TABLE `test` (4036CREATE TABLE `test` (
4052 `a` int(11) DEFAULT NULL4037 `a` int(11) DEFAULT NULL
4053) ENGINE=PBXT DEFAULT CHARSET=latin1;4038) ENGINE=PBXT DEFAULT CHARSET=latin1;
4054SET character_set_client = @saved_cs_client;4039/*!40101 SET character_set_client = @saved_cs_client */;
4055LOCK TABLES `test` WRITE;4040LOCK TABLES `test` WRITE;
4056/*!40000 ALTER TABLE `test` DISABLE KEYS */;4041/*!40000 ALTER TABLE `test` DISABLE KEYS */;
4057/*!40000 ALTER TABLE `test` ENABLE KEYS */;4042/*!40000 ALTER TABLE `test` ENABLE KEYS */;
40584043
=== modified file 'test/mysql-test/r/mysqltest.result'
--- test/mysql-test/r/mysqltest.result 2008-06-09 12:49:32 +0000
+++ test/mysql-test/r/mysqltest.result 2009-06-02 18:38:30 +0000
@@ -14,6 +14,7 @@
14otto14otto
151151
16mysqltest: At line 1: query 'select otto from (select 1 as otto) as t1' succeeded - should have failed with sqlstate 42S22...16mysqltest: At line 1: query 'select otto from (select 1 as otto) as t1' succeeded - should have failed with sqlstate 42S22...
17mysqltest: At line 1: expecting a SQL-state (00000) from query 'remove_file MYSQLTEST_VARDIR/tmp/test_nonexistent.tmp' which cannot produce one...
17select friedrich from (select 1 as otto) as t1;18select friedrich from (select 1 as otto) as t1;
18ERROR 42S22: Unknown column 'friedrich' in 'field list'19ERROR 42S22: Unknown column 'friedrich' in 'field list'
19mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed with wrong sqlstate 42S22: 'Unknown column 'friedrich' in 'field list'', instead of 00000...20mysqltest: At line 1: query 'select friedrich from (select 1 as otto) as t1' failed with wrong sqlstate 42S22: 'Unknown column 'friedrich' in 'field list'', instead of 00000...
@@ -152,8 +153,12 @@
152mysqltest: At line 1: End of line junk detected: "sleep 7153mysqltest: At line 1: End of line junk detected: "sleep 7
153# Another comment154# Another comment
154"155"
155mysqltest: At line 1: Missing delimiter156mysqltest: At line 1: Extra argument 'comment
156mysqltest: At line 1: Missing delimiter157# comment 3
158disable_query_log' passed to 'disconnect'
159mysqltest: At line 1: Extra argument 'comment
160# comment 3
161disable_query_log' passed to 'disconnect'
157mysqltest: At line 1: End of line junk detected: "disconnect default162mysqltest: At line 1: End of line junk detected: "disconnect default
158163
159#164#
@@ -210,7 +215,6 @@
210"MySQL: The world's most popular ;open source database"215"MySQL: The world's most popular ;open source database"
211echo message echo message216echo message echo message
212217
213mysqltest: At line 1: command "false" failed
214mysqltest: At line 1: Missing argument in exec218mysqltest: At line 1: Missing argument in exec
215MySQL219MySQL
216"MySQL"220"MySQL"
@@ -293,7 +297,7 @@
293failing query in let297failing query in let
294mysqltest: At line 1: Error running query 'failing query': 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing query' at line 1298mysqltest: At line 1: Error running query 'failing query': 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing query' at line 1
295mysqltest: At line 1: Missing required argument 'filename' to command 'source'299mysqltest: At line 1: Missing required argument 'filename' to command 'source'
296mysqltest: At line 1: Could not open './non_existingFile' for reading300mysqltest: At line 1: Could not open './non_existingFile' for reading, errno: 2
297mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql": At line 1: Source directives are nesting too deep301mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql": At line 1: Source directives are nesting too deep
298mysqltest: In included file "MYSQLTEST_VARDIR/tmp/error.sql": At line 1: query 'garbage ' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1302mysqltest: In included file "MYSQLTEST_VARDIR/tmp/error.sql": At line 1: query 'garbage ' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'garbage' at line 1
299303
@@ -378,7 +382,6 @@
378mysqltest: At line 1: End of line junk detected: "1000"382mysqltest: At line 1: End of line junk detected: "1000"
379mysqltest: At line 1: Missing arguments to system, nothing to do!383mysqltest: At line 1: Missing arguments to system, nothing to do!
380mysqltest: At line 1: Missing arguments to system, nothing to do!384mysqltest: At line 1: Missing arguments to system, nothing to do!
381mysqltest: At line 1: system command 'false' failed
382system command 'NonExistsinfComamdn 2> /dev/null' failed385system command 'NonExistsinfComamdn 2> /dev/null' failed
383test386test
384test2387test2
@@ -443,7 +446,7 @@
443Output from mysqltest-x.inc446Output from mysqltest-x.inc
444Output from mysqltest-x.inc447Output from mysqltest-x.inc
445Output from mysqltest-x.inc448Output from mysqltest-x.inc
446mysqltest: Could not open './non_existing_file.inc' for reading: errno = 2449mysqltest: Could not open './non_existing_file.inc' for reading, errno: 2
447failing_statement;450failing_statement;
448ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing_statement' at line 1451ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'failing_statement' at line 1
449failing_statement;452failing_statement;
@@ -486,8 +489,6 @@
486insert into t1 values (1);489insert into t1 values (1);
487select 'select-me';490select 'select-me';
488insertz 'error query'' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz 'error query'' at line 1491insertz 'error query'' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insertz 'error query'' at line 1
489
490More results from queries before failure can be found in MYSQLTEST_VARDIR/log/bug11731.log
491drop table t1;492drop table t1;
492Multi statement using expected error493Multi statement using expected error
493create table t1 (a int primary key);494create table t1 (a int primary key);
@@ -725,4 +726,29 @@
725mysqltest: At line 1: change user failed: Unknown database 'inexistent'726mysqltest: At line 1: change user failed: Unknown database 'inexistent'
726mysqltest: At line 1: change user failed: Access denied for user 'inexistent'@'localhost' (using password: NO)727mysqltest: At line 1: change user failed: Access denied for user 'inexistent'@'localhost' (using password: NO)
727mysqltest: At line 1: change user failed: Access denied for user 'root'@'localhost' (using password: YES)728mysqltest: At line 1: change user failed: Access denied for user 'root'@'localhost' (using password: YES)
729file1.txt
730file1.txt
731file2.txt
732SELECT 'c:\\a.txt' AS col;
733col
734z
735hej
736mysqltest: At line 1: Found junk ' != 143' after $variable in expression
737select 1;
7381
7391
740select 1;
7411
7421
743-- a comment for the server;
744mysqltest: At line 1: Found line beginning with -- that didn't contain a valid mysqltest command, check your syntax or use # if you intended to write a comment
745con1
746con2
747default
748con1
749con2
750con1
751con2
752con2
753-closed_connection-
728End of tests754End of tests
729755
=== modified file 'test/mysql-test/r/null.result'
--- test/mysql-test/r/null.result 2009-03-27 20:05:34 +0000
+++ test/mysql-test/r/null.result 2009-06-02 18:58:34 +0000
@@ -93,9 +93,11 @@
93Warnings:93Warnings:
94Warning 1265 Data truncated for column 'd' at row 194Warning 1265 Data truncated for column 'd' at row 1
95UPDATE t1 SET d=1/NULL;95UPDATE t1 SET d=1/NULL;
96ERROR 23000: Column 'd' cannot be null96Warnings:
97Warning 1265 Data truncated for column 'd' at row 1
97UPDATE t1 SET d=NULL;98UPDATE t1 SET d=NULL;
98ERROR 23000: Column 'd' cannot be null99Warnings:
100Warning 1048 Column 'd' cannot be null
99INSERT INTO t1 (a) values (null);101INSERT INTO t1 (a) values (null);
100ERROR 23000: Column 'a' cannot be null102ERROR 23000: Column 'a' cannot be null
101INSERT INTO t1 (a) values (1/null);103INSERT INTO t1 (a) values (1/null);
@@ -130,7 +132,7 @@
130Warning 1048 Column 'd' cannot be null132Warning 1048 Column 'd' cannot be null
131select * from t1;133select * from t1;
132a b c d134a b c d
133 0 0000-00-00 00:00:00 2003135 0 0000-00-00 00:00:00 0
134 0 0000-00-00 00:00:00 0136 0 0000-00-00 00:00:00 0
135 0 0000-00-00 00:00:00 0137 0 0000-00-00 00:00:00 0
136 0 0000-00-00 00:00:00 0138 0 0000-00-00 00:00:00 0
137139
=== modified file 'test/mysql-test/r/packet.result'
--- test/mysql-test/r/packet.result 2008-03-11 16:31:13 +0000
+++ test/mysql-test/r/packet.result 2009-06-02 19:02:51 +0000
@@ -1,35 +1,29 @@
1set @max_allowed_packet=@@global.max_allowed_packet;
2set @net_buffer_length=@@global.net_buffer_length;
1set global max_allowed_packet=100;3set global max_allowed_packet=100;
2Warnings:4Warnings:
3Warning 1292 Truncated incorrect max_allowed_packet value: '100'5Warning 1292 Truncated incorrect max_allowed_packet value: '100'
4set max_allowed_packet=100;
5Warnings:
6Warning 1292 Truncated incorrect max_allowed_packet value: '100'
7set global net_buffer_length=100;6set global net_buffer_length=100;
8Warnings:7Warnings:
9Warning 1292 Truncated incorrect net_buffer_length value: '100'8Warning 1292 Truncated incorrect net_buffer_length value: '100'
10set net_buffer_length=100;
11Warnings:
12Warning 1292 Truncated incorrect net_buffer_length value: '100'
13SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;9SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
14len10len
151024111024
16select repeat('a',2000);12select repeat('a',2000);
17repeat('a',2000)13repeat('a',2000)
18NULL14aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
19Warnings:
20Warning 1301 Result of repeat() was larger than max_allowed_packet (1024) - truncated
21select @@net_buffer_length, @@max_allowed_packet;15select @@net_buffer_length, @@max_allowed_packet;
22@@net_buffer_length @@max_allowed_packet16@@net_buffer_length @@max_allowed_packet
231024 1024171024 1024
24SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;18SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
25ERROR 08S01: Got a packet bigger than 'max_allowed_packet' bytes19ERROR 08S01: Got a packet bigger than 'max_allowed_packet' bytes
26set global max_allowed_packet=default;20set global max_allowed_packet=default;
27set max_allowed_packet=default;
28set global net_buffer_length=default;21set global net_buffer_length=default;
29set net_buffer_length=default;
30SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;22SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
31len23len
3210024100
33select length(repeat('a',2000));25select length(repeat('a',2000));
34length(repeat('a',2000))26length(repeat('a',2000))
352000272000
28set global max_allowed_packet=@max_allowed_packet;
29set global net_buffer_length=@net_buffer_length;
3630
=== modified file 'test/mysql-test/r/partition.result'
--- test/mysql-test/r/partition.result 2008-09-17 07:41:28 +0000
+++ test/mysql-test/r/partition.result 2009-06-02 19:05:33 +0000
@@ -76,13 +76,21 @@
76Table Create Table76Table Create Table
77t1 CREATE TABLE `t1` (77t1 CREATE TABLE `t1` (
78 `a` int(11) DEFAULT NULL78 `a` int(11) DEFAULT NULL
79) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) SUBPARTITION BY KEY (a) (PARTITION p0 VALUES LESS THAN (1) ENGINE = PBXT, PARTITION p1 VALUES LESS THAN (2) ENGINE = PBXT) */79) ENGINE=PBXT DEFAULT CHARSET=latin1
80/*!50100 PARTITION BY RANGE (a)
81SUBPARTITION BY KEY (a)
82(PARTITION p0 VALUES LESS THAN (1) ENGINE = PBXT,
83 PARTITION p1 VALUES LESS THAN (2) ENGINE = PBXT) */
80alter table t1 reorganize partition p1 into (partition p1 values less than (3));84alter table t1 reorganize partition p1 into (partition p1 values less than (3));
81show create table t1;85show create table t1;
82Table Create Table86Table Create Table
83t1 CREATE TABLE `t1` (87t1 CREATE TABLE `t1` (
84 `a` int(11) DEFAULT NULL88 `a` int(11) DEFAULT NULL
85) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) SUBPARTITION BY KEY (a) (PARTITION p0 VALUES LESS THAN (1) ENGINE = PBXT, PARTITION p1 VALUES LESS THAN (3) ENGINE = PBXT) */89) ENGINE=PBXT DEFAULT CHARSET=latin1
90/*!50100 PARTITION BY RANGE (a)
91SUBPARTITION BY KEY (a)
92(PARTITION p0 VALUES LESS THAN (1) ENGINE = PBXT,
93 PARTITION p1 VALUES LESS THAN (3) ENGINE = PBXT) */
86drop table t1;94drop table t1;
87CREATE TABLE t1 (95CREATE TABLE t1 (
88a int not null,96a int not null,
@@ -100,7 +108,8 @@
100 `b` int(11) NOT NULL,108 `b` int(11) NOT NULL,
101 `c` int(11) NOT NULL,109 `c` int(11) NOT NULL,
102 PRIMARY KEY (`a`,`b`)110 PRIMARY KEY (`a`,`b`)
103) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) */111) ENGINE=PBXT DEFAULT CHARSET=latin1
112/*!50100 PARTITION BY KEY (a) */
104drop table t1;113drop table t1;
105CREATE TABLE t1 (114CREATE TABLE t1 (
106a int not null,115a int not null,
@@ -277,7 +286,9 @@
277Table Create Table286Table Create Table
278t1 CREATE TABLE `t1` (287t1 CREATE TABLE `t1` (
279 `a` int(11) DEFAULT NULL288 `a` int(11) DEFAULT NULL
280) ENGINE=MEMORY DEFAULT CHARSET=latin1 /*!50100 PARTITION BY LIST (a) (PARTITION x1 VALUES IN (1) ENGINE = MEMORY) */289) ENGINE=MEMORY DEFAULT CHARSET=latin1
290/*!50100 PARTITION BY LIST (a)
291(PARTITION x1 VALUES IN (1) ENGINE = MEMORY) */
281drop table t1;292drop table t1;
282CREATE TABLE t1 (a int, unique(a))293CREATE TABLE t1 (a int, unique(a))
283PARTITION BY LIST (a)294PARTITION BY LIST (a)
@@ -301,7 +312,9 @@
301Table Create Table312Table Create Table
302t1 CREATE TABLE `t1` (313t1 CREATE TABLE `t1` (
303 `a` int(11) DEFAULT NULL314 `a` int(11) DEFAULT NULL
304) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (a) PARTITIONS 5 */315) ENGINE=PBXT DEFAULT CHARSET=latin1
316/*!50100 PARTITION BY HASH (a)
317PARTITIONS 5 */
305drop table t1;318drop table t1;
306CREATE TABLE t1 (a int)319CREATE TABLE t1 (a int)
307PARTITION BY RANGE (a)320PARTITION BY RANGE (a)
@@ -328,7 +341,11 @@
328Table Create Table341Table Create Table
329t1 CREATE TABLE `t1` (342t1 CREATE TABLE `t1` (
330 `a` int(11) DEFAULT NULL343 `a` int(11) DEFAULT NULL
331) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (10) ENGINE = PBXT, PARTITION p1 VALUES LESS THAN (20) ENGINE = PBXT, PARTITION p2 VALUES LESS THAN (30) ENGINE = PBXT) */344) ENGINE=PBXT DEFAULT CHARSET=latin1
345/*!50100 PARTITION BY RANGE (a)
346(PARTITION p0 VALUES LESS THAN (10) ENGINE = PBXT,
347 PARTITION p1 VALUES LESS THAN (20) ENGINE = PBXT,
348 PARTITION p2 VALUES LESS THAN (30) ENGINE = PBXT) */
332drop table t1;349drop table t1;
333CREATE TABLE t1 (a int, b int)350CREATE TABLE t1 (a int, b int)
334PARTITION BY RANGE (a)351PARTITION BY RANGE (a)
@@ -349,7 +366,16 @@
349t1 CREATE TABLE `t1` (366t1 CREATE TABLE `t1` (
350 `a` int(11) DEFAULT NULL,367 `a` int(11) DEFAULT NULL,
351 `b` int(11) DEFAULT NULL368 `b` int(11) DEFAULT NULL
352) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) (PARTITION x1 VALUES LESS THAN (6) ENGINE = PBXT, PARTITION x3 VALUES LESS THAN (8) ENGINE = PBXT, PARTITION x4 VALUES LESS THAN (10) ENGINE = PBXT, PARTITION x5 VALUES LESS THAN (12) ENGINE = PBXT, PARTITION x6 VALUES LESS THAN (14) ENGINE = PBXT, PARTITION x7 VALUES LESS THAN (16) ENGINE = PBXT, PARTITION x8 VALUES LESS THAN (18) ENGINE = PBXT, PARTITION x9 VALUES LESS THAN (20) ENGINE = PBXT) */369) ENGINE=PBXT DEFAULT CHARSET=latin1
370/*!50100 PARTITION BY RANGE (a)
371(PARTITION x1 VALUES LESS THAN (6) ENGINE = PBXT,
372 PARTITION x3 VALUES LESS THAN (8) ENGINE = PBXT,
373 PARTITION x4 VALUES LESS THAN (10) ENGINE = PBXT,
374 PARTITION x5 VALUES LESS THAN (12) ENGINE = PBXT,
375 PARTITION x6 VALUES LESS THAN (14) ENGINE = PBXT,
376 PARTITION x7 VALUES LESS THAN (16) ENGINE = PBXT,
377 PARTITION x8 VALUES LESS THAN (18) ENGINE = PBXT,
378 PARTITION x9 VALUES LESS THAN (20) ENGINE = PBXT) */
353drop table t1;379drop table t1;
354create table t1 (a int not null, b int not null) partition by LIST (a+b) (380create table t1 (a int not null, b int not null) partition by LIST (a+b) (
355partition p0 values in (12),381partition p0 values in (12),
@@ -403,25 +429,37 @@
403Table Create Table429Table Create Table
404t1 CREATE TABLE `t1` (430t1 CREATE TABLE `t1` (
405 `a` int(11) DEFAULT NULL431 `a` int(11) DEFAULT NULL
406) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MyISAM, PARTITION p1 ENGINE = MyISAM) */432) ENGINE=MyISAM DEFAULT CHARSET=latin1
433/*!50100 PARTITION BY KEY (a)
434(PARTITION p0 ENGINE = MyISAM,
435 PARTITION p1 ENGINE = MyISAM) */
407alter table t1;436alter table t1;
408show create table t1;437show create table t1;
409Table Create Table438Table Create Table
410t1 CREATE TABLE `t1` (439t1 CREATE TABLE `t1` (
411 `a` int(11) DEFAULT NULL440 `a` int(11) DEFAULT NULL
412) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MyISAM, PARTITION p1 ENGINE = MyISAM) */441) ENGINE=MyISAM DEFAULT CHARSET=latin1
442/*!50100 PARTITION BY KEY (a)
443(PARTITION p0 ENGINE = MyISAM,
444 PARTITION p1 ENGINE = MyISAM) */
413alter table t1 engine=myisam;445alter table t1 engine=myisam;
414show create table t1;446show create table t1;
415Table Create Table447Table Create Table
416t1 CREATE TABLE `t1` (448t1 CREATE TABLE `t1` (
417 `a` int(11) DEFAULT NULL449 `a` int(11) DEFAULT NULL
418) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MyISAM, PARTITION p1 ENGINE = MyISAM) */450) ENGINE=MyISAM DEFAULT CHARSET=latin1
451/*!50100 PARTITION BY KEY (a)
452(PARTITION p0 ENGINE = MyISAM,
453 PARTITION p1 ENGINE = MyISAM) */
419alter table t1 engine=heap;454alter table t1 engine=heap;
420show create table t1;455show create table t1;
421Table Create Table456Table Create Table
422t1 CREATE TABLE `t1` (457t1 CREATE TABLE `t1` (
423 `a` int(11) DEFAULT NULL458 `a` int(11) DEFAULT NULL
424) ENGINE=MEMORY DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MEMORY, PARTITION p1 ENGINE = MEMORY) */459) ENGINE=MEMORY DEFAULT CHARSET=latin1
460/*!50100 PARTITION BY KEY (a)
461(PARTITION p0 ENGINE = MEMORY,
462 PARTITION p1 ENGINE = MEMORY) */
425alter table t1 remove partitioning;463alter table t1 remove partitioning;
426show create table t1;464show create table t1;
427Table Create Table465Table Create Table
@@ -438,7 +476,10 @@
438Table Create Table476Table Create Table
439t1 CREATE TABLE `t1` (477t1 CREATE TABLE `t1` (
440 `a` int(11) DEFAULT NULL478 `a` int(11) DEFAULT NULL
441) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MyISAM, PARTITION p1 ENGINE = MyISAM) */479) ENGINE=MyISAM DEFAULT CHARSET=latin1
480/*!50100 PARTITION BY KEY (a)
481(PARTITION p0 ENGINE = MyISAM,
482 PARTITION p1 ENGINE = MyISAM) */
442alter table t1 add column b int remove partitioning;483alter table t1 add column b int remove partitioning;
443show create table t1;484show create table t1;
444Table Create Table485Table Create Table
@@ -455,7 +496,10 @@
455t1 CREATE TABLE `t1` (496t1 CREATE TABLE `t1` (
456 `a` int(11) DEFAULT NULL,497 `a` int(11) DEFAULT NULL,
457 `b` int(11) DEFAULT NULL498 `b` int(11) DEFAULT NULL
458) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MyISAM, PARTITION p1 ENGINE = MyISAM) */499) ENGINE=MyISAM DEFAULT CHARSET=latin1
500/*!50100 PARTITION BY KEY (a)
501(PARTITION p0 ENGINE = MyISAM,
502 PARTITION p1 ENGINE = MyISAM) */
459alter table t1503alter table t1
460engine=heap504engine=heap
461partition by key(a)505partition by key(a)
@@ -465,7 +509,10 @@
465t1 CREATE TABLE `t1` (509t1 CREATE TABLE `t1` (
466 `a` int(11) DEFAULT NULL,510 `a` int(11) DEFAULT NULL,
467 `b` int(11) DEFAULT NULL511 `b` int(11) DEFAULT NULL
468) ENGINE=MEMORY DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MEMORY, PARTITION p1 ENGINE = MEMORY) */512) ENGINE=MEMORY DEFAULT CHARSET=latin1
513/*!50100 PARTITION BY KEY (a)
514(PARTITION p0 ENGINE = MEMORY,
515 PARTITION p1 ENGINE = MEMORY) */
469alter table t1 engine=myisam, add column c int remove partitioning;516alter table t1 engine=myisam, add column c int remove partitioning;
470show create table t1;517show create table t1;
471Table Create Table518Table Create Table
@@ -484,7 +531,10 @@
484 `a` int(11) DEFAULT NULL,531 `a` int(11) DEFAULT NULL,
485 `b` int(11) DEFAULT NULL,532 `b` int(11) DEFAULT NULL,
486 `c` int(11) DEFAULT NULL533 `c` int(11) DEFAULT NULL
487) ENGINE=MEMORY DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MEMORY, PARTITION p1 ENGINE = MEMORY) */534) ENGINE=MEMORY DEFAULT CHARSET=latin1
535/*!50100 PARTITION BY KEY (a)
536(PARTITION p0 ENGINE = MEMORY,
537 PARTITION p1 ENGINE = MEMORY) */
488alter table t1538alter table t1
489partition by key (a)539partition by key (a)
490(partition p0, partition p1);540(partition p0, partition p1);
@@ -494,7 +544,10 @@
494 `a` int(11) DEFAULT NULL,544 `a` int(11) DEFAULT NULL,
495 `b` int(11) DEFAULT NULL,545 `b` int(11) DEFAULT NULL,
496 `c` int(11) DEFAULT NULL546 `c` int(11) DEFAULT NULL
497) ENGINE=MEMORY DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MEMORY, PARTITION p1 ENGINE = MEMORY) */547) ENGINE=MEMORY DEFAULT CHARSET=latin1
548/*!50100 PARTITION BY KEY (a)
549(PARTITION p0 ENGINE = MEMORY,
550 PARTITION p1 ENGINE = MEMORY) */
498alter table t1551alter table t1
499engine=heap552engine=heap
500partition by key (a)553partition by key (a)
@@ -505,7 +558,10 @@
505 `a` int(11) DEFAULT NULL,558 `a` int(11) DEFAULT NULL,
506 `b` int(11) DEFAULT NULL,559 `b` int(11) DEFAULT NULL,
507 `c` int(11) DEFAULT NULL560 `c` int(11) DEFAULT NULL
508) ENGINE=MEMORY DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MEMORY, PARTITION p1 ENGINE = MEMORY) */561) ENGINE=MEMORY DEFAULT CHARSET=latin1
562/*!50100 PARTITION BY KEY (a)
563(PARTITION p0 ENGINE = MEMORY,
564 PARTITION p1 ENGINE = MEMORY) */
509alter table t1565alter table t1
510partition by key(a)566partition by key(a)
511(partition p0, partition p1 engine=heap);567(partition p0, partition p1 engine=heap);
@@ -648,14 +704,23 @@
648Table Create Table704Table Create Table
649t1 CREATE TABLE `t1` (705t1 CREATE TABLE `t1` (
650 `a` int(11) DEFAULT NULL706 `a` int(11) DEFAULT NULL
651) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) SUBPARTITION BY HASH (a) (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM) */707) ENGINE=MyISAM DEFAULT CHARSET=latin1
708/*!50100 PARTITION BY RANGE (a)
709SUBPARTITION BY HASH (a)
710(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM) */
652alter table t1 add partition (partition p1 values less than (200)711alter table t1 add partition (partition p1 values less than (200)
653(subpartition subpart21));712(subpartition subpart21));
654show create table t1;713show create table t1;
655Table Create Table714Table Create Table
656t1 CREATE TABLE `t1` (715t1 CREATE TABLE `t1` (
657 `a` int(11) DEFAULT NULL716 `a` int(11) DEFAULT NULL
658) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) SUBPARTITION BY HASH (a) (PARTITION p0 VALUES LESS THAN (100) (SUBPARTITION p0sp0 ENGINE = MyISAM), PARTITION p1 VALUES LESS THAN (200) (SUBPARTITION subpart21 ENGINE = MyISAM)) */717) ENGINE=MyISAM DEFAULT CHARSET=latin1
718/*!50100 PARTITION BY RANGE (a)
719SUBPARTITION BY HASH (a)
720(PARTITION p0 VALUES LESS THAN (100)
721 (SUBPARTITION p0sp0 ENGINE = MyISAM),
722 PARTITION p1 VALUES LESS THAN (200)
723 (SUBPARTITION subpart21 ENGINE = MyISAM)) */
659drop table t1;724drop table t1;
660create table t1 (a int)725create table t1 (a int)
661partition by key (a);726partition by key (a);
@@ -663,13 +728,17 @@
663Table Create Table728Table Create Table
664t1 CREATE TABLE `t1` (729t1 CREATE TABLE `t1` (
665 `a` int(11) DEFAULT NULL730 `a` int(11) DEFAULT NULL
666) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) */731) ENGINE=MyISAM DEFAULT CHARSET=latin1
732/*!50100 PARTITION BY KEY (a) */
667alter table t1 add partition (partition p1);733alter table t1 add partition (partition p1);
668show create table t1;734show create table t1;
669Table Create Table735Table Create Table
670t1 CREATE TABLE `t1` (736t1 CREATE TABLE `t1` (
671 `a` int(11) DEFAULT NULL737 `a` int(11) DEFAULT NULL
672) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) (PARTITION p0 ENGINE = MyISAM, PARTITION p1 ENGINE = MyISAM) */738) ENGINE=MyISAM DEFAULT CHARSET=latin1
739/*!50100 PARTITION BY KEY (a)
740(PARTITION p0 ENGINE = MyISAM,
741 PARTITION p1 ENGINE = MyISAM) */
673drop table t1;742drop table t1;
674create table t1 (a int, b int)743create table t1 (a int, b int)
675partition by range (a)744partition by range (a)
@@ -746,7 +815,10 @@
746t1 CREATE TABLE `t1` (815t1 CREATE TABLE `t1` (
747 `a` int(11) DEFAULT NULL,816 `a` int(11) DEFAULT NULL,
748 `b` int(11) DEFAULT NULL817 `b` int(11) DEFAULT NULL
749) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY LIST (a) (PARTITION p1 VALUES IN (1) ENGINE = MyISAM, PARTITION p2 VALUES IN (2) ENGINE = MyISAM) */818) ENGINE=MyISAM DEFAULT CHARSET=latin1
819/*!50100 PARTITION BY LIST (a)
820(PARTITION p1 VALUES IN (1) ENGINE = MyISAM,
821 PARTITION p2 VALUES IN (2) ENGINE = MyISAM) */
750drop table t1;822drop table t1;
751create table t1 (a int unsigned not null auto_increment primary key)823create table t1 (a int unsigned not null auto_increment primary key)
752partition by key(a);824partition by key(a);
@@ -757,7 +829,8 @@
757 `a` int(10) unsigned NOT NULL AUTO_INCREMENT,829 `a` int(10) unsigned NOT NULL AUTO_INCREMENT,
758 `c` char(10) DEFAULT NULL,830 `c` char(10) DEFAULT NULL,
759 PRIMARY KEY (`a`)831 PRIMARY KEY (`a`)
760) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment' /*!50100 PARTITION BY KEY (a) */832) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment'
833/*!50100 PARTITION BY KEY (a) */
761drop table t2;834drop table t2;
762create table t1 (f1 int) partition by hash (f1) as select 1;835create table t1 (f1 int) partition by hash (f1) as select 1;
763drop table t1;836drop table t1;
@@ -954,7 +1027,9 @@
954Table Create Table1027Table Create Table
955t1 CREATE TABLE `t1` (1028t1 CREATE TABLE `t1` (
956 `a` int(11) DEFAULT NULL1029 `a` int(11) DEFAULT NULL
957) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY LIST (a) (PARTITION p0 VALUES IN (NULL) ENGINE = MyISAM) */1030) ENGINE=MyISAM DEFAULT CHARSET=latin1
1031/*!50100 PARTITION BY LIST (a)
1032(PARTITION p0 VALUES IN (NULL) ENGINE = MyISAM) */
958DROP TABLE t1;1033DROP TABLE t1;
959CREATE TABLE t1 (a int)1034CREATE TABLE t1 (a int)
960PARTITION BY RANGE(a)1035PARTITION BY RANGE(a)
@@ -990,7 +1065,9 @@
990Table Create Table1065Table Create Table
991t1 CREATE TABLE `t1` (1066t1 CREATE TABLE `t1` (
992 `a` int(11) DEFAULT NULL1067 `a` int(11) DEFAULT NULL
993) /*!50100 PARTITION BY KEY (a) (PARTITION p0) */1068)
1069/*!50100 PARTITION BY KEY (a)
1070(PARTITION p0) */
994set session sql_mode='';1071set session sql_mode='';
995drop table t1;1072drop table t1;
996create table t1 (a int)1073create table t1 (a int)
@@ -1004,7 +1081,8 @@
1004Table Create Table1081Table Create Table
1005t1 CREATE TABLE `t1` (1082t1 CREATE TABLE `t1` (
1006 `a` varchar(1) DEFAULT NULL1083 `a` varchar(1) DEFAULT NULL
1007) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) */1084) ENGINE=MyISAM DEFAULT CHARSET=latin1
1085/*!50100 PARTITION BY KEY (a) */
1008drop table t1;1086drop table t1;
1009CREATE TABLE t1 (a int) ENGINE = MYISAM PARTITION BY KEY(a);1087CREATE TABLE t1 (a int) ENGINE = MYISAM PARTITION BY KEY(a);
1010INSERT into t1 values (1), (2);1088INSERT into t1 values (1), (2);
@@ -1073,7 +1151,9 @@
1073t1 CREATE TABLE `t1` (1151t1 CREATE TABLE `t1` (
1074 `a` bigint(20) unsigned NOT NULL,1152 `a` bigint(20) unsigned NOT NULL,
1075 PRIMARY KEY (`a`)1153 PRIMARY KEY (`a`)
1076) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10 */1154) ENGINE=MyISAM DEFAULT CHARSET=latin1
1155/*!50100 PARTITION BY KEY (a)
1156PARTITIONS 10 */
1077insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE),1157insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE),
1078(18446744073709551613), (18446744073709551612);1158(18446744073709551613), (18446744073709551612);
1079select * from t1;1159select * from t1;
10801160
=== modified file 'test/mysql-test/r/partition_02myisam.result'
--- test/mysql-test/r/partition_02myisam.result 2008-06-09 12:49:32 +0000
+++ test/mysql-test/r/partition_02myisam.result 2009-06-02 20:12:58 +0000
@@ -92,7 +92,9 @@
92t1 CREATE TABLE `t1` (92t1 CREATE TABLE `t1` (
93 `f1` int(11) DEFAULT NULL,93 `f1` int(11) DEFAULT NULL,
94 `f2` char(20) DEFAULT NULL94 `f2` char(20) DEFAULT NULL
95) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) PARTITIONS 2 */95) ENGINE=PBXT DEFAULT CHARSET=latin1
96/*!50100 PARTITION BY HASH (f1)
97PARTITIONS 2 */
96SELECT COUNT(*) = 0 AS my_value FROM t1;98SELECT COUNT(*) = 0 AS my_value FROM t1;
97my_value99my_value
9811001
@@ -147,7 +149,10 @@
147t1 CREATE TABLE `t1` (149t1 CREATE TABLE `t1` (
148 `f1` int(11) DEFAULT NULL,150 `f1` int(11) DEFAULT NULL,
149 `f2` char(20) DEFAULT NULL151 `f2` char(20) DEFAULT NULL
150) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */152) ENGINE=PBXT DEFAULT CHARSET=latin1
153/*!50100 PARTITION BY HASH (f1)
154(PARTITION part1 ENGINE = PBXT,
155 PARTITION part2 ENGINE = PBXT) */
151SELECT COUNT(*) = 0 AS my_value FROM t1;156SELECT COUNT(*) = 0 AS my_value FROM t1;
152my_value157my_value
15311581
@@ -205,7 +210,15 @@
205t1 CREATE TABLE `t1` (210t1 CREATE TABLE `t1` (
206 `f1` int(11) DEFAULT NULL,211 `f1` int(11) DEFAULT NULL,
207 `f2` char(20) DEFAULT NULL212 `f2` char(20) DEFAULT NULL
208) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */213) ENGINE=PBXT DEFAULT CHARSET=latin1
214/*!50100 PARTITION BY RANGE (f1)
215SUBPARTITION BY HASH (f1)
216(PARTITION part1 VALUES LESS THAN (100)
217 (SUBPARTITION subpart11 ENGINE = PBXT,
218 SUBPARTITION subpart12 ENGINE = PBXT),
219 PARTITION part2 VALUES LESS THAN (2147483647)
220 (SUBPARTITION subpart21 ENGINE = PBXT,
221 SUBPARTITION subpart22 ENGINE = PBXT)) */
209SELECT COUNT(*) = 0 AS my_value FROM t1;222SELECT COUNT(*) = 0 AS my_value FROM t1;
210my_value223my_value
21112241
@@ -260,7 +273,10 @@
260t1 CREATE TABLE `t1` (273t1 CREATE TABLE `t1` (
261 `f1` int(11) DEFAULT NULL,274 `f1` int(11) DEFAULT NULL,
262 `f2` char(20) DEFAULT NULL275 `f2` char(20) DEFAULT NULL
263) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */276) ENGINE=PBXT DEFAULT CHARSET=latin1
277/*!50100 PARTITION BY HASH (f1)
278(PARTITION part1 ENGINE = PBXT,
279 PARTITION part2 ENGINE = PBXT) */
264SELECT COUNT(*) = 0 AS my_value FROM t1;280SELECT COUNT(*) = 0 AS my_value FROM t1;
265my_value281my_value
26612821
@@ -313,7 +329,10 @@
313t1 CREATE TABLE `t1` (329t1 CREATE TABLE `t1` (
314 `f1` int(11) DEFAULT NULL,330 `f1` int(11) DEFAULT NULL,
315 `f2` char(20) DEFAULT NULL331 `f2` char(20) DEFAULT NULL
316) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */332) ENGINE=PBXT DEFAULT CHARSET=latin1
333/*!50100 PARTITION BY HASH (f1)
334(PARTITION part1 ENGINE = PBXT,
335 PARTITION part2 ENGINE = PBXT) */
317SELECT COUNT(*) = 0 AS my_value FROM t1;336SELECT COUNT(*) = 0 AS my_value FROM t1;
318my_value337my_value
31913381
@@ -371,7 +390,15 @@
371t1 CREATE TABLE `t1` (390t1 CREATE TABLE `t1` (
372 `f1` int(11) DEFAULT NULL,391 `f1` int(11) DEFAULT NULL,
373 `f2` char(20) DEFAULT NULL392 `f2` char(20) DEFAULT NULL
374) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */393) ENGINE=PBXT DEFAULT CHARSET=latin1
394/*!50100 PARTITION BY RANGE (f1)
395SUBPARTITION BY HASH (f1)
396(PARTITION part1 VALUES LESS THAN (100)
397 (SUBPARTITION subpart11 ENGINE = PBXT,
398 SUBPARTITION subpart12 ENGINE = PBXT),
399 PARTITION part2 VALUES LESS THAN (2147483647)
400 (SUBPARTITION subpart21 ENGINE = PBXT,
401 SUBPARTITION subpart22 ENGINE = PBXT)) */
375SELECT COUNT(*) = 0 AS my_value FROM t1;402SELECT COUNT(*) = 0 AS my_value FROM t1;
376my_value403my_value
37714041
@@ -429,7 +456,15 @@
429t1 CREATE TABLE `t1` (456t1 CREATE TABLE `t1` (
430 `f1` int(11) DEFAULT NULL,457 `f1` int(11) DEFAULT NULL,
431 `f2` char(20) DEFAULT NULL458 `f2` char(20) DEFAULT NULL
432) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */459) ENGINE=PBXT DEFAULT CHARSET=latin1
460/*!50100 PARTITION BY RANGE (f1)
461SUBPARTITION BY HASH (f1)
462(PARTITION part1 VALUES LESS THAN (100)
463 (SUBPARTITION subpart11 ENGINE = PBXT,
464 SUBPARTITION subpart12 ENGINE = PBXT),
465 PARTITION part2 VALUES LESS THAN (2147483647)
466 (SUBPARTITION subpart21 ENGINE = PBXT,
467 SUBPARTITION subpart22 ENGINE = PBXT)) */
433SELECT COUNT(*) = 0 AS my_value FROM t1;468SELECT COUNT(*) = 0 AS my_value FROM t1;
434my_value469my_value
43514701
@@ -489,7 +524,15 @@
489t1 CREATE TABLE `t1` (524t1 CREATE TABLE `t1` (
490 `f1` int(11) DEFAULT NULL,525 `f1` int(11) DEFAULT NULL,
491 `f2` char(20) DEFAULT NULL526 `f2` char(20) DEFAULT NULL
492) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */527) ENGINE=PBXT DEFAULT CHARSET=latin1
528/*!50100 PARTITION BY RANGE (f1)
529SUBPARTITION BY HASH (f1)
530(PARTITION part1 VALUES LESS THAN (100)
531 (SUBPARTITION subpart11 ENGINE = PBXT,
532 SUBPARTITION subpart12 ENGINE = PBXT),
533 PARTITION part2 VALUES LESS THAN (2147483647)
534 (SUBPARTITION subpart21 ENGINE = PBXT,
535 SUBPARTITION subpart22 ENGINE = PBXT)) */
493SELECT COUNT(*) = 0 AS my_value FROM t1;536SELECT COUNT(*) = 0 AS my_value FROM t1;
494my_value537my_value
49515381
@@ -547,7 +590,15 @@
547t1 CREATE TABLE `t1` (590t1 CREATE TABLE `t1` (
548 `f1` int(11) DEFAULT NULL,591 `f1` int(11) DEFAULT NULL,
549 `f2` char(20) DEFAULT NULL592 `f2` char(20) DEFAULT NULL
550) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */593) ENGINE=PBXT DEFAULT CHARSET=latin1
594/*!50100 PARTITION BY RANGE (f1)
595SUBPARTITION BY HASH (f1)
596(PARTITION part1 VALUES LESS THAN (100)
597 (SUBPARTITION subpart11 ENGINE = PBXT,
598 SUBPARTITION subpart12 ENGINE = PBXT),
599 PARTITION part2 VALUES LESS THAN (2147483647)
600 (SUBPARTITION subpart21 ENGINE = PBXT,
601 SUBPARTITION subpart22 ENGINE = PBXT)) */
551SELECT COUNT(*) = 0 AS my_value FROM t1;602SELECT COUNT(*) = 0 AS my_value FROM t1;
552my_value603my_value
55316041
@@ -603,7 +654,10 @@
603t1 CREATE TABLE `t1` (654t1 CREATE TABLE `t1` (
604 `f1` int(11) DEFAULT NULL,655 `f1` int(11) DEFAULT NULL,
605 `f2` char(20) DEFAULT NULL656 `f2` char(20) DEFAULT NULL
606) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */657) ENGINE=PBXT DEFAULT CHARSET=latin1
658/*!50100 PARTITION BY HASH (f1)
659(PARTITION part1 ENGINE = PBXT,
660 PARTITION part2 ENGINE = PBXT) */
607SELECT COUNT(*) = 0 AS my_value FROM t1;661SELECT COUNT(*) = 0 AS my_value FROM t1;
608my_value662my_value
60916631
@@ -661,7 +715,15 @@
661t1 CREATE TABLE `t1` (715t1 CREATE TABLE `t1` (
662 `f1` int(11) DEFAULT NULL,716 `f1` int(11) DEFAULT NULL,
663 `f2` char(20) DEFAULT NULL717 `f2` char(20) DEFAULT NULL
664) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */718) ENGINE=PBXT DEFAULT CHARSET=latin1
719/*!50100 PARTITION BY RANGE (f1)
720SUBPARTITION BY HASH (f1)
721(PARTITION part1 VALUES LESS THAN (100)
722 (SUBPARTITION subpart11 ENGINE = PBXT,
723 SUBPARTITION subpart12 ENGINE = PBXT),
724 PARTITION part2 VALUES LESS THAN (2147483647)
725 (SUBPARTITION subpart21 ENGINE = PBXT,
726 SUBPARTITION subpart22 ENGINE = PBXT)) */
665SELECT COUNT(*) = 0 AS my_value FROM t1;727SELECT COUNT(*) = 0 AS my_value FROM t1;
666my_value728my_value
66717291
@@ -721,7 +783,15 @@
721t1 CREATE TABLE `t1` (783t1 CREATE TABLE `t1` (
722 `f1` int(11) DEFAULT NULL,784 `f1` int(11) DEFAULT NULL,
723 `f2` char(20) DEFAULT NULL785 `f2` char(20) DEFAULT NULL
724) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */786) ENGINE=PBXT DEFAULT CHARSET=latin1
787/*!50100 PARTITION BY RANGE (f1)
788SUBPARTITION BY HASH (f1)
789(PARTITION part1 VALUES LESS THAN (100)
790 (SUBPARTITION subpart11 ENGINE = PBXT,
791 SUBPARTITION subpart12 ENGINE = PBXT),
792 PARTITION part2 VALUES LESS THAN (2147483647)
793 (SUBPARTITION subpart21 ENGINE = PBXT,
794 SUBPARTITION subpart22 ENGINE = PBXT)) */
725SELECT COUNT(*) = 0 AS my_value FROM t1;795SELECT COUNT(*) = 0 AS my_value FROM t1;
726my_value796my_value
72717971
@@ -782,7 +852,8 @@
782t1 CREATE TABLE `t1` (852t1 CREATE TABLE `t1` (
783 `f1` int(11) DEFAULT NULL,853 `f1` int(11) DEFAULT NULL,
784 `f2` char(20) DEFAULT NULL854 `f2` char(20) DEFAULT NULL
785) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) */855) ENGINE=PBXT DEFAULT CHARSET=latin1
856/*!50100 PARTITION BY HASH (f1) */
786SELECT COUNT(*) = 0 AS my_value FROM t1;857SELECT COUNT(*) = 0 AS my_value FROM t1;
787my_value858my_value
78818591
@@ -833,7 +904,10 @@
833t1 CREATE TABLE `t1` (904t1 CREATE TABLE `t1` (
834 `f1` int(11) DEFAULT NULL,905 `f1` int(11) DEFAULT NULL,
835 `f2` char(20) DEFAULT NULL906 `f2` char(20) DEFAULT NULL
836) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */907) ENGINE=PBXT DEFAULT CHARSET=latin1
908/*!50100 PARTITION BY HASH (f1)
909(PARTITION part1 ENGINE = PBXT,
910 PARTITION part2 ENGINE = PBXT) */
837SELECT COUNT(*) = 0 AS my_value FROM t1;911SELECT COUNT(*) = 0 AS my_value FROM t1;
838my_value912my_value
83919131
@@ -891,7 +965,18 @@
891t1 CREATE TABLE `t1` (965t1 CREATE TABLE `t1` (
892 `f1` int(11) DEFAULT NULL,966 `f1` int(11) DEFAULT NULL,
893 `f2` char(20) DEFAULT NULL967 `f2` char(20) DEFAULT NULL
894) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (100) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (200) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT), PARTITION part3 VALUES LESS THAN (2147483647) (SUBPARTITION subpart31 ENGINE = PBXT, SUBPARTITION subpart32 ENGINE = PBXT)) */968) ENGINE=PBXT DEFAULT CHARSET=latin1
969/*!50100 PARTITION BY RANGE (f1)
970SUBPARTITION BY HASH (f1)
971(PARTITION part1 VALUES LESS THAN (100)
972 (SUBPARTITION subpart11 ENGINE = PBXT,
973 SUBPARTITION subpart12 ENGINE = PBXT),
974 PARTITION part2 VALUES LESS THAN (200)
975 (SUBPARTITION subpart21 ENGINE = PBXT,
976 SUBPARTITION subpart22 ENGINE = PBXT),
977 PARTITION part3 VALUES LESS THAN (2147483647)
978 (SUBPARTITION subpart31 ENGINE = PBXT,
979 SUBPARTITION subpart32 ENGINE = PBXT)) */
895SELECT COUNT(*) = 0 AS my_value FROM t1;980SELECT COUNT(*) = 0 AS my_value FROM t1;
896my_value981my_value
89719821
@@ -944,7 +1029,9 @@
944t1 CREATE TABLE `t1` (1029t1 CREATE TABLE `t1` (
945 `f1` int(11) DEFAULT NULL,1030 `f1` int(11) DEFAULT NULL,
946 `f2` char(20) DEFAULT NULL1031 `f2` char(20) DEFAULT NULL
947) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) PARTITIONS 2 */1032) ENGINE=PBXT DEFAULT CHARSET=latin1
1033/*!50100 PARTITION BY HASH (f1)
1034PARTITIONS 2 */
948SELECT COUNT(*) = 0 AS my_value FROM t1;1035SELECT COUNT(*) = 0 AS my_value FROM t1;
949my_value1036my_value
950110371
@@ -996,7 +1083,12 @@
996t1 CREATE TABLE `t1` (1083t1 CREATE TABLE `t1` (
997 `f1` int(11) DEFAULT NULL,1084 `f1` int(11) DEFAULT NULL,
998 `f2` char(20) DEFAULT NULL1085 `f2` char(20) DEFAULT NULL
999) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) SUBPARTITIONS 2 (PARTITION part1 VALUES LESS THAN (100) ENGINE = PBXT, PARTITION part2 VALUES LESS THAN (2147483647) ENGINE = PBXT) */1086) ENGINE=PBXT DEFAULT CHARSET=latin1
1087/*!50100 PARTITION BY RANGE (f1)
1088SUBPARTITION BY HASH (f1)
1089SUBPARTITIONS 2
1090(PARTITION part1 VALUES LESS THAN (100) ENGINE = PBXT,
1091 PARTITION part2 VALUES LESS THAN (2147483647) ENGINE = PBXT) */
1000SELECT COUNT(*) = 0 AS my_value FROM t1;1092SELECT COUNT(*) = 0 AS my_value FROM t1;
1001my_value1093my_value
1002110941
@@ -1046,7 +1138,9 @@
1046t1 CREATE TABLE `t1` (1138t1 CREATE TABLE `t1` (
1047 `f1` int(11) DEFAULT NULL,1139 `f1` int(11) DEFAULT NULL,
1048 `f2` char(20) DEFAULT NULL1140 `f2` char(20) DEFAULT NULL
1049) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) PARTITIONS 1 */1141) ENGINE=PBXT DEFAULT CHARSET=latin1
1142/*!50100 PARTITION BY HASH (f1)
1143PARTITIONS 1 */
1050SELECT COUNT(*) = 0 AS my_value FROM t1;1144SELECT COUNT(*) = 0 AS my_value FROM t1;
1051my_value1145my_value
1052111461
@@ -1098,7 +1192,12 @@
1098t1 CREATE TABLE `t1` (1192t1 CREATE TABLE `t1` (
1099 `f1` int(11) DEFAULT NULL,1193 `f1` int(11) DEFAULT NULL,
1100 `f2` char(20) DEFAULT NULL1194 `f2` char(20) DEFAULT NULL
1101) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) SUBPARTITIONS 1 (PARTITION part1 VALUES LESS THAN (100) ENGINE = PBXT, PARTITION part2 VALUES LESS THAN (2147483647) ENGINE = PBXT) */1195) ENGINE=PBXT DEFAULT CHARSET=latin1
1196/*!50100 PARTITION BY RANGE (f1)
1197SUBPARTITION BY HASH (f1)
1198SUBPARTITIONS 1
1199(PARTITION part1 VALUES LESS THAN (100) ENGINE = PBXT,
1200 PARTITION part2 VALUES LESS THAN (2147483647) ENGINE = PBXT) */
1102SELECT COUNT(*) = 0 AS my_value FROM t1;1201SELECT COUNT(*) = 0 AS my_value FROM t1;
1103my_value1202my_value
1104112031
@@ -1304,7 +1403,10 @@
1304t1 CREATE TABLE `t1` (1403t1 CREATE TABLE `t1` (
1305 `f1` int(11) DEFAULT NULL,1404 `f1` int(11) DEFAULT NULL,
1306 `f2` char(20) DEFAULT NULL1405 `f2` char(20) DEFAULT NULL
1307) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */1406) ENGINE=PBXT DEFAULT CHARSET=latin1
1407/*!50100 PARTITION BY HASH (f1)
1408(PARTITION part1 ENGINE = PBXT,
1409 PARTITION part2 ENGINE = PBXT) */
1308DROP TABLE t1;1410DROP TABLE t1;
1309CREATE TABLE t1 ( f1 INTEGER, f2 char(20))1411CREATE TABLE t1 ( f1 INTEGER, f2 char(20))
1310PARTITION BY RANGE(f1) PARTITIONS 21412PARTITION BY RANGE(f1) PARTITIONS 2
@@ -1319,7 +1421,15 @@
1319t1 CREATE TABLE `t1` (1421t1 CREATE TABLE `t1` (
1320 `f1` int(11) DEFAULT NULL,1422 `f1` int(11) DEFAULT NULL,
1321 `f2` char(20) DEFAULT NULL1423 `f2` char(20) DEFAULT NULL
1322) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (f1) SUBPARTITION BY HASH (f1) (PARTITION part1 VALUES LESS THAN (1000) (SUBPARTITION subpart11 ENGINE = PBXT, SUBPARTITION subpart12 ENGINE = PBXT), PARTITION part2 VALUES LESS THAN (2147483647) (SUBPARTITION subpart21 ENGINE = PBXT, SUBPARTITION subpart22 ENGINE = PBXT)) */1424) ENGINE=PBXT DEFAULT CHARSET=latin1
1425/*!50100 PARTITION BY RANGE (f1)
1426SUBPARTITION BY HASH (f1)
1427(PARTITION part1 VALUES LESS THAN (1000)
1428 (SUBPARTITION subpart11 ENGINE = PBXT,
1429 SUBPARTITION subpart12 ENGINE = PBXT),
1430 PARTITION part2 VALUES LESS THAN (2147483647)
1431 (SUBPARTITION subpart21 ENGINE = PBXT,
1432 SUBPARTITION subpart22 ENGINE = PBXT)) */
1323DROP TABLE t1;1433DROP TABLE t1;
1324# 3.3.2 (positive) number of partition/subpartition ,1434# 3.3.2 (positive) number of partition/subpartition ,
1325# 0 (= no) named partition/subpartition1435# 0 (= no) named partition/subpartition
@@ -1446,7 +1556,8 @@
1446t1 CREATE TABLE `t1` (1556t1 CREATE TABLE `t1` (
1447 `f1` int(11) DEFAULT NULL,1557 `f1` int(11) DEFAULT NULL,
1448 `f2` char(20) DEFAULT NULL1558 `f2` char(20) DEFAULT NULL
1449) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) */1559) ENGINE=PBXT DEFAULT CHARSET=latin1
1560/*!50100 PARTITION BY HASH (f1) */
1450INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1;1561INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1;
1451ALTER TABLE t1 ADD PARTITION (PARTITION part1);1562ALTER TABLE t1 ADD PARTITION (PARTITION part1);
1452SHOW CREATE TABLE t1;1563SHOW CREATE TABLE t1;
@@ -1454,7 +1565,10 @@
1454t1 CREATE TABLE `t1` (1565t1 CREATE TABLE `t1` (
1455 `f1` int(11) DEFAULT NULL,1566 `f1` int(11) DEFAULT NULL,
1456 `f2` char(20) DEFAULT NULL1567 `f2` char(20) DEFAULT NULL
1457) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION p0 ENGINE = PBXT, PARTITION part1 ENGINE = PBXT) */1568) ENGINE=PBXT DEFAULT CHARSET=latin1
1569/*!50100 PARTITION BY HASH (f1)
1570(PARTITION p0 ENGINE = PBXT,
1571 PARTITION part1 ENGINE = PBXT) */
1458INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;1572INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;
1459SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)1573SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)
1460AS my_value FROM t1;1574AS my_value FROM t1;
@@ -1502,7 +1616,10 @@
1502t1 CREATE TABLE `t1` (1616t1 CREATE TABLE `t1` (
1503 `f1` int(11) DEFAULT NULL,1617 `f1` int(11) DEFAULT NULL,
1504 `f2` char(20) DEFAULT NULL1618 `f2` char(20) DEFAULT NULL
1505) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part3 ENGINE = PBXT) */1619) ENGINE=PBXT DEFAULT CHARSET=latin1
1620/*!50100 PARTITION BY HASH (f1)
1621(PARTITION part1 ENGINE = PBXT,
1622 PARTITION part3 ENGINE = PBXT) */
1506INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1;1623INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1;
1507ALTER TABLE t1 ADD PARTITION (PARTITION part0);1624ALTER TABLE t1 ADD PARTITION (PARTITION part0);
1508SHOW CREATE TABLE t1;1625SHOW CREATE TABLE t1;
@@ -1510,7 +1627,11 @@
1510t1 CREATE TABLE `t1` (1627t1 CREATE TABLE `t1` (
1511 `f1` int(11) DEFAULT NULL,1628 `f1` int(11) DEFAULT NULL,
1512 `f2` char(20) DEFAULT NULL1629 `f2` char(20) DEFAULT NULL
1513) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part3 ENGINE = PBXT, PARTITION part0 ENGINE = PBXT) */1630) ENGINE=PBXT DEFAULT CHARSET=latin1
1631/*!50100 PARTITION BY HASH (f1)
1632(PARTITION part1 ENGINE = PBXT,
1633 PARTITION part3 ENGINE = PBXT,
1634 PARTITION part0 ENGINE = PBXT) */
1514INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;1635INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;
1515SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)1636SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)
1516AS my_value FROM t1;1637AS my_value FROM t1;
@@ -1557,7 +1678,12 @@
1557t1 CREATE TABLE `t1` (1678t1 CREATE TABLE `t1` (
1558 `f1` int(11) DEFAULT NULL,1679 `f1` int(11) DEFAULT NULL,
1559 `f2` char(20) DEFAULT NULL1680 `f2` char(20) DEFAULT NULL
1560) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part3 ENGINE = PBXT, PARTITION part0 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */1681) ENGINE=PBXT DEFAULT CHARSET=latin1
1682/*!50100 PARTITION BY HASH (f1)
1683(PARTITION part1 ENGINE = PBXT,
1684 PARTITION part3 ENGINE = PBXT,
1685 PARTITION part0 ENGINE = PBXT,
1686 PARTITION part2 ENGINE = PBXT) */
1561INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;1687INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;
1562SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)1688SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)
1563AS my_value FROM t1;1689AS my_value FROM t1;
@@ -1603,7 +1729,12 @@
1603t1 CREATE TABLE `t1` (1729t1 CREATE TABLE `t1` (
1604 `f1` int(11) DEFAULT NULL,1730 `f1` int(11) DEFAULT NULL,
1605 `f2` char(20) DEFAULT NULL1731 `f2` char(20) DEFAULT NULL
1606) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part3 ENGINE = PBXT, PARTITION part0 ENGINE = PBXT, PARTITION part2 ENGINE = PBXT) */1732) ENGINE=PBXT DEFAULT CHARSET=latin1
1733/*!50100 PARTITION BY HASH (f1)
1734(PARTITION part1 ENGINE = PBXT,
1735 PARTITION part3 ENGINE = PBXT,
1736 PARTITION part0 ENGINE = PBXT,
1737 PARTITION part2 ENGINE = PBXT) */
1607INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;1738INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;
1608SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)1739SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)
1609AS my_value FROM t1;1740AS my_value FROM t1;
@@ -1651,14 +1782,20 @@
1651t1 CREATE TABLE `t1` (1782t1 CREATE TABLE `t1` (
1652 `f1` int(11) DEFAULT NULL,1783 `f1` int(11) DEFAULT NULL,
1653 `f2` char(20) DEFAULT NULL1784 `f2` char(20) DEFAULT NULL
1654) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part3 ENGINE = PBXT) */1785) ENGINE=PBXT DEFAULT CHARSET=latin1
1786/*!50100 PARTITION BY HASH (f1)
1787(PARTITION part1 ENGINE = PBXT,
1788 PARTITION part3 ENGINE = PBXT) */
1655INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1;1789INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1;
1656SHOW CREATE TABLE t1;1790SHOW CREATE TABLE t1;
1657Table Create Table1791Table Create Table
1658t1 CREATE TABLE `t1` (1792t1 CREATE TABLE `t1` (
1659 `f1` int(11) DEFAULT NULL,1793 `f1` int(11) DEFAULT NULL,
1660 `f2` char(20) DEFAULT NULL1794 `f2` char(20) DEFAULT NULL
1661) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) (PARTITION part1 ENGINE = PBXT, PARTITION part3 ENGINE = PBXT) */1795) ENGINE=PBXT DEFAULT CHARSET=latin1
1796/*!50100 PARTITION BY HASH (f1)
1797(PARTITION part1 ENGINE = PBXT,
1798 PARTITION part3 ENGINE = PBXT) */
1662INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;1799INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200;
1663SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)1800SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200)
1664AS my_value FROM t1;1801AS my_value FROM t1;
16651802
=== modified file 'test/mysql-test/r/partition_mgm.result'
--- test/mysql-test/r/partition_mgm.result 2008-09-30 15:10:36 +0000
+++ test/mysql-test/r/partition_mgm.result 2009-06-02 20:12:58 +0000
@@ -17,7 +17,9 @@
17t1 CREATE TABLE `t1` (17t1 CREATE TABLE `t1` (
18 `f_date` date DEFAULT NULL,18 `f_date` date DEFAULT NULL,
19 `f_varchar` varchar(30) DEFAULT NULL19 `f_varchar` varchar(30) DEFAULT NULL
20) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 2 */20) ENGINE=PBXT DEFAULT CHARSET=latin1
21/*!50100 PARTITION BY HASH (YEAR(f_date))
22PARTITIONS 2 */
21hello/master-data/test/t1#P#p0-1.xtr23hello/master-data/test/t1#P#p0-1.xtr
22hello/master-data/test/t1#P#p0.xtd24hello/master-data/test/t1#P#p0.xtd
23hello/master-data/test/t1#P#p0.xti25hello/master-data/test/t1#P#p0.xti
@@ -32,7 +34,9 @@
32t1 CREATE TABLE `t1` (34t1 CREATE TABLE `t1` (
33 `f_date` date DEFAULT NULL,35 `f_date` date DEFAULT NULL,
34 `f_varchar` varchar(30) DEFAULT NULL36 `f_varchar` varchar(30) DEFAULT NULL
35) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 1 */37) ENGINE=PBXT DEFAULT CHARSET=latin1
38/*!50100 PARTITION BY HASH (YEAR(f_date))
39PARTITIONS 1 */
36hello/master-data/test/t1#P#p0-3.xtr40hello/master-data/test/t1#P#p0-3.xtr
37hello/master-data/test/t1#P#p0.xtd41hello/master-data/test/t1#P#p0.xtd
38hello/master-data/test/t1#P#p0.xti42hello/master-data/test/t1#P#p0.xti
3943
=== modified file 'test/mysql-test/r/partition_mgm_err.result'
--- test/mysql-test/r/partition_mgm_err.result 2006-10-23 09:14:04 +0000
+++ test/mysql-test/r/partition_mgm_err.result 2009-06-02 20:12:58 +0000
@@ -25,13 +25,13 @@
25ERROR HY000: Error in list of partitions to DROP25ERROR HY000: Error in list of partitions to DROP
26ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO26ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO
27(PARTITION x11 VALUES LESS THAN (22));27(PARTITION x11 VALUES LESS THAN (22));
28ERROR HY000: More partitions to reorganise than there are partitions28ERROR HY000: More partitions to reorganize than there are partitions
29ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO29ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO
30(PARTITION x3 VALUES LESS THAN (6));30(PARTITION x3 VALUES LESS THAN (6));
31ERROR HY000: Duplicate partition name x331ERROR HY000: Duplicate partition name x3
32ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO32ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO
33(PARTITION x11 VALUES LESS THAN (2));33(PARTITION x11 VALUES LESS THAN (2));
34ERROR HY000: When reorganising a set of partitions they must be in consecutive order34ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
35ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO35ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO
36(PARTITION x11 VALUES LESS THAN (4));36(PARTITION x11 VALUES LESS THAN (4));
37ERROR HY000: Error in list of partitions to REORGANIZE37ERROR HY000: Error in list of partitions to REORGANIZE
@@ -136,7 +136,9 @@
136Table Create Table136Table Create Table
137t1 CREATE TABLE `t1` (137t1 CREATE TABLE `t1` (
138 `a` int(11) DEFAULT NULL138 `a` int(11) DEFAULT NULL
139) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 2 */139) ENGINE=PBXT DEFAULT CHARSET=latin1
140/*!50100 PARTITION BY KEY (a)
141PARTITIONS 2 */
140DROP TABLE t1;142DROP TABLE t1;
141CREATE TABLE t1 (a INT) PARTITION BY HASH(a);143CREATE TABLE t1 (a INT) PARTITION BY HASH(a);
142ALTER TABLE t1 ADD PARTITION PARTITIONS 4;144ALTER TABLE t1 ADD PARTITION PARTITIONS 4;
143145
=== modified file 'test/mysql-test/r/partition_range.result'
--- test/mysql-test/r/partition_range.result 2008-09-17 07:41:28 +0000
+++ test/mysql-test/r/partition_range.result 2009-06-02 20:12:58 +0000
@@ -104,7 +104,11 @@
104 `b` int(11) NOT NULL,104 `b` int(11) NOT NULL,
105 `c` int(11) NOT NULL,105 `c` int(11) NOT NULL,
106 PRIMARY KEY (`a`,`b`)106 PRIMARY KEY (`a`,`b`)
107) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) (PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = PBXT, PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = PBXT, PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = PBXT) */107) ENGINE=PBXT DEFAULT CHARSET=latin1
108/*!50100 PARTITION BY RANGE (a)
109(PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = PBXT,
110 PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = PBXT,
111 PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = PBXT) */
108ALTER TABLE t1112ALTER TABLE t1
109partition by range (a)113partition by range (a)
110partitions 3114partitions 3
@@ -124,7 +128,11 @@
124 `b` int(11) NOT NULL,128 `b` int(11) NOT NULL,
125 `c` int(11) NOT NULL,129 `c` int(11) NOT NULL,
126 PRIMARY KEY (`a`,`b`)130 PRIMARY KEY (`a`,`b`)
127) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) (PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = PBXT, PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = PBXT, PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = PBXT) */131) ENGINE=PBXT DEFAULT CHARSET=latin1
132/*!50100 PARTITION BY RANGE (a)
133(PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = PBXT,
134 PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = PBXT,
135 PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = PBXT) */
128drop table if exists t1;136drop table if exists t1;
129CREATE TABLE t1 (137CREATE TABLE t1 (
130a int not null,138a int not null,
@@ -221,7 +229,15 @@
221 `b` int(11) NOT NULL,229 `b` int(11) NOT NULL,
222 `c` int(11) NOT NULL,230 `c` int(11) NOT NULL,
223 PRIMARY KEY (`a`,`b`)231 PRIMARY KEY (`a`,`b`)
224) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) SUBPARTITION BY HASH (a+b) (PARTITION x1 VALUES LESS THAN (1) (SUBPARTITION x11 ENGINE = PBXT, SUBPARTITION x12 ENGINE = PBXT), PARTITION x2 VALUES LESS THAN (5) (SUBPARTITION x21 ENGINE = PBXT, SUBPARTITION x22 ENGINE = PBXT)) */232) ENGINE=PBXT DEFAULT CHARSET=latin1
233/*!50100 PARTITION BY RANGE (a)
234SUBPARTITION BY HASH (a+b)
235(PARTITION x1 VALUES LESS THAN (1)
236 (SUBPARTITION x11 ENGINE = PBXT,
237 SUBPARTITION x12 ENGINE = PBXT),
238 PARTITION x2 VALUES LESS THAN (5)
239 (SUBPARTITION x21 ENGINE = PBXT,
240 SUBPARTITION x22 ENGINE = PBXT)) */
225ALTER TABLE t1 ADD COLUMN d int;241ALTER TABLE t1 ADD COLUMN d int;
226show create table t1;242show create table t1;
227Table Create Table243Table Create Table
@@ -231,7 +247,15 @@
231 `c` int(11) NOT NULL,247 `c` int(11) NOT NULL,
232 `d` int(11) DEFAULT NULL,248 `d` int(11) DEFAULT NULL,
233 PRIMARY KEY (`a`,`b`)249 PRIMARY KEY (`a`,`b`)
234) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) SUBPARTITION BY HASH (a+b) (PARTITION x1 VALUES LESS THAN (1) (SUBPARTITION x11 ENGINE = PBXT, SUBPARTITION x12 ENGINE = PBXT), PARTITION x2 VALUES LESS THAN (5) (SUBPARTITION x21 ENGINE = PBXT, SUBPARTITION x22 ENGINE = PBXT)) */250) ENGINE=PBXT DEFAULT CHARSET=latin1
251/*!50100 PARTITION BY RANGE (a)
252SUBPARTITION BY HASH (a+b)
253(PARTITION x1 VALUES LESS THAN (1)
254 (SUBPARTITION x11 ENGINE = PBXT,
255 SUBPARTITION x12 ENGINE = PBXT),
256 PARTITION x2 VALUES LESS THAN (5)
257 (SUBPARTITION x21 ENGINE = PBXT,
258 SUBPARTITION x22 ENGINE = PBXT)) */
235drop table t1;259drop table t1;
236CREATE TABLE t1 (260CREATE TABLE t1 (
237a int not null,261a int not null,
@@ -454,7 +478,10 @@
454Table Create Table478Table Create Table
455t1 CREATE TABLE `t1` (479t1 CREATE TABLE `t1` (
456 `a` bigint(20) unsigned DEFAULT NULL480 `a` bigint(20) unsigned DEFAULT NULL
457) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (0) ENGINE = PBXT, PARTITION p1 VALUES LESS THAN (10) ENGINE = PBXT) */481) ENGINE=PBXT DEFAULT CHARSET=latin1
482/*!50100 PARTITION BY RANGE (a)
483(PARTITION p0 VALUES LESS THAN (0) ENGINE = PBXT,
484 PARTITION p1 VALUES LESS THAN (10) ENGINE = PBXT) */
458drop table t1;485drop table t1;
459create table t1 (a bigint unsigned)486create table t1 (a bigint unsigned)
460partition by range (a)487partition by range (a)
@@ -464,7 +491,10 @@
464Table Create Table491Table Create Table
465t1 CREATE TABLE `t1` (492t1 CREATE TABLE `t1` (
466 `a` bigint(20) unsigned DEFAULT NULL493 `a` bigint(20) unsigned DEFAULT NULL
467) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (2) ENGINE = PBXT, PARTITION p1 VALUES LESS THAN (10) ENGINE = PBXT) */494) ENGINE=PBXT DEFAULT CHARSET=latin1
495/*!50100 PARTITION BY RANGE (a)
496(PARTITION p0 VALUES LESS THAN (2) ENGINE = PBXT,
497 PARTITION p1 VALUES LESS THAN (10) ENGINE = PBXT) */
468insert into t1 values (0xFFFFFFFFFFFFFFFF);498insert into t1 values (0xFFFFFFFFFFFFFFFF);
469ERROR HY000: Table has no partition for value 18446744073709551615499ERROR HY000: Table has no partition for value 18446744073709551615
470drop table t1;500drop table t1;
471501
=== modified file 'test/mysql-test/r/preload.result'
--- test/mysql-test/r/preload.result 2008-03-10 11:36:34 +0000
+++ test/mysql-test/r/preload.result 2009-06-02 20:14:05 +0000
@@ -144,7 +144,7 @@
144load index into cache t3, t2 key (primary,b) ;144load index into cache t3, t2 key (primary,b) ;
145Table Op Msg_type Msg_text145Table Op Msg_type Msg_text
146test.t3 preload_keys Error Table 'test.t3' doesn't exist146test.t3 preload_keys Error Table 'test.t3' doesn't exist
147test.t3 preload_keys error Corrupt147test.t3 preload_keys status Operation failed
148test.t2 preload_keys note The storage engine for the table doesn't support preload_keys148test.t2 preload_keys note The storage engine for the table doesn't support preload_keys
149show status like "key_read%";149show status like "key_read%";
150Variable_name Value150Variable_name Value
@@ -159,7 +159,7 @@
159load index into cache t3 key (b), t2 key (c) ;159load index into cache t3 key (b), t2 key (c) ;
160Table Op Msg_type Msg_text160Table Op Msg_type Msg_text
161test.t3 preload_keys Error Table 'test.t3' doesn't exist161test.t3 preload_keys Error Table 'test.t3' doesn't exist
162test.t3 preload_keys error Corrupt162test.t3 preload_keys status Operation failed
163test.t2 preload_keys note The storage engine for the table doesn't support preload_keys163test.t2 preload_keys note The storage engine for the table doesn't support preload_keys
164show status like "key_read%";164show status like "key_read%";
165Variable_name Value165Variable_name Value
166166
=== modified file 'test/mysql-test/r/ps.result'
--- test/mysql-test/r/ps.result 2008-12-11 01:07:22 +0000
+++ test/mysql-test/r/ps.result 2009-06-02 20:19:18 +0000
@@ -803,6 +803,8 @@
803@@max_prepared_stmt_count803@@max_prepared_stmt_count
8041638280416382
805set global max_prepared_stmt_count=-1;805set global max_prepared_stmt_count=-1;
806Warnings:
807Warning 1292 Truncated incorrect max_prepared_stmt_count value: '-1'
806select @@max_prepared_stmt_count;808select @@max_prepared_stmt_count;
807@@max_prepared_stmt_count809@@max_prepared_stmt_count
80808100
@@ -1406,7 +1408,7 @@
1406test.t1 repair note Table does not support optimize, doing recreate + analyze instead1408test.t1 repair note Table does not support optimize, doing recreate + analyze instead
1407test.t1 repair status OK1409test.t1 repair status OK
1408test.t4 repair Error Table 'test.t4' doesn't exist1410test.t4 repair Error Table 'test.t4' doesn't exist
1409test.t4 repair error Corrupt1411test.t4 repair status Operation failed
1410test.t3 repair note Table does not support optimize, doing recreate + analyze instead1412test.t3 repair note Table does not support optimize, doing recreate + analyze instead
1411test.t3 repair status OK1413test.t3 repair status OK
1412execute stmt;1414execute stmt;
@@ -1414,7 +1416,7 @@
1414test.t1 repair note Table does not support optimize, doing recreate + analyze instead1416test.t1 repair note Table does not support optimize, doing recreate + analyze instead
1415test.t1 repair status OK1417test.t1 repair status OK
1416test.t4 repair Error Table 'test.t4' doesn't exist1418test.t4 repair Error Table 'test.t4' doesn't exist
1417test.t4 repair error Corrupt1419test.t4 repair status Operation failed
1418test.t3 repair note Table does not support optimize, doing recreate + analyze instead1420test.t3 repair note Table does not support optimize, doing recreate + analyze instead
1419test.t3 repair status OK1421test.t3 repair status OK
1420prepare stmt from "optimize table t1, t3, t4";1422prepare stmt from "optimize table t1, t3, t4";
@@ -1425,7 +1427,7 @@
1425test.t3 optimize note Table does not support optimize, doing recreate + analyze instead1427test.t3 optimize note Table does not support optimize, doing recreate + analyze instead
1426test.t3 optimize status OK1428test.t3 optimize status OK
1427test.t4 optimize Error Table 'test.t4' doesn't exist1429test.t4 optimize Error Table 'test.t4' doesn't exist
1428test.t4 optimize error Corrupt1430test.t4 optimize status Operation failed
1429execute stmt;1431execute stmt;
1430Table Op Msg_type Msg_text1432Table Op Msg_type Msg_text
1431test.t1 optimize note Table does not support optimize, doing recreate + analyze instead1433test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
@@ -1433,17 +1435,17 @@
1433test.t3 optimize note Table does not support optimize, doing recreate + analyze instead1435test.t3 optimize note Table does not support optimize, doing recreate + analyze instead
1434test.t3 optimize status OK1436test.t3 optimize status OK
1435test.t4 optimize Error Table 'test.t4' doesn't exist1437test.t4 optimize Error Table 'test.t4' doesn't exist
1436test.t4 optimize error Corrupt1438test.t4 optimize status Operation failed
1437prepare stmt from "analyze table t4, t1";1439prepare stmt from "analyze table t4, t1";
1438execute stmt;1440execute stmt;
1439Table Op Msg_type Msg_text1441Table Op Msg_type Msg_text
1440test.t4 analyze Error Table 'test.t4' doesn't exist1442test.t4 analyze Error Table 'test.t4' doesn't exist
1441test.t4 analyze error Corrupt1443test.t4 analyze status Operation failed
1442test.t1 analyze status OK1444test.t1 analyze status OK
1443execute stmt;1445execute stmt;
1444Table Op Msg_type Msg_text1446Table Op Msg_type Msg_text
1445test.t4 analyze Error Table 'test.t4' doesn't exist1447test.t4 analyze Error Table 'test.t4' doesn't exist
1446test.t4 analyze error Corrupt1448test.t4 analyze status Operation failed
1447test.t1 analyze status OK1449test.t1 analyze status OK
1448deallocate prepare stmt;1450deallocate prepare stmt;
1449drop table t1, t2, t3;1451drop table t1, t2, t3;
14501452
=== modified file 'test/mysql-test/r/ps_2myisam.result'
--- test/mysql-test/r/ps_2myisam.result 2008-09-17 07:41:28 +0000
+++ test/mysql-test/r/ps_2myisam.result 2009-06-02 20:26:05 +0000
@@ -1304,11 +1304,12 @@
1304set @arg00=NULL;1304set @arg00=NULL;
1305set @arg01=2;1305set @arg01=2;
1306execute stmt1 using @arg00, @arg01;1306execute stmt1 using @arg00, @arg01;
1307ERROR 23000: Column 'a' cannot be null1307Warnings:
1308Warning 1048 Column 'a' cannot be null
1308select a,b from t1 order by a;1309select a,b from t1 order by a;
1309a b1310a b
13110 two
13101 one13121 one
13112 two
13123 three13133 three
13134 four13144 four
1314set @arg00=0;1315set @arg00=0;
13151316
=== modified file 'test/mysql-test/r/ps_4heap.result'
--- test/mysql-test/r/ps_4heap.result 2008-09-17 07:41:28 +0000
+++ test/mysql-test/r/ps_4heap.result 2009-06-02 20:26:05 +0000
@@ -1288,11 +1288,12 @@
1288set @arg00=NULL;1288set @arg00=NULL;
1289set @arg01=2;1289set @arg01=2;
1290execute stmt1 using @arg00, @arg01;1290execute stmt1 using @arg00, @arg01;
1291ERROR 23000: Column 'a' cannot be null1291Warnings:
1292Warning 1048 Column 'a' cannot be null
1292select a,b from t1 order by a;1293select a,b from t1 order by a;
1293a b1294a b
12950 two
12941 one12961 one
12952 two
12963 three12973 three
12974 four12984 four
1298set @arg00=0;1299set @arg00=0;
12991300
=== modified file 'test/mysql-test/r/ps_5merge.result'
--- test/mysql-test/r/ps_5merge.result 2008-09-17 07:41:28 +0000
+++ test/mysql-test/r/ps_5merge.result 2009-06-02 20:26:05 +0000
@@ -1330,11 +1330,12 @@
1330set @arg00=NULL;1330set @arg00=NULL;
1331set @arg01=2;1331set @arg01=2;
1332execute stmt1 using @arg00, @arg01;1332execute stmt1 using @arg00, @arg01;
1333ERROR 23000: Column 'a' cannot be null1333Warnings:
1334Warning 1048 Column 'a' cannot be null
1334select a,b from t1 order by a;1335select a,b from t1 order by a;
1335a b1336a b
13370 two
13361 one13381 one
13372 two
13383 three13393 three
13394 four13404 four
1340set @arg00=0;1341set @arg00=0;
@@ -4343,11 +4344,12 @@
4343set @arg00=NULL;4344set @arg00=NULL;
4344set @arg01=2;4345set @arg01=2;
4345execute stmt1 using @arg00, @arg01;4346execute stmt1 using @arg00, @arg01;
4346ERROR 23000: Column 'a' cannot be null4347Warnings:
4348Warning 1048 Column 'a' cannot be null
4347select a,b from t1 order by a;4349select a,b from t1 order by a;
4348a b4350a b
43510 two
43491 one43521 one
43502 two
43513 three43533 three
43524 four43544 four
4353set @arg00=0;4355set @arg00=0;
43544356
=== modified file 'test/mysql-test/r/repair.result'
--- test/mysql-test/r/repair.result 2009-04-03 19:39:12 +0000
+++ test/mysql-test/r/repair.result 2009-06-02 20:26:51 +0000
@@ -27,7 +27,7 @@
27repair table t1 use_frm;27repair table t1 use_frm;
28Table Op Msg_type Msg_text28Table Op Msg_type Msg_text
29test.t1 repair Error Table 'test.t1' doesn't exist29test.t1 repair Error Table 'test.t1' doesn't exist
30test.t1 repair error Corrupt30test.t1 repair status Operation failed
31create table t1 engine=myisam SELECT 1,"table 1";31create table t1 engine=myisam SELECT 1,"table 1";
32flush tables;32flush tables;
33repair table t1;33repair table t1;
3434
=== modified file 'test/mysql-test/r/schema.result'
--- test/mysql-test/r/schema.result 2008-03-28 09:30:34 +0000
+++ test/mysql-test/r/schema.result 2009-06-02 22:12:20 +0000
@@ -3,6 +3,7 @@
3show create schema foo;3show create schema foo;
4Database Create Database4Database Create Database
5foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */5foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */
6create table t1 (id int) engine=pbxt;
6show schemas;7show schemas;
7Database8Database
8information_schema9information_schema
910
=== modified file 'test/mysql-test/r/select.result'
--- test/mysql-test/r/select.result 2009-04-03 19:39:12 +0000
+++ test/mysql-test/r/select.result 2009-06-02 20:38:55 +0000
@@ -2792,26 +2792,26 @@
27921 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away27921 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
2793select max(key1) from t1 where key1 <= 0.6158;2793select max(key1) from t1 where key1 <= 0.6158;
2794max(key1)2794max(key1)
27950.6158000230789227950.615800023078918
2796select max(key2) from t2 where key2 <= 1.6158;2796select max(key2) from t2 where key2 <= 1.6158;
2797max(key2)2797max(key2)
27981.615800023078927981.61580002307892
2799select min(key1) from t1 where key1 >= 0.3762;2799select min(key1) from t1 where key1 >= 0.3762;
2800min(key1)2800min(key1)
28010.3761999905109428010.376199990510941
2802select min(key2) from t2 where key2 >= 1.3762;2802select min(key2) from t2 where key2 >= 1.3762;
2803min(key2)2803min(key2)
28041.376199960708628041.37619996070862
2805select max(key1), min(key2) from t1, t22805select max(key1), min(key2) from t1, t2
2806where key1 <= 0.6158 and key2 >= 1.3762;2806where key1 <= 0.6158 and key2 >= 1.3762;
2807max(key1) min(key2)2807max(key1) min(key2)
28080.61580002307892 1.376199960708628080.615800023078918 1.37619996070862
2809select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;2809select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
2810max(key1)2810max(key1)
28110.6158000230789228110.615800023078918
2812select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;2812select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
2813min(key1)2813min(key1)
28140.3761999905109428140.376199990510941
2815DROP TABLE t1,t2;2815DROP TABLE t1,t2;
2816CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL);2816CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL);
2817INSERT INTO t1 VALUES (10);2817INSERT INTO t1 VALUES (10);
28182818
=== modified file 'test/mysql-test/r/sp.result'
--- test/mysql-test/r/sp.result 2008-10-01 07:54:39 +0000
+++ test/mysql-test/r/sp.result 2009-06-02 20:41:49 +0000
@@ -577,7 +577,7 @@
577set @e = e()|577set @e = e()|
578select e(), @e|578select e(), @e|
579e() @e579e() @e
5802.718281828459 2.7182818284595802.71828182845905 2.71828182845905
581drop function if exists inc|581drop function if exists inc|
582create function inc(i int) returns int582create function inc(i int) returns int
583return i+1|583return i+1|
@@ -614,7 +614,7 @@
614return mul(inc(i), fac(u)) / e()|614return mul(inc(i), fac(u)) / e()|
615select fun(2.3, 3, 5)|615select fun(2.3, 3, 5)|
616fun(2.3, 3, 5)616fun(2.3, 3, 5)
617176.58213176229617176.582131762292
618insert into t2 values (append("xxx", "yyy"), mul(4,3), e())|618insert into t2 values (append("xxx", "yyy"), mul(4,3), e())|
619insert into t2 values (append("a", "b"), mul(2,mul(3,4)), fun(1.7, 4, 6))|619insert into t2 values (append("a", "b"), mul(2,mul(3,4)), fun(1.7, 4, 6))|
620select * from t2 where s = append("a", "b")|620select * from t2 where s = append("a", "b")|
@@ -2472,7 +2472,7 @@
2472Alter Tables To alter the table2472Alter Tables To alter the table
2473Alter routine Functions,Procedures To alter or drop stored functions/procedures2473Alter routine Functions,Procedures To alter or drop stored functions/procedures
2474Create Databases,Tables,Indexes To create new databases and tables2474Create Databases,Tables,Indexes To create new databases and tables
2475Create routine Functions,Procedures To use CREATE FUNCTION/PROCEDURE2475Create routine Databases To use CREATE FUNCTION/PROCEDURE
2476Create temporary tables Databases To use CREATE TEMPORARY TABLE2476Create temporary tables Databases To use CREATE TEMPORARY TABLE
2477Create view Tables To create new views2477Create view Tables To create new views
2478Create user Server Admin To create new users2478Create user Server Admin To create new users
@@ -2526,7 +2526,7 @@
2526Alter Tables To alter the table2526Alter Tables To alter the table
2527Alter routine Functions,Procedures To alter or drop stored functions/procedures2527Alter routine Functions,Procedures To alter or drop stored functions/procedures
2528Create Databases,Tables,Indexes To create new databases and tables2528Create Databases,Tables,Indexes To create new databases and tables
2529Create routine Functions,Procedures To use CREATE FUNCTION/PROCEDURE2529Create routine Databases To use CREATE FUNCTION/PROCEDURE
2530Create temporary tables Databases To use CREATE TEMPORARY TABLE2530Create temporary tables Databases To use CREATE TEMPORARY TABLE
2531Create view Tables To create new views2531Create view Tables To create new views
2532Create user Server Admin To create new users2532Create user Server Admin To create new users
@@ -4406,10 +4406,10 @@
4406Table Op Msg_type Msg_text4406Table Op Msg_type Msg_text
4407test.t1 repair status OK4407test.t1 repair status OK
4408Table Op Msg_type Msg_text4408Table Op Msg_type Msg_text
4409test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead4409test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
4410test.t1 backup status OK4410test.t1 backup status OK
4411Table Op Msg_type Msg_text4411Table Op Msg_type Msg_text
4412test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead4412test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
4413test.t1 restore status OK4413test.t1 restore status OK
4414drop procedure bug13012|4414drop procedure bug13012|
4415create view v1 as select * from t1|4415create view v1 as select * from t1|
44164416
=== modified file 'test/mysql-test/r/symlink.result'
--- test/mysql-test/r/symlink.result 2008-06-09 12:49:32 +0000
+++ test/mysql-test/r/symlink.result 2009-06-02 20:43:23 +0000
@@ -83,7 +83,7 @@
83create table t1 (a int not null) engine=myisam;83create table t1 (a int not null) engine=myisam;
84alter table t1 data directory="MYSQLTEST_VARDIR/tmp";84alter table t1 data directory="MYSQLTEST_VARDIR/tmp";
85Warnings:85Warnings:
86Warning 0 DATA DIRECTORY option ignored86Warning 1618 <DATA DIRECTORY> option ignored
87show create table t1;87show create table t1;
88Table Create Table88Table Create Table
89t1 CREATE TABLE `t1` (89t1 CREATE TABLE `t1` (
@@ -92,7 +92,7 @@
92alter table t1 add b int;92alter table t1 add b int;
93alter table t1 data directory="MYSQLTEST_VARDIR/log";93alter table t1 data directory="MYSQLTEST_VARDIR/log";
94Warnings:94Warnings:
95Warning 0 DATA DIRECTORY option ignored95Warning 1618 <DATA DIRECTORY> option ignored
96show create table t1;96show create table t1;
97Table Create Table97Table Create Table
98t1 CREATE TABLE `t1` (98t1 CREATE TABLE `t1` (
@@ -101,7 +101,7 @@
101) ENGINE=MyISAM DEFAULT CHARSET=latin1101) ENGINE=MyISAM DEFAULT CHARSET=latin1
102alter table t1 index directory="MYSQLTEST_VARDIR/log";102alter table t1 index directory="MYSQLTEST_VARDIR/log";
103Warnings:103Warnings:
104Warning 0 INDEX DIRECTORY option ignored104Warning 1618 <INDEX DIRECTORY> option ignored
105show create table t1;105show create table t1;
106Table Create Table106Table Create Table
107t1 CREATE TABLE `t1` (107t1 CREATE TABLE `t1` (
@@ -168,8 +168,8 @@
168SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE='NO_DIR_IN_CREATE';168SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE='NO_DIR_IN_CREATE';
169CREATE TABLE t1(a INT) DATA DIRECTORY='MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY='MYSQLTEST_VARDIR/tmp';169CREATE TABLE t1(a INT) DATA DIRECTORY='MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY='MYSQLTEST_VARDIR/tmp';
170Warnings:170Warnings:
171Warning 0 DATA DIRECTORY option ignored171Warning 1618 <DATA DIRECTORY> option ignored
172Warning 0 INDEX DIRECTORY option ignored172Warning 1618 <INDEX DIRECTORY> option ignored
173DROP TABLE t1;173DROP TABLE t1;
174SET @@SQL_MODE=@OLD_SQL_MODE;174SET @@SQL_MODE=@OLD_SQL_MODE;
175End of 5.1 tests175End of 5.1 tests
176176
=== modified file 'test/mysql-test/r/timezone2.result'
--- test/mysql-test/r/timezone2.result 2007-01-29 15:04:29 +0000
+++ test/mysql-test/r/timezone2.result 2009-06-02 20:45:58 +0000
@@ -110,7 +110,7 @@
110362793610 1981-07-01 04:00:00110362793610 1981-07-01 04:00:00
111select from_unixtime(362793609);111select from_unixtime(362793609);
112from_unixtime(362793609)112from_unixtime(362793609)
1131981-07-01 03:59:601131981-07-01 03:59:59
114drop table t1;114drop table t1;
115create table t1 (ts timestamp);115create table t1 (ts timestamp);
116set time_zone='UTC';116set time_zone='UTC';
117117
=== modified file 'test/mysql-test/r/type_timestamp.result'
--- test/mysql-test/r/type_timestamp.result 2008-03-11 16:31:13 +0000
+++ test/mysql-test/r/type_timestamp.result 2009-06-02 20:47:35 +0000
@@ -101,13 +101,13 @@
101t8 timestamp(8), t10 timestamp(10), t12 timestamp(12),101t8 timestamp(8), t10 timestamp(10), t12 timestamp(12),
102t14 timestamp(14));102t14 timestamp(14));
103Warnings:103Warnings:
104Warning 1287 The syntax 'TIMESTAMP(2)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead104Warning 1287 The syntax 'TIMESTAMP(2)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
105Warning 1287 The syntax 'TIMESTAMP(4)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead105Warning 1287 The syntax 'TIMESTAMP(4)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
106Warning 1287 The syntax 'TIMESTAMP(6)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead106Warning 1287 The syntax 'TIMESTAMP(6)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
107Warning 1287 The syntax 'TIMESTAMP(8)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead107Warning 1287 The syntax 'TIMESTAMP(8)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
108Warning 1287 The syntax 'TIMESTAMP(10)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead108Warning 1287 The syntax 'TIMESTAMP(10)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
109Warning 1287 The syntax 'TIMESTAMP(12)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead109Warning 1287 The syntax 'TIMESTAMP(12)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
110Warning 1287 The syntax 'TIMESTAMP(14)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead110Warning 1287 The syntax 'TIMESTAMP(14)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
111insert t1 values (0,0,0,0,0,0,0),111insert t1 values (0,0,0,0,0,0,0),
112("1997-12-31 23:47:59", "1997-12-31 23:47:59", "1997-12-31 23:47:59",112("1997-12-31 23:47:59", "1997-12-31 23:47:59", "1997-12-31 23:47:59",
113"1997-12-31 23:47:59", "1997-12-31 23:47:59", "1997-12-31 23:47:59",113"1997-12-31 23:47:59", "1997-12-31 23:47:59", "1997-12-31 23:47:59",
114114
=== modified file 'test/mysql-test/r/union.result'
--- test/mysql-test/r/union.result 2008-12-11 01:07:22 +0000
+++ test/mysql-test/r/union.result 2009-06-02 20:52:31 +0000
@@ -1301,10 +1301,10 @@
1301 `left(a,100000000)` longtext1301 `left(a,100000000)` longtext
1302) ENGINE=PBXT DEFAULT CHARSET=latin11302) ENGINE=PBXT DEFAULT CHARSET=latin1
1303drop tables t1,t2,t3;1303drop tables t1,t2,t3;
1304SELECT @tmp_max:= @@max_allowed_packet;1304SELECT @tmp_max:= @@global.max_allowed_packet;
1305@tmp_max:= @@max_allowed_packet1305@tmp_max:= @@global.max_allowed_packet
1306104857613061048576
1307SET max_allowed_packet=25000000;1307SET @@global.max_allowed_packet=25000000;
1308CREATE TABLE t1 (a mediumtext);1308CREATE TABLE t1 (a mediumtext);
1309CREATE TABLE t2 (b varchar(20));1309CREATE TABLE t2 (b varchar(20));
1310INSERT INTO t1 VALUES ('a');1310INSERT INTO t1 VALUES ('a');
@@ -1342,7 +1342,7 @@
1342 `a` varbinary(510) DEFAULT NULL1342 `a` varbinary(510) DEFAULT NULL
1343) ENGINE=PBXT DEFAULT CHARSET=latin11343) ENGINE=PBXT DEFAULT CHARSET=latin1
1344DROP TABLES t1,t2,t3;1344DROP TABLES t1,t2,t3;
1345SET max_allowed_packet:= @tmp_max;1345SET @@global.max_allowed_packet:= @tmp_max;
1346create table t1 ( id int not null auto_increment, primary key (id), col1 int);1346create table t1 ( id int not null auto_increment, primary key (id), col1 int);
1347insert into t1 (col1) values (2),(3),(4),(5),(6);1347insert into t1 (col1) values (2),(3),(4),(5),(6);
1348select 99 union all select id from t1 order by 1;1348select 99 union all select id from t1 order by 1;
13491349
=== modified file 'test/mysql-test/r/user_var-binlog.result'
--- test/mysql-test/r/user_var-binlog.result 2008-11-05 15:56:49 +0000
+++ test/mysql-test/r/user_var-binlog.result 2009-06-02 21:26:33 +0000
@@ -24,7 +24,7 @@
24use test/*!*/;24use test/*!*/;
25SET TIMESTAMP=10000/*!*/;25SET TIMESTAMP=10000/*!*/;
26SET @@session.pseudo_thread_id=999999999/*!*/;26SET @@session.pseudo_thread_id=999999999/*!*/;
27SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;27SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
28SET @@session.sql_mode=0/*!*/;28SET @@session.sql_mode=0/*!*/;
29SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;29SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
30/*!\C latin1 *//*!*/;30/*!\C latin1 *//*!*/;
3131
=== modified file 'test/mysql-test/r/varbinary.result'
--- test/mysql-test/r/varbinary.result 2008-03-10 11:36:34 +0000
+++ test/mysql-test/r/varbinary.result 2009-06-02 21:27:45 +0000
@@ -38,7 +38,7 @@
38255 338255 3
39CHECK TABLE t1 FOR UPGRADE;39CHECK TABLE t1 FOR UPGRADE;
40Table Op Msg_type Msg_text40Table Op Msg_type Msg_text
41test.t1 check error Table upgrade required. Please do "REPAIR TABLE `t1`" to fix it!41test.t1 check error Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it!
42REPAIR TABLE t1;42REPAIR TABLE t1;
43Table Op Msg_type Msg_text43Table Op Msg_type Msg_text
44test.t1 repair status OK44test.t1 repair status OK
4545
=== modified file 'test/mysql-test/r/variables.result'
--- test/mysql-test/r/variables.result 2008-11-01 14:40:10 +0000
+++ test/mysql-test/r/variables.result 2009-06-02 21:30:51 +0000
@@ -9,13 +9,13 @@
9set @my_max_binlog_cache_size =@@global.max_binlog_cache_size;9set @my_max_binlog_cache_size =@@global.max_binlog_cache_size;
10set @my_max_binlog_size =@@global.max_binlog_size;10set @my_max_binlog_size =@@global.max_binlog_size;
11set @my_max_connect_errors =@@global.max_connect_errors;11set @my_max_connect_errors =@@global.max_connect_errors;
12set @my_max_connections =@@global.max_connections;
12set @my_max_delayed_threads =@@global.max_delayed_threads;13set @my_max_delayed_threads =@@global.max_delayed_threads;
13set @my_max_heap_table_size =@@global.max_heap_table_size;14set @my_max_heap_table_size =@@global.max_heap_table_size;
14set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads;15set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads;
15set @my_max_join_size =@@global.max_join_size;16set @my_max_join_size =@@global.max_join_size;
16set @my_max_user_connections =@@global.max_user_connections;
17set @my_max_write_lock_count =@@global.max_write_lock_count;
18set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size;17set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size;
18set @my_myisam_max_sort_file_size =@@global.myisam_max_sort_file_size;
19set @my_net_buffer_length =@@global.net_buffer_length;19set @my_net_buffer_length =@@global.net_buffer_length;
20set @my_net_write_timeout =@@global.net_write_timeout;20set @my_net_write_timeout =@@global.net_write_timeout;
21set @my_net_read_timeout =@@global.net_read_timeout;21set @my_net_read_timeout =@@global.net_read_timeout;
@@ -26,6 +26,8 @@
26set @my_slow_launch_time =@@global.slow_launch_time;26set @my_slow_launch_time =@@global.slow_launch_time;
27set @my_storage_engine =@@global.storage_engine;27set @my_storage_engine =@@global.storage_engine;
28set @my_thread_cache_size =@@global.thread_cache_size;28set @my_thread_cache_size =@@global.thread_cache_size;
29set @my_max_allowed_packet =@@global.max_allowed_packet;
30set @my_join_buffer_size =@@global.join_buffer_size;
29set @`test`=1;31set @`test`=1;
30select @test, @`test`, @TEST, @`TEST`, @"teSt";32select @test, @`test`, @TEST, @`TEST`, @"teSt";
31@test @`test` @TEST @`TEST` @"teSt"33@test @`test` @TEST @`TEST` @"teSt"
@@ -158,7 +160,7 @@
158id select_type table type possible_keys key key_len ref rows filtered Extra160id select_type table type possible_keys key key_len ref rows filtered Extra
1591 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used1611 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
160Warnings:162Warnings:
161Note 1003 select 345 AS `@@IDENTITY`,last_insert_id() AS `last_insert_id()`,345 AS `@@identity`163Note 1003 select @@IDENTITY AS `@@IDENTITY`,last_insert_id() AS `last_insert_id()`,@@identity AS `@@identity`
162set big_tables=OFF, big_tables=ON, big_tables=0, big_tables=1, big_tables="OFF", big_tables="ON";164set big_tables=OFF, big_tables=ON, big_tables=0, big_tables=1, big_tables="OFF", big_tables="ON";
163set global concurrent_insert=2;165set global concurrent_insert=2;
164show variables like 'concurrent_insert';166show variables like 'concurrent_insert';
@@ -221,22 +223,21 @@
221VARIABLE_NAME VARIABLE_VALUE223VARIABLE_NAME VARIABLE_VALUE
222MYISAM_MAX_SORT_FILE_SIZE 1048576224MYISAM_MAX_SORT_FILE_SIZE 1048576
223set GLOBAL myisam_max_sort_file_size=default;225set GLOBAL myisam_max_sort_file_size=default;
224show variables like 'myisam_max_sort_file_size';226show global variables like 'myisam_max_sort_file_size';
225Variable_name Value227Variable_name Value
226myisam_max_sort_file_size FILE_SIZE228myisam_max_sort_file_size FILE_SIZE
227select * from information_schema.session_variables where variable_name like 'myisam_max_sort_file_size';229select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
228VARIABLE_NAME VARIABLE_VALUE230VARIABLE_NAME VARIABLE_VALUE
229MYISAM_MAX_SORT_FILE_SIZE FILE_SIZE231MYISAM_MAX_SORT_FILE_SIZE FILE_SIZE
230set global net_retry_count=10, session net_retry_count=10;232set global net_retry_count=10, session net_retry_count=10;
231set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;233set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
232set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600;
233show global variables like 'net_%';234show global variables like 'net_%';
234Variable_name Value235Variable_name Value
235net_buffer_length 1024236net_buffer_length 1024
236net_read_timeout 300237net_read_timeout 300
237net_retry_count 10238net_retry_count 10
238net_write_timeout 200239net_write_timeout 200
239select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name;240select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
240VARIABLE_NAME VARIABLE_VALUE241VARIABLE_NAME VARIABLE_VALUE
241NET_BUFFER_LENGTH 1024242NET_BUFFER_LENGTH 1024
242NET_READ_TIMEOUT 300243NET_READ_TIMEOUT 300
@@ -244,57 +245,45 @@
244NET_WRITE_TIMEOUT 200245NET_WRITE_TIMEOUT 200
245show session variables like 'net_%';246show session variables like 'net_%';
246Variable_name Value247Variable_name Value
247net_buffer_length 2048248net_buffer_length 16384
248net_read_timeout 600249net_read_timeout 30
249net_retry_count 10250net_retry_count 10
250net_write_timeout 500251net_write_timeout 60
251select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name;252select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
252VARIABLE_NAME VARIABLE_VALUE253VARIABLE_NAME VARIABLE_VALUE
253NET_BUFFER_LENGTH 2048254NET_BUFFER_LENGTH 16384
254NET_READ_TIMEOUT 600255NET_READ_TIMEOUT 30
255NET_RETRY_COUNT 10256NET_RETRY_COUNT 10
256NET_WRITE_TIMEOUT 500257NET_WRITE_TIMEOUT 60
257set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;258set global net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
258show global variables like 'net_%';259show global variables like 'net_%';
259Variable_name Value260Variable_name Value
260net_buffer_length 1024261net_buffer_length 7168
261net_read_timeout 900262net_read_timeout 900
262net_retry_count 10263net_retry_count 10
263net_write_timeout 1000264net_write_timeout 1000
264select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name;265select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
265VARIABLE_NAME VARIABLE_VALUE266VARIABLE_NAME VARIABLE_VALUE
266NET_BUFFER_LENGTH 1024267NET_BUFFER_LENGTH 7168
267NET_READ_TIMEOUT 900268NET_READ_TIMEOUT 900
268NET_RETRY_COUNT 10269NET_RETRY_COUNT 10
269NET_WRITE_TIMEOUT 1000270NET_WRITE_TIMEOUT 1000
270show session variables like 'net_%';271set global net_buffer_length=1;
271Variable_name Value
272net_buffer_length 7168
273net_read_timeout 600
274net_retry_count 10
275net_write_timeout 500
276select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name;
277VARIABLE_NAME VARIABLE_VALUE
278NET_BUFFER_LENGTH 7168
279NET_READ_TIMEOUT 600
280NET_RETRY_COUNT 10
281NET_WRITE_TIMEOUT 500
282set net_buffer_length=1;
283Warnings:272Warnings:
284Warning 1292 Truncated incorrect net_buffer_length value: '1'273Warning 1292 Truncated incorrect net_buffer_length value: '1'
285show variables like 'net_buffer_length';274show global variables like 'net_buffer_length';
286Variable_name Value275Variable_name Value
287net_buffer_length 1024276net_buffer_length 1024
288select * from information_schema.session_variables where variable_name like 'net_buffer_length';277select * from information_schema.global_variables where variable_name like 'net_buffer_length';
289VARIABLE_NAME VARIABLE_VALUE278VARIABLE_NAME VARIABLE_VALUE
290NET_BUFFER_LENGTH 1024279NET_BUFFER_LENGTH 1024
291set net_buffer_length=2000000000;280set global net_buffer_length=2000000000;
292Warnings:281Warnings:
293Warning 1292 Truncated incorrect net_buffer_length value: '2000000000'282Warning 1292 Truncated incorrect net_buffer_length value: '2000000000'
294show variables like 'net_buffer_length';283show global variables like 'net_buffer_length';
295Variable_name Value284Variable_name Value
296net_buffer_length 1048576285net_buffer_length 1048576
297select * from information_schema.session_variables where variable_name like 'net_buffer_length';286select * from information_schema.global_variables where variable_name like 'net_buffer_length';
298VARIABLE_NAME VARIABLE_VALUE287VARIABLE_NAME VARIABLE_VALUE
299NET_BUFFER_LENGTH 1048576288NET_BUFFER_LENGTH 1048576
300set character set cp1251_koi8;289set character set cp1251_koi8;
@@ -311,59 +300,107 @@
311select ROUND(RAND(),5);300select ROUND(RAND(),5);
312ROUND(RAND(),5)301ROUND(RAND(),5)
3130.028873020.02887
314show variables like '%alloc%';303
304==+ Testing %alloc% system variables +==
305==+ NOTE: These values *must* be a multiple of 1024 +==
306==+ Other values will be rounded down to nearest multiple +==
307
308==+ Show initial values +==
309SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
310'query_alloc_block_size', 'query_prealloc_size',
311'transaction_alloc_block_size', 'transaction_prealloc_size');
315Variable_name Value312Variable_name Value
316query_alloc_block_size 8192313query_alloc_block_size 8192
317query_prealloc_size 8192314query_prealloc_size 8192
318range_alloc_block_size 4096315range_alloc_block_size 4096
319transaction_alloc_block_size 8192316transaction_alloc_block_size 8192
320transaction_prealloc_size 4096317transaction_prealloc_size 4096
321select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name;318==+ information_schema data +==
319SELECT * FROM information_schema.session_variables
320WHERE variable_name IN ('range_alloc_block_size',
321'query_alloc_block_size', 'query_prealloc_size',
322'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
322VARIABLE_NAME VARIABLE_VALUE323VARIABLE_NAME VARIABLE_VALUE
323QUERY_ALLOC_BLOCK_SIZE 8192324QUERY_ALLOC_BLOCK_SIZE 8192
324QUERY_PREALLOC_SIZE 8192325QUERY_PREALLOC_SIZE 8192
325RANGE_ALLOC_BLOCK_SIZE 4096326RANGE_ALLOC_BLOCK_SIZE 4096
326TRANSACTION_ALLOC_BLOCK_SIZE 8192327TRANSACTION_ALLOC_BLOCK_SIZE 8192
327TRANSACTION_PREALLOC_SIZE 4096328TRANSACTION_PREALLOC_SIZE 4096
328set @@range_alloc_block_size=1024*16;329Testing values that are multiples of 1024
330set @@range_alloc_block_size=1024*15+1024;
331set @@query_alloc_block_size=1024*15+1024*2;
332set @@query_prealloc_size=1024*18-1024;
333set @@transaction_alloc_block_size=1024*21-1024*1;
334set @@transaction_prealloc_size=1024*21-2048;
335==+ Check manipulated values ==+
336select @@query_alloc_block_size;
337@@query_alloc_block_size
33817408
339SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
340'query_alloc_block_size', 'query_prealloc_size',
341'transaction_alloc_block_size', 'transaction_prealloc_size');
342Variable_name Value
343query_alloc_block_size 17408
344query_prealloc_size 17408
345range_alloc_block_size 16384
346transaction_alloc_block_size 20480
347transaction_prealloc_size 19456
348==+ information_schema data +==
349SELECT * FROM information_schema.session_variables
350WHERE variable_name IN ('range_alloc_block_size',
351'query_alloc_block_size', 'query_prealloc_size',
352'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
353VARIABLE_NAME VARIABLE_VALUE
354QUERY_ALLOC_BLOCK_SIZE 17408
355QUERY_PREALLOC_SIZE 17408
356RANGE_ALLOC_BLOCK_SIZE 16384
357TRANSACTION_ALLOC_BLOCK_SIZE 20480
358TRANSACTION_PREALLOC_SIZE 19456
359==+ Manipulate variable values +==
360Testing values that are not 1024 multiples
361set @@range_alloc_block_size=1024*16+1023;
329set @@query_alloc_block_size=1024*17+2;362set @@query_alloc_block_size=1024*17+2;
330set @@query_prealloc_size=1024*18;363set @@query_prealloc_size=1024*18-1023;
331set @@transaction_alloc_block_size=1024*20-1;364set @@transaction_alloc_block_size=1024*20-1;
332set @@transaction_prealloc_size=1024*21-1;365set @@transaction_prealloc_size=1024*21-1;
333select @@query_alloc_block_size;366select @@query_alloc_block_size;
334@@query_alloc_block_size367@@query_alloc_block_size
3351740836817408
336show variables like '%alloc%';369==+ Check manipulated values ==+
370SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
371'query_alloc_block_size', 'query_prealloc_size',
372'transaction_alloc_block_size', 'transaction_prealloc_size');
337Variable_name Value373Variable_name Value
338query_alloc_block_size 17408374query_alloc_block_size 17408
339query_prealloc_size 18432375query_prealloc_size 17408
340range_alloc_block_size 16384376range_alloc_block_size 16384
341transaction_alloc_block_size 19456377transaction_alloc_block_size 19456
342transaction_prealloc_size 20480378transaction_prealloc_size 20480
343select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name;379==+ information_schema data +==
380SELECT * FROM information_schema.session_variables
381WHERE variable_name IN ('range_alloc_block_size',
382'query_alloc_block_size', 'query_prealloc_size',
383'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
344VARIABLE_NAME VARIABLE_VALUE384VARIABLE_NAME VARIABLE_VALUE
345QUERY_ALLOC_BLOCK_SIZE 17408385QUERY_ALLOC_BLOCK_SIZE 17408
346QUERY_PREALLOC_SIZE 18432386QUERY_PREALLOC_SIZE 17408
347RANGE_ALLOC_BLOCK_SIZE 16384387RANGE_ALLOC_BLOCK_SIZE 16384
348TRANSACTION_ALLOC_BLOCK_SIZE 19456388TRANSACTION_ALLOC_BLOCK_SIZE 19456
349TRANSACTION_PREALLOC_SIZE 20480389TRANSACTION_PREALLOC_SIZE 20480
390==+ Set values back to the default values +==
350set @@range_alloc_block_size=default;391set @@range_alloc_block_size=default;
351set @@query_alloc_block_size=default, @@query_prealloc_size=default;392set @@query_alloc_block_size=default, @@query_prealloc_size=default;
352set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;393set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
353show variables like '%alloc%';394==+ Check the values now that they are reset +==
395SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
396'query_alloc_block_size', 'query_prealloc_size',
397'transaction_alloc_block_size', 'transaction_prealloc_size');
354Variable_name Value398Variable_name Value
355query_alloc_block_size 8192399query_alloc_block_size 8192
356query_prealloc_size 8192400query_prealloc_size 8192
357range_alloc_block_size 4096401range_alloc_block_size 4096
358transaction_alloc_block_size 8192402transaction_alloc_block_size 8192
359transaction_prealloc_size 4096403transaction_prealloc_size 4096
360select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name;
361VARIABLE_NAME VARIABLE_VALUE
362QUERY_ALLOC_BLOCK_SIZE 8192
363QUERY_PREALLOC_SIZE 8192
364RANGE_ALLOC_BLOCK_SIZE 4096
365TRANSACTION_ALLOC_BLOCK_SIZE 8192
366TRANSACTION_PREALLOC_SIZE 4096
367SELECT @@version LIKE 'non-existent';404SELECT @@version LIKE 'non-existent';
368@@version LIKE 'non-existent'405@@version LIKE 'non-existent'
36904060
@@ -453,9 +490,16 @@
453Warning 1292 Truncated incorrect join_buffer_size value: '100'490Warning 1292 Truncated incorrect join_buffer_size value: '100'
454set last_insert_id=1;491set last_insert_id=1;
455set global local_infile=1;492set global local_infile=1;
456set long_query_time=100;493set long_query_time=0.000001;
494select @@long_query_time;
495@@long_query_time
4960.000001
497set long_query_time=100.000001;
498select @@long_query_time;
499@@long_query_time
500100.000001
457set low_priority_updates=1;501set low_priority_updates=1;
458set max_allowed_packet=100;502set global max_allowed_packet=100;
459Warnings:503Warnings:
460Warning 1292 Truncated incorrect max_allowed_packet value: '100'504Warning 1292 Truncated incorrect max_allowed_packet value: '100'
461set global max_binlog_cache_size=100;505set global max_binlog_cache_size=100;
@@ -479,7 +523,7 @@
479100523100
480set global max_write_lock_count=100;524set global max_write_lock_count=100;
481set myisam_sort_buffer_size=100;525set myisam_sort_buffer_size=100;
482set net_buffer_length=100;526set global net_buffer_length=100;
483Warnings:527Warnings:
484Warning 1292 Truncated incorrect net_buffer_length value: '100'528Warning 1292 Truncated incorrect net_buffer_length value: '100'
485set net_read_timeout=100;529set net_read_timeout=100;
@@ -543,6 +587,7 @@
543set tx_isolation="READ-COMMITTED";587set tx_isolation="READ-COMMITTED";
544set wait_timeout=100;588set wait_timeout=100;
545set log_warnings=1;589set log_warnings=1;
590set global log_warnings=1;
546select @@session.insert_id;591select @@session.insert_id;
547@@session.insert_id592@@session.insert_id
54815931
@@ -709,7 +754,7 @@
709MYISAM_DATA_POINTER_SIZE 7754MYISAM_DATA_POINTER_SIZE 7
710SET GLOBAL table_open_cache=-1;755SET GLOBAL table_open_cache=-1;
711Warnings:756Warnings:
712Warning 1292 Truncated incorrect table_open_cache value: '0'757Warning 1292 Truncated incorrect table_open_cache value: '-1'
713SHOW VARIABLES LIKE 'table_open_cache';758SHOW VARIABLES LIKE 'table_open_cache';
714Variable_name Value759Variable_name Value
715table_open_cache 1760table_open_cache 1
@@ -782,11 +827,45 @@
782select @@lc_time_names;827select @@lc_time_names;
783@@lc_time_names828@@lc_time_names
784en_US829en_US
830select @@global.lc_time_names, @@lc_time_names;
831@@global.lc_time_names @@lc_time_names
832en_US en_US
833set @@global.lc_time_names=fr_FR;
834select @@global.lc_time_names, @@lc_time_names;
835@@global.lc_time_names @@lc_time_names
836fr_FR en_US
837New connection
838select @@global.lc_time_names, @@lc_time_names;
839@@global.lc_time_names @@lc_time_names
840fr_FR fr_FR
841set @@lc_time_names=ru_RU;
842select @@global.lc_time_names, @@lc_time_names;
843@@global.lc_time_names @@lc_time_names
844fr_FR ru_RU
845Returnung to default connection
846select @@global.lc_time_names, @@lc_time_names;
847@@global.lc_time_names @@lc_time_names
848fr_FR en_US
849set lc_time_names=default;
850select @@global.lc_time_names, @@lc_time_names;
851@@global.lc_time_names @@lc_time_names
852fr_FR fr_FR
853set @@global.lc_time_names=default;
854select @@global.lc_time_names, @@lc_time_names;
855@@global.lc_time_names @@lc_time_names
856en_US fr_FR
857set @@lc_time_names=default;
858select @@global.lc_time_names, @@lc_time_names;
859@@global.lc_time_names @@lc_time_names
860en_US en_US
785set @test = @@query_prealloc_size;861set @test = @@query_prealloc_size;
786set @@query_prealloc_size = @test;862set @@query_prealloc_size = @test;
787select @@query_prealloc_size = @test;863select @@query_prealloc_size = @test;
788@@query_prealloc_size = @test864@@query_prealloc_size = @test
78918651
866set global sql_mode=repeat('a',80);
867ERROR 42000: Variable 'sql_mode' can't be set to the value of 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
868End of 4.1 tests
790create table t1 (a int);869create table t1 (a int);
791select a into @x from t1;870select a into @x from t1;
792Warnings:871Warnings:
@@ -909,7 +988,7 @@
909ssl_cert #988ssl_cert #
910ssl_cipher #989ssl_cipher #
911ssl_key #990ssl_key #
912select * from information_schema.session_variables where variable_name like 'ssl%' order by variable_name;991select * from information_schema.session_variables where variable_name like 'ssl%' order by 1;
913VARIABLE_NAME VARIABLE_VALUE992VARIABLE_NAME VARIABLE_VALUE
914SSL_CA #993SSL_CA #
915SSL_CAPATH #994SSL_CAPATH #
@@ -931,7 +1010,20 @@
931ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&' at line 11010ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&' at line 1
932select @@@;1011select @@@;
933ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@' at line 11012ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@' at line 1
1013select @@hostname;
1014@@hostname
1015#
1016set @@hostname= "anothername";
1017ERROR HY000: Variable 'hostname' is a read only variable
1018show variables like 'hostname';
1019Variable_name Value
1020hostname #
934End of 5.0 tests1021End of 5.0 tests
1022set join_buffer_size=1;
1023Warnings:
1024Warning 1292 Truncated incorrect join_buffer_size value: '1'
1025set @save_join_buffer_size=@@join_buffer_size;
1026set join_buffer_size=@save_join_buffer_size;
935set global binlog_cache_size =@my_binlog_cache_size;1027set global binlog_cache_size =@my_binlog_cache_size;
936set global connect_timeout =@my_connect_timeout;1028set global connect_timeout =@my_connect_timeout;
937set global delayed_insert_timeout =@my_delayed_insert_timeout;1029set global delayed_insert_timeout =@my_delayed_insert_timeout;
@@ -939,16 +1031,18 @@
939set global flush =@my_flush;1031set global flush =@my_flush;
940set global flush_time =@my_flush_time;1032set global flush_time =@my_flush_time;
941set global key_buffer_size =@my_key_buffer_size;1033set global key_buffer_size =@my_key_buffer_size;
942set global max_binlog_cache_size =default;1034set global max_binlog_cache_size =@my_max_binlog_cache_size;
943set global max_binlog_size =@my_max_binlog_size;1035set global max_binlog_size =@my_max_binlog_size;
944set global max_connect_errors =@my_max_connect_errors;1036set global max_connect_errors =@my_max_connect_errors;
1037set global max_connections =@my_max_connections;
945set global max_delayed_threads =@my_max_delayed_threads;1038set global max_delayed_threads =@my_max_delayed_threads;
946set global max_heap_table_size =@my_max_heap_table_size;1039set global max_heap_table_size =@my_max_heap_table_size;
947set global max_insert_delayed_threads=@my_max_insert_delayed_threads;1040set global max_insert_delayed_threads=@my_max_insert_delayed_threads;
948set global max_join_size =@my_max_join_size;1041set global max_join_size =@my_max_join_size;
949set global max_user_connections =@my_max_user_connections;1042set global max_user_connections =default;
950set global max_write_lock_count =@my_max_write_lock_count;1043set global max_write_lock_count =default;
951set global myisam_data_pointer_size =@my_myisam_data_pointer_size;1044set global myisam_data_pointer_size =@my_myisam_data_pointer_size;
1045set global myisam_max_sort_file_size =@my_myisam_max_sort_file_size;
952set global net_buffer_length =@my_net_buffer_length;1046set global net_buffer_length =@my_net_buffer_length;
953set global net_write_timeout =@my_net_write_timeout;1047set global net_write_timeout =@my_net_write_timeout;
954set global net_read_timeout =@my_net_read_timeout;1048set global net_read_timeout =@my_net_read_timeout;
@@ -959,3 +1053,418 @@
959set global slow_launch_time =@my_slow_launch_time;1053set global slow_launch_time =@my_slow_launch_time;
960set global storage_engine =@my_storage_engine;1054set global storage_engine =@my_storage_engine;
961set global thread_cache_size =@my_thread_cache_size;1055set global thread_cache_size =@my_thread_cache_size;
1056set global max_allowed_packet =@my_max_allowed_packet;
1057set global join_buffer_size =@my_join_buffer_size;
1058show global variables where Variable_name='table_definition_cache' or
1059Variable_name='table_lock_wait_timeout';
1060Variable_name Value
1061table_definition_cache #
1062table_lock_wait_timeout #
1063
1064# --
1065# -- Bug#34820: log_output can be set to illegal value.
1066# --
1067SET GLOBAL log_output = '';
1068ERROR 42000: Variable 'log_output' can't be set to the value of ''
1069SET GLOBAL log_output = 0;
1070ERROR 42000: Variable 'log_output' can't be set to the value of '0'
1071
1072# -- End of Bug#34820.
1073
1074#
1075SHOW VARIABLES like 'ft_max_word_len';
1076Variable_name Value
1077ft_max_word_len 84
1078SELECT @@session.ft_max_word_len;
1079ERROR HY000: Variable 'ft_max_word_len' is a GLOBAL variable
1080SELECT @@global.ft_max_word_len;
1081@@global.ft_max_word_len
108284
1083SET @@session.ft_max_word_len= 7;
1084ERROR HY000: Variable 'ft_max_word_len' is a read only variable
1085SET @@global.ft_max_word_len= 7;
1086ERROR HY000: Variable 'ft_max_word_len' is a read only variable
1087#
1088SHOW VARIABLES like 'ft_min_word_len';
1089Variable_name Value
1090ft_min_word_len 4
1091SELECT @@session.ft_min_word_len;
1092ERROR HY000: Variable 'ft_min_word_len' is a GLOBAL variable
1093SELECT @@global.ft_min_word_len;
1094@@global.ft_min_word_len
10954
1096SET @@session.ft_min_word_len= 7;
1097ERROR HY000: Variable 'ft_min_word_len' is a read only variable
1098SET @@global.ft_min_word_len= 7;
1099ERROR HY000: Variable 'ft_min_word_len' is a read only variable
1100#
1101SHOW VARIABLES like 'ft_query_expansion_limit';
1102Variable_name Value
1103ft_query_expansion_limit 20
1104SELECT @@session.ft_query_expansion_limit;
1105ERROR HY000: Variable 'ft_query_expansion_limit' is a GLOBAL variable
1106SELECT @@global.ft_query_expansion_limit;
1107@@global.ft_query_expansion_limit
110820
1109SET @@session.ft_query_expansion_limit= 7;
1110ERROR HY000: Variable 'ft_query_expansion_limit' is a read only variable
1111SET @@global.ft_query_expansion_limit= 7;
1112ERROR HY000: Variable 'ft_query_expansion_limit' is a read only variable
1113#
1114SHOW VARIABLES like 'ft_stopword_file';
1115Variable_name Value
1116ft_stopword_file (built-in)
1117SELECT @@session.ft_stopword_file;
1118ERROR HY000: Variable 'ft_stopword_file' is a GLOBAL variable
1119SELECT @@global.ft_stopword_file;
1120@@global.ft_stopword_file
1121(built-in)
1122SET @@session.ft_stopword_file= 'x';
1123ERROR HY000: Variable 'ft_stopword_file' is a read only variable
1124SET @@global.ft_stopword_file= 'x';
1125ERROR HY000: Variable 'ft_stopword_file' is a read only variable
1126#
1127SHOW VARIABLES like 'back_log';
1128Variable_name Value
1129back_log 50
1130SELECT @@session.back_log;
1131ERROR HY000: Variable 'back_log' is a GLOBAL variable
1132SELECT @@global.back_log;
1133@@global.back_log
113450
1135SET @@session.back_log= 7;
1136ERROR HY000: Variable 'back_log' is a read only variable
1137SET @@global.back_log= 7;
1138ERROR HY000: Variable 'back_log' is a read only variable
1139#
1140SHOW VARIABLES like 'large_files_support';
1141Variable_name Value
1142large_files_support #
1143SELECT @@session.large_files_support;
1144ERROR HY000: Variable 'large_files_support' is a GLOBAL variable
1145SELECT @@global.large_files_support;
1146@@global.large_files_support
1147#
1148SET @@session.large_files_support= true;
1149ERROR HY000: Variable 'large_files_support' is a read only variable
1150SET @@global.large_files_support= true;
1151ERROR HY000: Variable 'large_files_support' is a read only variable
1152#
1153SHOW VARIABLES like 'character_sets_dir';
1154Variable_name Value
1155character_sets_dir #
1156SELECT @@session.character_sets_dir;
1157ERROR HY000: Variable 'character_sets_dir' is a GLOBAL variable
1158SELECT @@global.character_sets_dir;
1159@@global.character_sets_dir
1160#
1161SET @@session.character_sets_dir= 'x';
1162ERROR HY000: Variable 'character_sets_dir' is a read only variable
1163SET @@global.character_sets_dir= 'x';
1164ERROR HY000: Variable 'character_sets_dir' is a read only variable
1165#
1166SHOW VARIABLES like 'init_file';
1167Variable_name Value
1168init_file #
1169SELECT @@session.init_file;
1170ERROR HY000: Variable 'init_file' is a GLOBAL variable
1171SELECT @@global.init_file;
1172@@global.init_file
1173#
1174SET @@session.init_file= 'x';
1175ERROR HY000: Variable 'init_file' is a read only variable
1176SET @@global.init_file= 'x';
1177ERROR HY000: Variable 'init_file' is a read only variable
1178#
1179SHOW VARIABLES like 'language';
1180Variable_name Value
1181language #
1182SELECT @@session.language;
1183ERROR HY000: Variable 'language' is a GLOBAL variable
1184SELECT @@global.language;
1185@@global.language
1186#
1187SET @@session.language= 'x';
1188ERROR HY000: Variable 'language' is a read only variable
1189SET @@global.language= 'x';
1190ERROR HY000: Variable 'language' is a read only variable
1191#
1192SHOW VARIABLES like 'large_page_size';
1193Variable_name Value
1194large_page_size #
1195SELECT @@session.large_page_size;
1196ERROR HY000: Variable 'large_page_size' is a GLOBAL variable
1197SELECT @@global.large_page_size;
1198@@global.large_page_size
1199#
1200SET @@session.large_page_size= 7;
1201ERROR HY000: Variable 'large_page_size' is a read only variable
1202SET @@global.large_page_size= 7;
1203ERROR HY000: Variable 'large_page_size' is a read only variable
1204#
1205SHOW VARIABLES like 'large_pages';
1206Variable_name Value
1207large_pages #
1208SELECT @@session.large_pages;
1209ERROR HY000: Variable 'large_pages' is a GLOBAL variable
1210SELECT @@global.large_pages;
1211@@global.large_pages
1212#
1213SET @@session.large_pages= true;
1214ERROR HY000: Variable 'large_pages' is a read only variable
1215SET @@global.large_pages= true;
1216ERROR HY000: Variable 'large_pages' is a read only variable
1217#
1218SHOW VARIABLES like 'log_bin';
1219Variable_name Value
1220log_bin OFF
1221SELECT @@session.log_bin;
1222ERROR HY000: Variable 'log_bin' is a GLOBAL variable
1223SELECT @@global.log_bin;
1224@@global.log_bin
12250
1226SET @@session.log_bin= true;
1227ERROR HY000: Variable 'log_bin' is a read only variable
1228SET @@global.log_bin= true;
1229ERROR HY000: Variable 'log_bin' is a read only variable
1230#
1231SHOW VARIABLES like 'log_error';
1232Variable_name Value
1233log_error #
1234SELECT @@session.log_error;
1235ERROR HY000: Variable 'log_error' is a GLOBAL variable
1236SELECT @@global.log_error;
1237@@global.log_error
1238#
1239SET @@session.log_error= 'x';
1240ERROR HY000: Variable 'log_error' is a read only variable
1241SET @@global.log_error= 'x';
1242ERROR HY000: Variable 'log_error' is a read only variable
1243#
1244SHOW VARIABLES like 'lower_case_file_system';
1245Variable_name Value
1246lower_case_file_system #
1247SELECT @@session.lower_case_file_system;
1248ERROR HY000: Variable 'lower_case_file_system' is a GLOBAL variable
1249SELECT @@global.lower_case_file_system;
1250@@global.lower_case_file_system
1251#
1252SET @@session.lower_case_file_system= true;
1253ERROR HY000: Variable 'lower_case_file_system' is a read only variable
1254SET @@global.lower_case_file_system= true;
1255ERROR HY000: Variable 'lower_case_file_system' is a read only variable
1256#
1257SHOW VARIABLES like 'lower_case_table_names';
1258Variable_name Value
1259lower_case_table_names #
1260SELECT @@session.lower_case_table_names;
1261ERROR HY000: Variable 'lower_case_table_names' is a GLOBAL variable
1262SELECT @@global.lower_case_table_names;
1263@@global.lower_case_table_names
1264#
1265SET @@session.lower_case_table_names= 7;
1266ERROR HY000: Variable 'lower_case_table_names' is a read only variable
1267SET @@global.lower_case_table_names= 7;
1268ERROR HY000: Variable 'lower_case_table_names' is a read only variable
1269#
1270SHOW VARIABLES like 'myisam_recover_options';
1271Variable_name Value
1272myisam_recover_options OFF
1273SELECT @@session.myisam_recover_options;
1274ERROR HY000: Variable 'myisam_recover_options' is a GLOBAL variable
1275SELECT @@global.myisam_recover_options;
1276@@global.myisam_recover_options
1277OFF
1278SET @@session.myisam_recover_options= 'x';
1279ERROR HY000: Variable 'myisam_recover_options' is a read only variable
1280SET @@global.myisam_recover_options= 'x';
1281ERROR HY000: Variable 'myisam_recover_options' is a read only variable
1282#
1283SHOW VARIABLES like 'open_files_limit';
1284Variable_name Value
1285open_files_limit #
1286SELECT @@session.open_files_limit;
1287ERROR HY000: Variable 'open_files_limit' is a GLOBAL variable
1288SELECT @@global.open_files_limit;
1289@@global.open_files_limit
1290#
1291SET @@session.open_files_limit= 7;
1292ERROR HY000: Variable 'open_files_limit' is a read only variable
1293SET @@global.open_files_limit= 7;
1294ERROR HY000: Variable 'open_files_limit' is a read only variable
1295#
1296SHOW VARIABLES like 'pid_file';
1297Variable_name Value
1298pid_file #
1299SELECT @@session.pid_file;
1300ERROR HY000: Variable 'pid_file' is a GLOBAL variable
1301SELECT @@global.pid_file;
1302@@global.pid_file
1303#
1304SET @@session.pid_file= 'x';
1305ERROR HY000: Variable 'pid_file' is a read only variable
1306SET @@global.pid_file= 'x';
1307ERROR HY000: Variable 'pid_file' is a read only variable
1308#
1309SHOW VARIABLES like 'plugin_dir';
1310Variable_name Value
1311plugin_dir #
1312SELECT @@session.plugin_dir;
1313ERROR HY000: Variable 'plugin_dir' is a GLOBAL variable
1314SELECT @@global.plugin_dir;
1315@@global.plugin_dir
1316#
1317SET @@session.plugin_dir= 'x';
1318ERROR HY000: Variable 'plugin_dir' is a read only variable
1319SET @@global.plugin_dir= 'x';
1320ERROR HY000: Variable 'plugin_dir' is a read only variable
1321#
1322SHOW VARIABLES like 'port';
1323Variable_name Value
1324port #
1325SELECT @@session.port;
1326ERROR HY000: Variable 'port' is a GLOBAL variable
1327SELECT @@global.port;
1328@@global.port
1329#
1330SET @@session.port= 7;
1331ERROR HY000: Variable 'port' is a read only variable
1332SET @@global.port= 7;
1333ERROR HY000: Variable 'port' is a read only variable
1334#
1335SHOW VARIABLES like 'protocol_version';
1336Variable_name Value
1337protocol_version 10
1338SELECT @@session.protocol_version;
1339ERROR HY000: Variable 'protocol_version' is a GLOBAL variable
1340SELECT @@global.protocol_version;
1341@@global.protocol_version
134210
1343SET @@session.protocol_version= 7;
1344ERROR HY000: Variable 'protocol_version' is a read only variable
1345SET @@global.protocol_version= 7;
1346ERROR HY000: Variable 'protocol_version' is a read only variable
1347#
1348SHOW VARIABLES like 'skip_external_locking';
1349Variable_name Value
1350skip_external_locking ON
1351SELECT @@session.skip_external_locking;
1352ERROR HY000: Variable 'skip_external_locking' is a GLOBAL variable
1353SELECT @@global.skip_external_locking;
1354@@global.skip_external_locking
13551
1356SET @@session.skip_external_locking= true;
1357ERROR HY000: Variable 'skip_external_locking' is a read only variable
1358SET @@global.skip_external_locking= true;
1359ERROR HY000: Variable 'skip_external_locking' is a read only variable
1360#
1361SHOW VARIABLES like 'skip_networking';
1362Variable_name Value
1363skip_networking OFF
1364SELECT @@session.skip_networking;
1365ERROR HY000: Variable 'skip_networking' is a GLOBAL variable
1366SELECT @@global.skip_networking;
1367@@global.skip_networking
13680
1369SET @@session.skip_networking= true;
1370ERROR HY000: Variable 'skip_networking' is a read only variable
1371SET @@global.skip_networking= true;
1372ERROR HY000: Variable 'skip_networking' is a read only variable
1373#
1374SHOW VARIABLES like 'skip_show_database';
1375Variable_name Value
1376skip_show_database OFF
1377SELECT @@session.skip_show_database;
1378ERROR HY000: Variable 'skip_show_database' is a GLOBAL variable
1379SELECT @@global.skip_show_database;
1380@@global.skip_show_database
13810
1382SET @@session.skip_show_database= true;
1383ERROR HY000: Variable 'skip_show_database' is a read only variable
1384SET @@global.skip_show_database= true;
1385ERROR HY000: Variable 'skip_show_database' is a read only variable
1386#
1387SHOW VARIABLES like 'thread_stack';
1388Variable_name Value
1389thread_stack #
1390SELECT @@session.thread_stack;
1391ERROR HY000: Variable 'thread_stack' is a GLOBAL variable
1392SELECT @@global.thread_stack;
1393@@global.thread_stack
1394#
1395SET @@session.thread_stack= 7;
1396ERROR HY000: Variable 'thread_stack' is a read only variable
1397SET @@global.thread_stack= 7;
1398ERROR HY000: Variable 'thread_stack' is a read only variable
1399SELECT @@global.expire_logs_days INTO @old_eld;
1400SET GLOBAL expire_logs_days = -1;
1401Warnings:
1402Warning 1292 Truncated incorrect expire_logs_days value: '-1'
1403needs to've been adjusted (0)
1404SELECT @@global.expire_logs_days;
1405@@global.expire_logs_days
14060
1407SET GLOBAL expire_logs_days = 11;
1408SET @old_mode=@@sql_mode;
1409SET SESSION sql_mode = 'TRADITIONAL';
1410SET GLOBAL expire_logs_days = 100;
1411ERROR 42000: Variable 'expire_logs_days' can't be set to the value of '100'
1412needs to be unchanged (11)
1413SELECT @@global.expire_logs_days;
1414@@global.expire_logs_days
141511
1416SET SESSION sql_mode = @old_mode;
1417SET GLOBAL expire_logs_days = 100;
1418Warnings:
1419Warning 1292 Truncated incorrect expire_logs_days value: '100'
1420needs to've been adjusted (99)
1421SELECT @@global.expire_logs_days;
1422@@global.expire_logs_days
142399
1424SET GLOBAL expire_logs_days = 11;
1425SET GLOBAL expire_logs_days = 99;
1426needs to pass with no warnings (99)
1427SELECT @@global.expire_logs_days;
1428@@global.expire_logs_days
142999
1430SET GLOBAL expire_logs_days = @old_eld;
1431SET GLOBAL auto_increment_offset=-1;
1432Warnings:
1433Warning 1292 Truncated incorrect auto_increment_offset value: '-1'
1434SET GLOBAL auto_increment_offset=0;
1435Warnings:
1436Warning 1292 Truncated incorrect auto_increment_offset value: '0'
1437select @@storage_engine;
1438Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
1439def @@storage_engine 253 6 6 N 1 31 8
1440@@storage_engine
1441MyISAM
1442SET @old_server_id = @@GLOBAL.server_id;
1443SET GLOBAL server_id = (1 << 32) - 1;
1444SELECT @@GLOBAL.server_id;
1445@@GLOBAL.server_id
14464294967295
1447SET GLOBAL server_id = (1 << 32);
1448Warnings:
1449Warning 1292 Truncated incorrect server_id value: '4294967296'
1450SELECT @@GLOBAL.server_id;
1451@@GLOBAL.server_id
14524294967295
1453SET GLOBAL server_id = (1 << 60);
1454Warnings:
1455Warning 1292 Truncated incorrect server_id value: '1152921504606846976'
1456SELECT @@GLOBAL.server_id;
1457@@GLOBAL.server_id
14584294967295
1459SET GLOBAL server_id = 0;
1460SELECT @@GLOBAL.server_id;
1461@@GLOBAL.server_id
14620
1463SET GLOBAL server_id = -1;
1464Warnings:
1465Warning 1292 Truncated incorrect server_id value: '-1'
1466SELECT @@GLOBAL.server_id;
1467@@GLOBAL.server_id
14680
1469SET GLOBAL server_id = @old_server_id;
1470End of 5.1 tests
9621471
=== modified file 'test/mysql-test/r/view_grant.result'
--- test/mysql-test/r/view_grant.result 2008-07-16 08:46:49 +0000
+++ test/mysql-test/r/view_grant.result 2009-06-02 21:32:52 +0000
@@ -28,7 +28,7 @@
28ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table 't2'28ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table 't2'
29show create view v1;29show create view v1;
30View Create View character_set_client collation_connection30View Create View character_set_client collation_connection
31v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_1`@`localhost` SQL SECURITY DEFINER VIEW `test`.`v1` AS select `mysqltest`.`t1`.`a` AS `a`,`mysqltest`.`t1`.`b` AS `b` from `mysqltest`.`t1` latin1 latin1_swedish_ci31v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `mysqltest`.`t1`.`a` AS `a`,`mysqltest`.`t1`.`b` AS `b` from `mysqltest`.`t1` latin1 latin1_swedish_ci
32grant create view,drop,select on test.* to mysqltest_1@localhost;32grant create view,drop,select on test.* to mysqltest_1@localhost;
33use test;33use test;
34alter view v1 as select * from mysqltest.t1;34alter view v1 as select * from mysqltest.t1;
@@ -309,7 +309,7 @@
309create view v1 as select * from mysqltest.t1;309create view v1 as select * from mysqltest.t1;
310show create view v1;310show create view v1;
311View Create View character_set_client collation_connection311View Create View character_set_client collation_connection
312v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_1`@`localhost` SQL SECURITY DEFINER VIEW `test`.`v1` AS select `mysqltest`.`t1`.`a` AS `a`,`mysqltest`.`t1`.`b` AS `b` from `mysqltest`.`t1` latin1 latin1_swedish_ci312v1 CREATE ALGORITHM=UNDEFINED DEFINER=`mysqltest_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `mysqltest`.`t1`.`a` AS `a`,`mysqltest`.`t1`.`b` AS `b` from `mysqltest`.`t1` latin1 latin1_swedish_ci
313revoke select on mysqltest.t1 from mysqltest_1@localhost;313revoke select on mysqltest.t1 from mysqltest_1@localhost;
314select * from v1;314select * from v1;
315ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them315ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
316316
=== modified file 'test/mysql-test/r/warnings.result'
--- test/mysql-test/r/warnings.result 2008-11-05 12:01:29 +0000
+++ test/mysql-test/r/warnings.result 2009-06-02 21:34:42 +0000
@@ -98,10 +98,11 @@
98Warning 1265 Data truncated for column 'c' at row 298Warning 1265 Data truncated for column 'c' at row 2
99alter table t1 add d char(2);99alter table t1 add d char(2);
100update t1 set a=NULL where a=10;100update t1 set a=NULL where a=10;
101ERROR 23000: Column 'a' cannot be null101Warnings:
102Warning 1048 Column 'a' cannot be null
102update t1 set c='mysql ab' where c='test';103update t1 set c='mysql ab' where c='test';
103Warnings:104Warnings:
104Warning 1265 Data truncated for column 'c' at row 4105Warning 1265 Data truncated for column 'c' at row 3
105update t1 set d=c;106update t1 set d=c;
106Warnings:107Warnings:
107Warning 1265 Data truncated for column 'd' at row 1108Warning 1265 Data truncated for column 'd' at row 1
@@ -167,7 +168,7 @@
167drop table t1;168drop table t1;
168set table_type=MYISAM;169set table_type=MYISAM;
169Warnings:170Warnings:
170Warning 1287 The syntax '@@table_type' is deprecated and will be removed in MySQL 5.2. Please use '@@storage_engine' instead171Warning 1287 The syntax '@@table_type' is deprecated and will be removed in MySQL 6.0. Please use '@@storage_engine' instead
171create table t1 (a int);172create table t1 (a int);
172insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);173insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
173update t1 set a='abc';174update t1 set a='abc';
174175
=== modified file 'test/mysql-test/t/auto_increment.test'
--- test/mysql-test/t/auto_increment.test 2009-04-02 20:28:52 +0000
+++ test/mysql-test/t/auto_increment.test 2009-06-02 00:08:42 +0000
@@ -150,7 +150,6 @@
150update t1 set a=0 where b=5;150update t1 set a=0 where b=5;
151select * from t1 order by b;151select * from t1 order by b;
152delete from t1 where a=0;152delete from t1 where a=0;
153--error 1048
154update t1 set a=NULL where b=6;153update t1 set a=NULL where b=6;
155update t1 set a=300 where b=7;154update t1 set a=300 where b=7;
156SET SQL_MODE='';155SET SQL_MODE='';
@@ -166,7 +165,6 @@
166update t1 set a=0 where b=12;165update t1 set a=0 where b=12;
167select * from t1 order by b;166select * from t1 order by b;
168delete from t1 where a=0;167delete from t1 where a=0;
169--error 1048
170update t1 set a=NULL where b=13;168update t1 set a=NULL where b=13;
171update t1 set a=500 where b=14;169update t1 set a=500 where b=14;
172select * from t1 order by b;170select * from t1 order by b;
173171
=== modified file 'test/mysql-test/t/func_compress.test'
--- test/mysql-test/t/func_compress.test 2007-01-29 15:04:29 +0000
+++ test/mysql-test/t/func_compress.test 2009-06-02 00:20:29 +0000
@@ -43,9 +43,15 @@
43# note that when LOW_MEMORY is set the "test" below is meaningless43# note that when LOW_MEMORY is set the "test" below is meaningless
44#44#
4545
46set @@max_allowed_packet=1048576*100;46set @@global.max_allowed_packet=1048576*100;
47--replace_result "''" XXX "'1'" XXX47--replace_result "''" XXX "'1'" XXX
48
49# reconnect to make the new max packet size take effect
50--connect (newconn, localhost, root,,)
48eval select compress(repeat('aaaaaaaaaa', IF('$LOW_MEMORY', 10, 10000000))) is null;51eval select compress(repeat('aaaaaaaaaa', IF('$LOW_MEMORY', 10, 10000000))) is null;
52disconnect newconn;
53connection default;
54set @@global.max_allowed_packet=default;
4955
50#56#
51# Bug #18643: problem with null values57# Bug #18643: problem with null values
5258
=== modified file 'test/mysql-test/t/myisam-blob.test'
--- test/mysql-test/t/myisam-blob.test 2007-03-13 19:06:47 +0000
+++ test/mysql-test/t/myisam-blob.test 2009-06-02 17:54:03 +0000
@@ -6,7 +6,9 @@
6drop table if exists t1;6drop table if exists t1;
7--enable_warnings7--enable_warnings
88
9set @@max_allowed_packet=20*1024*1024; # PBXT avoid overflow9# Set packet size and reconnect
10SET global max_allowed_packet=20*1024*1024;
11--connect (newconn, localhost, root,,)
1012
11# Bug #2159 (Problem with update of blob to > 16M)13# Bug #2159 (Problem with update of blob to > 16M)
1214
1315
=== modified file 'test/mysql-test/t/myisam.test'
--- test/mysql-test/t/myisam.test 2008-05-30 12:31:39 +0000
+++ test/mysql-test/t/myisam.test 2009-06-02 17:55:55 +0000
@@ -749,7 +749,7 @@
749#749#
750CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=pbxt;750CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=pbxt;
751INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx');751INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx');
752-- This is a PBXT bug:752# This is a PBXT bug:
753-- error 1020753-- error 1020
754UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb';754UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb';
755SELECT * FROM t1;755SELECT * FROM t1;
756756
=== modified file 'test/mysql-test/t/mysql_client_test.test'
--- test/mysql-test/t/mysql_client_test.test 2006-10-23 09:14:04 +0000
+++ test/mysql-test/t/mysql_client_test.test 2009-06-02 18:07:21 +0000
@@ -1,6 +1,8 @@
1# This test should work in embedded server after we fix mysqltest1# This test should work in embedded server after we fix mysqltest
2-- source include/not_embedded.inc2-- source include/not_embedded.inc
33
4SET @old_general_log= @@global.general_log;
5
4# We run with different binaries for normal and --embedded-server6# We run with different binaries for normal and --embedded-server
5#7#
6# If this test fails with "command "$MYSQL_CLIENT_TEST" failed",8# If this test fails with "command "$MYSQL_CLIENT_TEST" failed",
@@ -8,9 +10,10 @@
8# server or run mysql-test-run --debug mysql_client_test and check10# server or run mysql-test-run --debug mysql_client_test and check
9# var/log/mysql_client_test.trace11# var/log/mysql_client_test.trace
1012
11--exec echo "$MYSQL_CLIENT_TEST" > $MYSQLTEST_VARDIR/log/mysql_client_test.log 2>&113--exec echo "$MYSQL_CLIENT_TEST" > $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1
12--exec $MYSQL_CLIENT_TEST --getopt-ll-test=25600M >> $MYSQLTEST_VARDIR/log/mysql_client_test.log 2>&114--exec $MYSQL_CLIENT_TEST --getopt-ll-test=25600M >> $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1
1315
14# End of 4.1 tests16# End of 4.1 tests
15echo ok;17echo ok;
1618
19SET @@global.general_log= @old_general_log;
1720
=== modified file 'test/mysql-test/t/mysqltest.test'
--- test/mysql-test/t/mysqltest.test 2008-03-11 16:31:13 +0000
+++ test/mysql-test/t/mysqltest.test 2009-06-02 18:38:30 +0000
@@ -6,6 +6,9 @@
6# This test uses chmod, can't be run with root permissions6# This test uses chmod, can't be run with root permissions
7-- source include/not_as_root.inc7-- source include/not_as_root.inc
88
9# Save the initial number of concurrent sessions
10--source include/count_sessions.inc
11
9# ============================================================================12# ============================================================================
10#13#
11# Test of mysqltest itself14# Test of mysqltest itself
@@ -50,7 +53,7 @@
5053
51# ----------------------------------------------------------------------------54# ----------------------------------------------------------------------------
52# Negative case(statement):55# Negative case(statement):
53# The derived table t1 does not contain a column named 'friedrich' . 56# The derived table t1 does not contain a column named 'friedrich' .
54# --> ERROR 42S22: Unknown column 'friedrich' in 'field list and57# --> ERROR 42S22: Unknown column 'friedrich' in 'field list and
55# --> 1054: Unknown column 'friedrich' in 'field list'58# --> 1054: Unknown column 'friedrich' in 'field list'
56# ----------------------------------------------------------------------------59# ----------------------------------------------------------------------------
@@ -62,7 +65,8 @@
62--exec echo "select friedrich from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&165--exec echo "select friedrich from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&1
6366
64# expectation = response67# expectation = response
65--error 105468--error ER_BAD_FIELD_ERROR
69
66select friedrich from (select 1 as otto) as t1;70select friedrich from (select 1 as otto) as t1;
6771
68# The following unmasked unsuccessful statement must give72# The following unmasked unsuccessful statement must give
@@ -91,6 +95,10 @@
91--error 195--error 1
92--exec echo "error S42S22; select otto from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&196--exec echo "error S42S22; select otto from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&1
9397
98# expecting a SQL-state for a command that can't give one should fail
99--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
100--error 1
101--exec echo "error S00000; remove_file $MYSQLTEST_VARDIR/tmp/test_nonexistent.tmp;" | $MYSQL_TEST 2>&1
94102
95103
96# ----------------------------------------------------------------------------104# ----------------------------------------------------------------------------
@@ -116,7 +124,7 @@
116# $mysql_errno is a builtin variable of mysqltest and contains the return code124# $mysql_errno is a builtin variable of mysqltest and contains the return code
117# of the last command sent to the server.125# of the last command sent to the server.
118#126#
119# The following test cases often initialize $mysql_errno to 1064 by 127# The following test cases often initialize $mysql_errno to 1064 by
120# a command with wrong syntax.128# a command with wrong syntax.
121# Example: --error 1064 To prevent the abort after the error.129# Example: --error 1064 To prevent the abort after the error.
122# garbage ;130# garbage ;
@@ -131,14 +139,16 @@
131#----------------------------------------------------------------------------139#----------------------------------------------------------------------------
132# check mysql_errno = 1064 after statement with wrong syntax140# check mysql_errno = 1064 after statement with wrong syntax
133# ----------------------------------------------------------------------------141# ----------------------------------------------------------------------------
134--error 1064142--error ER_PARSE_ERROR
143
135garbage ;144garbage ;
136eval select $mysql_errno as "after_wrong_syntax_errno" ;145eval select $mysql_errno as "after_wrong_syntax_errno" ;
137146
138# ----------------------------------------------------------------------------147# ----------------------------------------------------------------------------
139# check if let $my_var= 'abc' ; affects $mysql_errno148# check if let $my_var= 'abc' ; affects $mysql_errno
140# ----------------------------------------------------------------------------149# ----------------------------------------------------------------------------
141--error 1064150--error ER_PARSE_ERROR
151
142garbage ;152garbage ;
143let $my_var= 'abc' ;153let $my_var= 'abc' ;
144eval select $mysql_errno as "after_let_var_equal_value" ;154eval select $mysql_errno as "after_let_var_equal_value" ;
@@ -146,7 +156,8 @@
146# ----------------------------------------------------------------------------156# ----------------------------------------------------------------------------
147# check if set @my_var= 'abc' ; affects $mysql_errno157# check if set @my_var= 'abc' ; affects $mysql_errno
148# ----------------------------------------------------------------------------158# ----------------------------------------------------------------------------
149--error 1064159--error ER_PARSE_ERROR
160
150garbage ;161garbage ;
151set @my_var= 'abc' ;162set @my_var= 'abc' ;
152eval select $mysql_errno as "after_set_var_equal_value" ;163eval select $mysql_errno as "after_set_var_equal_value" ;
@@ -155,7 +166,8 @@
155# check if the setting of --disable-warnings itself affects $mysql_errno166# check if the setting of --disable-warnings itself affects $mysql_errno
156# (May be --<whatever> modifies $mysql_errno.)167# (May be --<whatever> modifies $mysql_errno.)
157# ----------------------------------------------------------------------------168# ----------------------------------------------------------------------------
158--error 1064169--error ER_PARSE_ERROR
170
159garbage ;171garbage ;
160--disable_warnings172--disable_warnings
161eval select $mysql_errno as "after_disable_warnings_command" ;173eval select $mysql_errno as "after_disable_warnings_command" ;
@@ -166,7 +178,8 @@
166# (May be disabled warnings affect $mysql_errno.)178# (May be disabled warnings affect $mysql_errno.)
167# ----------------------------------------------------------------------------179# ----------------------------------------------------------------------------
168drop table if exists t1 ;180drop table if exists t1 ;
169--error 1064181--error ER_PARSE_ERROR
182
170garbage ;183garbage ;
171drop table if exists t1 ;184drop table if exists t1 ;
172eval select $mysql_errno as "after_disable_warnings" ;185eval select $mysql_errno as "after_disable_warnings" ;
@@ -175,21 +188,26 @@
175# ----------------------------------------------------------------------------188# ----------------------------------------------------------------------------
176# check if masked errors affect $mysql_errno189# check if masked errors affect $mysql_errno
177# ----------------------------------------------------------------------------190# ----------------------------------------------------------------------------
178--error 1064191--error ER_PARSE_ERROR
192
179garbage ;193garbage ;
180--error 1146194--error ER_NO_SUCH_TABLE
195
181select 3 from t1 ;196select 3 from t1 ;
182eval select $mysql_errno as "after_minus_masked" ;197eval select $mysql_errno as "after_minus_masked" ;
183--error 1064198--error ER_PARSE_ERROR
199
184garbage ;200garbage ;
185--error 1146201--error ER_NO_SUCH_TABLE
202
186select 3 from t1 ;203select 3 from t1 ;
187eval select $mysql_errno as "after_!_masked" ;204eval select $mysql_errno as "after_!_masked" ;
188205
189# ----------------------------------------------------------------------------206# ----------------------------------------------------------------------------
190# Will manipulations of $mysql_errno be possible and visible ?207# Will manipulations of $mysql_errno be possible and visible ?
191# ----------------------------------------------------------------------------208# ----------------------------------------------------------------------------
192--error 1064209--error ER_PARSE_ERROR
210
193garbage ;211garbage ;
194let $mysql_errno= -1;212let $mysql_errno= -1;
195eval select $mysql_errno as "after_let_errno_equal_value" ;213eval select $mysql_errno as "after_let_errno_equal_value" ;
@@ -198,50 +216,61 @@
198# How affect actions on prepared statements $mysql_errno ?216# How affect actions on prepared statements $mysql_errno ?
199# ----------------------------------------------------------------------------217# ----------------------------------------------------------------------------
200# failing prepare218# failing prepare
201--error 1064219--error ER_PARSE_ERROR
220
202garbage ;221garbage ;
203--error 1146222--error ER_NO_SUCH_TABLE
223
204prepare stmt from "select 3 from t1" ;224prepare stmt from "select 3 from t1" ;
205eval select $mysql_errno as "after_failing_prepare" ;225eval select $mysql_errno as "after_failing_prepare" ;
206create table t1 ( f1 char(10));226create table t1 ( f1 char(10));
207227
208# successful prepare228# successful prepare
209--error 1064229--error ER_PARSE_ERROR
230
210garbage ;231garbage ;
211prepare stmt from "select 3 from t1" ;232prepare stmt from "select 3 from t1" ;
212eval select $mysql_errno as "after_successful_prepare" ;233eval select $mysql_errno as "after_successful_prepare" ;
213234
214# successful execute235# successful execute
215--error 1064236--error ER_PARSE_ERROR
237
216garbage ;238garbage ;
217execute stmt;239execute stmt;
218eval select $mysql_errno as "after_successful_execute" ;240eval select $mysql_errno as "after_successful_execute" ;
219241
220# failing execute (table has been dropped)242# failing execute (table has been dropped)
221drop table t1;243drop table t1;
222--error 1064244--error ER_PARSE_ERROR
245
223garbage ;246garbage ;
224--error 1146247--error ER_NO_SUCH_TABLE
248
225execute stmt;249execute stmt;
226eval select $mysql_errno as "after_failing_execute" ;250eval select $mysql_errno as "after_failing_execute" ;
227251
228# failing execute (unknown statement)252# failing execute (unknown statement)
229--error 1064253--error ER_PARSE_ERROR
254
230garbage ;255garbage ;
231--error 1243256--error ER_UNKNOWN_STMT_HANDLER
257
232execute __stmt_;258execute __stmt_;
233eval select $mysql_errno as "after_failing_execute" ;259eval select $mysql_errno as "after_failing_execute" ;
234260
235# successful deallocate261# successful deallocate
236--error 1064262--error ER_PARSE_ERROR
263
237garbage ;264garbage ;
238deallocate prepare stmt;265deallocate prepare stmt;
239eval select $mysql_errno as "after_successful_deallocate" ;266eval select $mysql_errno as "after_successful_deallocate" ;
240267
241# failing deallocate ( statement handle does not exist )268# failing deallocate ( statement handle does not exist )
242--error 1064269--error ER_PARSE_ERROR
270
243garbage ;271garbage ;
244--error 1243272--error ER_UNKNOWN_STMT_HANDLER
273
245deallocate prepare __stmt_;274deallocate prepare __stmt_;
246eval select $mysql_errno as "after_failing_deallocate" ;275eval select $mysql_errno as "after_failing_deallocate" ;
247276
@@ -266,7 +295,8 @@
266# ----------------------------------------------------------------------------295# ----------------------------------------------------------------------------
267# Switch off the abort on error and check the effect on $mysql_errno296# Switch off the abort on error and check the effect on $mysql_errno
268# ----------------------------------------------------------------------------297# ----------------------------------------------------------------------------
269--error 1064298--error ER_PARSE_ERROR
299
270garbage ;300garbage ;
271--disable_abort_on_error301--disable_abort_on_error
272eval select $mysql_errno as "after_--disable_abort_on_error" ;302eval select $mysql_errno as "after_--disable_abort_on_error" ;
@@ -280,9 +310,11 @@
280# masked failing statements310# masked failing statements
281# ----------------------------------------------------------------------------311# ----------------------------------------------------------------------------
282# expected error = response312# expected error = response
283--error 1146313--error ER_NO_SUCH_TABLE
314
284select 3 from t1 ;315select 3 from t1 ;
285--error 1146316--error ER_NO_SUCH_TABLE
317
286select 3 from t1 ;318select 3 from t1 ;
287eval select $mysql_errno as "after_!errno_masked_error" ;319eval select $mysql_errno as "after_!errno_masked_error" ;
288# expected error <> response320# expected error <> response
@@ -296,7 +328,8 @@
296# ----------------------------------------------------------------------------328# ----------------------------------------------------------------------------
297# Switch the abort on error on and check the effect on $mysql_errno329# Switch the abort on error on and check the effect on $mysql_errno
298# ----------------------------------------------------------------------------330# ----------------------------------------------------------------------------
299--error 1064331--error ER_PARSE_ERROR
332
300garbage ;333garbage ;
301--enable_abort_on_error334--enable_abort_on_error
302eval select $mysql_errno as "after_--enable_abort_on_error" ;335eval select $mysql_errno as "after_--enable_abort_on_error" ;
@@ -305,7 +338,8 @@
305# masked failing statements338# masked failing statements
306# ----------------------------------------------------------------------------339# ----------------------------------------------------------------------------
307# expected error = response340# expected error = response
308--error 1146341--error ER_NO_SUCH_TABLE
342
309select 3 from t1 ;343select 3 from t1 ;
310344
311# ----------------------------------------------------------------------------345# ----------------------------------------------------------------------------
@@ -454,7 +488,7 @@
454488
455# Allow trailing # comment489# Allow trailing # comment
456--sleep 1 # Wait for insert delayed to be executed.490--sleep 1 # Wait for insert delayed to be executed.
457--sleep 1 # Wait for insert delayed to be executed.491--sleep 1 # Wait for insert delayed to be executed.
458492
459# ----------------------------------------------------------------------------493# ----------------------------------------------------------------------------
460# Test error494# Test error
@@ -569,9 +603,6 @@
569603
570# Illegal use of exec604# Illegal use of exec
571--error 1605--error 1
572--exec echo "--exec false" | $MYSQL_TEST 2>&1
573
574--error 1
575--exec echo "--exec " | $MYSQL_TEST 2>&1606--exec echo "--exec " | $MYSQL_TEST 2>&1
576607
577# ----------------------------------------------------------------------------608# ----------------------------------------------------------------------------
@@ -679,7 +710,7 @@
679--error 1710--error 1
680--exec echo "let hi;" | $MYSQL_TEST 2>&1711--exec echo "let hi;" | $MYSQL_TEST 2>&1
681712
682# More advanced test for bug#17280713# More advanced test for Bug#17280
683let $success= 1;714let $success= 1;
684--echo # Execute: --echo # <whatever> success: \$success715--echo # Execute: --echo # <whatever> success: \$success
685--echo # <whatever> success: $success716--echo # <whatever> success: $success
@@ -951,8 +982,6 @@
951--exec echo "system;" | $MYSQL_TEST 2>&1982--exec echo "system;" | $MYSQL_TEST 2>&1
952--error 1983--error 1
953--exec echo "system $NONEXISTSINFVAREABLI;" | $MYSQL_TEST 2>&1984--exec echo "system $NONEXISTSINFVAREABLI;" | $MYSQL_TEST 2>&1
954--error 1
955--exec echo "system false;" | $MYSQL_TEST 2>&1
956985
957--disable_abort_on_error986--disable_abort_on_error
958system NonExistsinfComamdn 2> /dev/null;987system NonExistsinfComamdn 2> /dev/null;
@@ -1225,7 +1254,7 @@
1225--exec echo "replace_result a;" | $MYSQL_TEST 2>&11254--exec echo "replace_result a;" | $MYSQL_TEST 2>&1
1226--error 11255--error 1
1227--exec echo "replace_result a ;" | $MYSQL_TEST 2>&11256--exec echo "replace_result a ;" | $MYSQL_TEST 2>&1
1228--exec echo "replace_result a b; echo OK;" | $MYSQL_TEST 2>&11257--exec echo "replace_result a b; echo OK; exit;" | $MYSQL_TEST 2>&1
1229--error 11258--error 1
1230--exec echo "--replace_result a b c" | $MYSQL_TEST 2>&11259--exec echo "--replace_result a b c" | $MYSQL_TEST 2>&1
1231--error 11260--error 1
@@ -1289,7 +1318,7 @@
1289 dec $i;1318 dec $i;
1290}1319}
1291EOF1320EOF
1292--exec echo "source $MYSQLTEST_VARDIR/tmp/mysqltest.sql; echo OK;" | $MYSQL_TEST 2>&11321--exec echo "source $MYSQLTEST_VARDIR/tmp/mysqltest.sql; echo OK; exit;" | $MYSQL_TEST 2>&1
1293remove_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql;1322remove_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql;
12941323
1295# Repeat connect/disconnect1324# Repeat connect/disconnect
@@ -1360,17 +1389,18 @@
13601389
13611390
1362# ----------------------------------------------------------------------------1391# ----------------------------------------------------------------------------
1363# TODO Test queries, especially their errormessages... so it's easy to debug 1392# TODO Test queries, especially their errormessages... so it's easy to debug
1364# new scripts and diagnose errors1393# new scripts and diagnose errors
1365# ----------------------------------------------------------------------------1394# ----------------------------------------------------------------------------
13661395
1367# ----------------------------------------------------------------------------1396# ----------------------------------------------------------------------------
1368# Test bug#123861397# Test Bug#12386
1369# ----------------------------------------------------------------------------1398# ----------------------------------------------------------------------------
1370let $num= 2;1399let $num= 2;
1371while ($num)1400while ($num)
1372{1401{
1373 --error 10641402 --error ER_PARSE_ERROR
1403
1374 failing_statement;1404 failing_statement;
13751405
1376 dec $num;1406 dec $num;
@@ -1380,7 +1410,7 @@
13801410
13811411
1382#1412#
1383# Bug #10251: Identifiers containing quotes not handled correctly1413# Bug#10251 Identifiers containing quotes not handled correctly
1384#1414#
1385select 1 as `a'b`, 2 as `a"b`;1415select 1 as `a'b`, 2 as `a"b`;
13861416
@@ -1401,7 +1431,7 @@
14011431
1402# The message contains more then 80 characters on multiple lines1432# The message contains more then 80 characters on multiple lines
1403# and is kept between double quotes.1433# and is kept between double quotes.
1404let $message= 1434let $message=
1405"Here comes a very very long message that1435"Here comes a very very long message that
1406 - is longer then 80 characters and1436 - is longer then 80 characters and
1407 - consists of several lines";1437 - consists of several lines";
@@ -1429,14 +1459,16 @@
1429#1459#
1430# Test zero length result file. Should not pass1460# Test zero length result file. Should not pass
1431#1461#
1432--exec touch $MYSQLTEST_VARDIR/tmp/zero_length_file.result1462--exec echo '' > $MYSQLTEST_VARDIR/tmp/zero_length_file.result
1433--exec echo "echo ok;" > $MYSQLTEST_VARDIR/tmp/query.sql1463--exec echo "echo ok;" > $MYSQLTEST_VARDIR/tmp/query.sql
1434--error 11464--error 1
1435--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/zero_length_file.result > /dev/null 2>&11465--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/zero_length_file.result > /dev/null 2>&1
14361466
1437remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.result;1467remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.result;
1438--error 0,11468--error 0,1
1439remove_file $MYSQLTEST_VARDIR/log/zero_length_file.reject;1469remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.reject;
1470--error 0,1
1471remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.log;
1440--error 0,11472--error 0,1
1441remove_file $MYSQL_TEST_DIR/r/zero_length_file.reject;1473remove_file $MYSQL_TEST_DIR/r/zero_length_file.reject;
14421474
@@ -1460,8 +1492,8 @@
1460#--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/result_file.result 2>&11492#--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/result_file.result 2>&1
14611493
1462#1494#
1463# Bug #11731 mysqltest in multi-statement queries ignores errors in1495# Bug#11731 mysqltest in multi-statement queries ignores errors in
1464# non-1st queries1496# non-1st queries
1465#1497#
14661498
1467echo Failing multi statement query;1499echo Failing multi statement query;
@@ -1482,7 +1514,8 @@
1482--error 11514--error 1
1483--exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&11515--exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&1
1484# The .out file should be non existent1516# The .out file should be non existent
1485--exec test ! -s $MYSQLTEST_VARDIR/tmp/bug11731.out1517--error 1
1518--file_exists $MYSQLTEST_VARDIR/tmp/bug11731.out
1486drop table t1;1519drop table t1;
14871520
14881521
@@ -1496,6 +1529,7 @@
1496--exec echo "select 'select-me';" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql1529--exec echo "select 'select-me';" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql
1497--exec echo "insertz "error query"||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql1530--exec echo "insertz "error query"||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql
1498--exec echo "delimiter ;||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql1531--exec echo "delimiter ;||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql
1532--exec echo "exit;" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql
14991533
1500# These two should work since the error is expected1534# These two should work since the error is expected
1501--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/bug11731.sql 2>&11535--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/bug11731.sql 2>&1
@@ -1503,26 +1537,29 @@
15031537
1504--exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&11538--exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&1
1505# The .out file should exist1539# The .out file should exist
1506--exec test -s $MYSQLTEST_VARDIR/tmp/bug11731.out1540--file_exists $MYSQLTEST_VARDIR/tmp/bug11731.out
1507drop table t1;1541drop table t1;
1508remove_file $MYSQLTEST_VARDIR/tmp/bug11731.out;1542remove_file $MYSQLTEST_VARDIR/tmp/bug11731.out;
1509remove_file $MYSQLTEST_VARDIR/log/bug11731.log;1543remove_file $MYSQLTEST_VARDIR/log/bug11731.log;
1510remove_file $MYSQLTEST_VARDIR/tmp/bug11731.sql;1544remove_file $MYSQLTEST_VARDIR/tmp/bug11731.sql;
15111545
1512#1546#
1513# Bug#19890 mysqltest: "query" command is broken1547# Bug#19890 mysqltest "query" command is broken
1514#1548#
15151549
1516# It should be possible to use the command "query" to force mysqltest to1550# It should be possible to use the command "query" to force mysqltest to
1517# send the command to the server although it's a builtin mysqltest command.1551# send the command to the server although it's a builtin mysqltest command.
1518--error 10641552--error ER_PARSE_ERROR
1553
1519query sleep;1554query sleep;
15201555
1521--error 10641556--error ER_PARSE_ERROR
1557
1522--query sleep1558--query sleep
15231559
1524# Just an empty query command1560# Just an empty query command
1525--error 10651561--error ER_EMPTY_QUERY
1562
1526query ;1563query ;
15271564
1528# test for replace_regex1565# test for replace_regex
@@ -1533,7 +1570,7 @@
1533select "at" as col1, "AT" as col2, "c" as col3;1570select "at" as col1, "AT" as col2, "c" as col3;
15341571
1535--replace_regex /a/b/ /ct/d/1572--replace_regex /a/b/ /ct/d/
1536select "a" as col1, "ct" as col2; 1573select "a" as col1, "ct" as col2;
15371574
1538--replace_regex /(strawberry)/raspberry and \1/ /blueberry/blackberry/ /potato/tomato/;1575--replace_regex /(strawberry)/raspberry and \1/ /blueberry/blackberry/ /potato/tomato/;
1539select "strawberry","blueberry","potato";1576select "strawberry","blueberry","potato";
@@ -1551,7 +1588,7 @@
1551--error 11588--error 1
1552--exec echo "--replace_regex /a b c" | $MYSQL_TEST 2>&11589--exec echo "--replace_regex /a b c" | $MYSQL_TEST 2>&1
1553--error 11590--error 1
1554--exec echo "replace_regex /a /b c ;" | $MYSQL_TEST 2>&1 1591--exec echo "replace_regex /a /b c ;" | $MYSQL_TEST 2>&1
15551592
1556# REQUIREMENT1593# REQUIREMENT
1557# replace_regex should replace substitutions from left to right in output1594# replace_regex should replace substitutions from left to right in output
@@ -1688,6 +1725,7 @@
1688--diff_files $MYSQLTEST_VARDIR/tmp/diff1.tmp $MYSQLTEST_VARDIR/tmp/diff4.tmp1725--diff_files $MYSQLTEST_VARDIR/tmp/diff1.tmp $MYSQLTEST_VARDIR/tmp/diff4.tmp
1689--error 11726--error 1
1690--diff_files $MYSQLTEST_VARDIR/tmp/diff4.tmp $MYSQLTEST_VARDIR/tmp/diff1.tmp1727--diff_files $MYSQLTEST_VARDIR/tmp/diff4.tmp $MYSQLTEST_VARDIR/tmp/diff1.tmp
1728exit;
1691EOF1729EOF
16921730
1693# Execute the above diffs, and send their output to /dev/null - only1731# Execute the above diffs, and send their output to /dev/null - only
@@ -1915,12 +1953,13 @@
1915# 8. Ensure that "sorted_result " does not change the semantics of1953# 8. Ensure that "sorted_result " does not change the semantics of
1916# "--error ...." or the protocol output after such an expected failure1954# "--error ...." or the protocol output after such an expected failure
1917--sorted_result1955--sorted_result
1918--error 11461956--error ER_NO_SUCH_TABLE
1957
1919SELECT '2' as "my_col1",2 as "my_col2"1958SELECT '2' as "my_col1",2 as "my_col2"
1920UNION1959UNION
1921SELECT '1',1 from t2;1960SELECT '1',1 from t2;
19221961
1923# 9. Ensure that several result formatting options including "sorted_result" 1962# 9. Ensure that several result formatting options including "sorted_result"
1924# - have all an effect1963# - have all an effect
1925# - "--sorted_result" does not need to be direct before the statement1964# - "--sorted_result" does not need to be direct before the statement
1926# - Row sorting is applied after modification of the column content1965# - Row sorting is applied after modification of the column content
@@ -2101,5 +2140,121 @@
2101--change_user root,,2140--change_user root,,
2102--change_user root,,test2141--change_user root,,test
21032142
2143# ----------------------------------------------------------------------------
2144# Test mkdir and rmdir command
2145# ----------------------------------------------------------------------------
2146
2147mkdir $MYSQLTEST_VARDIR/tmp/testdir;
2148rmdir $MYSQLTEST_VARDIR/tmp/testdir;
2149
2150# Directory already exist
2151mkdir $MYSQLTEST_VARDIR/tmp/testdir;
2152--error 1
2153mkdir $MYSQLTEST_VARDIR/tmp/testdir;
2154
2155# Remove dir with file inside
2156write_file $MYSQLTEST_VARDIR/tmp/testdir/file1.txt;
2157hello
2158EOF
2159
2160list_files $MYSQLTEST_VARDIR/tmp/testdir;
2161# list_files gets the directory list before creating the new file
2162list_files_write_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir *;
2163list_files_append_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir *2*;
2164list_files_write_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir file?.txt;
2165list_files_append_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt $MYSQLTEST_VARDIR/tmp/testdir file*.txt;
2166diff_files $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir/file3.txt;
2167--error 1
2168rmdir $MYSQLTEST_VARDIR/tmp/testdir;
2169
2170cat_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt;
2171
2172remove_file $MYSQLTEST_VARDIR/tmp/testdir/file1.txt;
2173remove_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt;
2174remove_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt;
2175rmdir $MYSQLTEST_VARDIR/tmp/testdir;
2176
2177#
2178# Bug#36041 mysql-test-run doesn't seem to string match 100% effectively
2179# on Windows
2180#
2181
2182--replace_result c:\\a.txt z
2183SELECT 'c:\\a.txt' AS col;
2184
2185#
2186# Bug#32307 mysqltest - does not detect illegal if syntax
2187#
2188
2189let $test= 1;
2190if ($test){
2191 echo hej;
2192}
2193
2194--write_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql
2195if ($mysql_errno != 1436)
2196{
2197 echo ^ Should not be allowed!
2198}
2199EOF
2200--error 1
2201--exec $MYSQL_TEST < $MYSQLTEST_VARDIR/tmp/mysqltest.sql 2>&1
2202remove_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql;
2203
2204
2205# ----------------------------------------------------------------------------
2206# Test that -- is not allowed as comment, only as mysqltest builtin command
2207# ----------------------------------------------------------------------------
2208
2209# valid
2210select 1;
2211--query select 1
2212--query -- a comment for the server
2213
2214# Not valid, "select" is not a mysqltest command
2215--error 1
2216--exec echo "--select 1;" | $MYSQL_TEST 2>&1
2217
2218
2219# ----------------------------------------------------------------------------
2220# BUG#35701 please allow test language variables in connection and sync_slave_with_master
2221# Test that "connection $variable" works and that $CURRENT_CONNECTION has the right value.
2222# ----------------------------------------------------------------------------
2223
2224connect (con1,localhost,root,,);
2225--echo $CURRENT_CONNECTION
2226connect (con2,localhost,root,,);
2227--echo $CURRENT_CONNECTION
2228
2229connection default;
2230--echo $CURRENT_CONNECTION
2231
2232connection con1;
2233--echo $CURRENT_CONNECTION
2234
2235connection con2;
2236--echo $CURRENT_CONNECTION
2237
2238let $x= con1;
2239let $y= con2;
2240
2241connection $x;
2242--echo $CURRENT_CONNECTION
2243
2244connection $y;
2245--echo $CURRENT_CONNECTION
2246
2247# Disconnect the not selected connection
2248disconnect $x;
2249--echo $CURRENT_CONNECTION
2250
2251# Disconnect the selected connection
2252disconnect $y;
2253--echo $CURRENT_CONNECTION
2254
2255
2104--echo End of tests2256--echo End of tests
21052257
2258connection default;
2259# Wait till we reached the initial number of concurrent sessions
2260--source include/wait_until_count_sessions.inc
21062261
=== modified file 'test/mysql-test/t/null.test'
--- test/mysql-test/t/null.test 2009-04-02 20:28:52 +0000
+++ test/mysql-test/t/null.test 2009-06-02 18:58:34 +0000
@@ -61,9 +61,7 @@
61#61#
62CREATE TABLE t1 (a varchar(16) NOT NULL default '', b smallint(6) NOT NULL default 0, c datetime NOT NULL default '0000-00-00 00:00:00', d smallint(6) NOT NULL default 0);62CREATE TABLE t1 (a varchar(16) NOT NULL default '', b smallint(6) NOT NULL default 0, c datetime NOT NULL default '0000-00-00 00:00:00', d smallint(6) NOT NULL default 0);
63INSERT INTO t1 SET a = "", d= "2003-01-14 03:54:55";63INSERT INTO t1 SET a = "", d= "2003-01-14 03:54:55";
64--error 1048
65UPDATE t1 SET d=1/NULL;64UPDATE t1 SET d=1/NULL;
66--error 1048
67UPDATE t1 SET d=NULL;65UPDATE t1 SET d=NULL;
68--error 104866--error 1048
69INSERT INTO t1 (a) values (null);67INSERT INTO t1 (a) values (null);
7068
=== modified file 'test/mysql-test/t/packet.test'
--- test/mysql-test/t/packet.test 2006-10-23 09:14:04 +0000
+++ test/mysql-test/t/packet.test 2009-06-02 19:02:51 +0000
@@ -4,35 +4,53 @@
4# swallowing them and returning an error4# swallowing them and returning an error
5--source include/not_windows.inc5--source include/not_windows.inc
66
7# Save the initial number of concurrent sessions
8--source include/count_sessions.inc
9
10
7#11#
8# Check protocol handling12# Check protocol handling
9#13#
1014
11connect (con1,localhost,root,,);15set @max_allowed_packet=@@global.max_allowed_packet;
1216set @net_buffer_length=@@global.net_buffer_length;
13connection con1;17
18
19# setting values below minimum threshold of 1024 will cause truncating
14set global max_allowed_packet=100;20set global max_allowed_packet=100;
15set max_allowed_packet=100;
16set global net_buffer_length=100;21set global net_buffer_length=100;
17set net_buffer_length=100;22
18# Have to be > 1024 as min value of net_buffer_length is 102423# is not yet in effect
19SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;24SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
20# Should return NULL as 2000 is bigger than max_allowed_packet
21select repeat('a',2000);25select repeat('a',2000);
2226
23#27#
24# Connection 2 should get error for too big packets28# Connection 1 should get error for too big packets
25#29#
26connect (con2,localhost,root,,);30connect (con1,localhost,root,,);
27connection con2;31connection con1;
28select @@net_buffer_length, @@max_allowed_packet;32select @@net_buffer_length, @@max_allowed_packet;
29--error 115333--error ER_NET_PACKET_TOO_LARGE
30SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;34SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
35connection default;
36disconnect con1;
37
38#
39# Reset to default values and reconnect
40#
31set global max_allowed_packet=default;41set global max_allowed_packet=default;
32set max_allowed_packet=default;
33set global net_buffer_length=default;42set global net_buffer_length=default;
34set net_buffer_length=default;43connect (con2,localhost,root,,);
44connection con2;
35SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;45SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len;
36select length(repeat('a',2000));46select length(repeat('a',2000));
47connection default;
48disconnect con2;
49
50set global max_allowed_packet=@max_allowed_packet;
51set global net_buffer_length=@net_buffer_length;
3752
38# End of 4.1 tests53# End of 4.1 tests
54
55# Wait till we reached the initial number of concurrent sessions
56--source include/wait_until_count_sessions.inc
3957
=== modified file 'test/mysql-test/t/ps.test'
--- test/mysql-test/t/ps.test 2008-12-11 01:07:22 +0000
+++ test/mysql-test/t/ps.test 2009-06-02 20:19:18 +0000
@@ -1658,7 +1658,7 @@
1658let $iterations= 100;1658let $iterations= 100;
1659--disable_query_log1659--disable_query_log
1660--disable_result_log1660--disable_result_log
1661while ($iterations > 0)1661while ($iterations)
1662{1662{
1663 --error ER_PARSE_ERROR1663 --error ER_PARSE_ERROR
1664 PREPARE stmt FROM "CREATE PROCEDURE p1()";1664 PREPARE stmt FROM "CREATE PROCEDURE p1()";
16651665
=== modified file 'test/mysql-test/t/row.test'
--- test/mysql-test/t/row.test 2006-10-31 13:15:57 +0000
+++ test/mysql-test/t/row.test 2009-06-02 20:28:33 +0000
@@ -7,10 +7,8 @@
7select row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3));7select row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3));
8select row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));8select row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));
9select row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));9select row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3));
10--disable_ps_warnings
11select row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a'));10select row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a'));
12select row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3));11select row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3));
13--enable_ps_warnings
14select row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3));12select row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3));
15select row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));13select row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));
16select row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));14select row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3));
1715
=== modified file 'test/mysql-test/t/schema.test'
--- test/mysql-test/t/schema.test 2006-10-23 09:14:04 +0000
+++ test/mysql-test/t/schema.test 2009-06-02 22:12:20 +0000
@@ -10,5 +10,7 @@
1010
11create schema foo;11create schema foo;
12show create schema foo;12show create schema foo;
13# force PBXT schema to be created
14create table t1 (id int) engine=pbxt;
13show schemas;15show schemas;
14drop schema foo;16drop schema foo;
1517
=== modified file 'test/mysql-test/t/union.test'
--- test/mysql-test/t/union.test 2009-04-02 20:28:52 +0000
+++ test/mysql-test/t/union.test 2009-06-02 20:52:31 +0000
@@ -802,8 +802,10 @@
802# exceeds mediumtext maximum length802# exceeds mediumtext maximum length
803#803#
804804
805SELECT @tmp_max:= @@max_allowed_packet;805SELECT @tmp_max:= @@global.max_allowed_packet;
806SET max_allowed_packet=25000000;806SET @@global.max_allowed_packet=25000000;
807# switching connection to allow the new max_allowed_packet take effect
808--connect (newconn, localhost, root,,)
807CREATE TABLE t1 (a mediumtext);809CREATE TABLE t1 (a mediumtext);
808CREATE TABLE t2 (b varchar(20));810CREATE TABLE t2 (b varchar(20));
809INSERT INTO t1 VALUES ('a');811INSERT INTO t1 VALUES ('a');
@@ -825,7 +827,9 @@
825CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;827CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2;
826SHOW CREATE TABLE t3;828SHOW CREATE TABLE t3;
827DROP TABLES t1,t2,t3;829DROP TABLES t1,t2,t3;
828SET max_allowed_packet:= @tmp_max;830--connection default
831SET @@global.max_allowed_packet:= @tmp_max;
832--disconnect newconn
829833
830#834#
831# Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM835# Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM
832836
=== modified file 'test/mysql-test/t/variables.test'
--- test/mysql-test/t/variables.test 2008-11-13 18:01:16 +0000
+++ test/mysql-test/t/variables.test 2009-06-02 21:30:51 +0000
@@ -6,7 +6,7 @@
6--enable_warnings6--enable_warnings
77
8#8#
9# Bug #19263: variables.test doesn't clean up after itself (I/II -- save)9# Bug#19263: variables.test doesn't clean up after itself (I/II -- save)
10#10#
11set @my_binlog_cache_size =@@global.binlog_cache_size;11set @my_binlog_cache_size =@@global.binlog_cache_size;
12set @my_connect_timeout =@@global.connect_timeout;12set @my_connect_timeout =@@global.connect_timeout;
@@ -18,13 +18,13 @@
18set @my_max_binlog_cache_size =@@global.max_binlog_cache_size;18set @my_max_binlog_cache_size =@@global.max_binlog_cache_size;
19set @my_max_binlog_size =@@global.max_binlog_size;19set @my_max_binlog_size =@@global.max_binlog_size;
20set @my_max_connect_errors =@@global.max_connect_errors;20set @my_max_connect_errors =@@global.max_connect_errors;
21set @my_max_connections =@@global.max_connections;
21set @my_max_delayed_threads =@@global.max_delayed_threads;22set @my_max_delayed_threads =@@global.max_delayed_threads;
22set @my_max_heap_table_size =@@global.max_heap_table_size;23set @my_max_heap_table_size =@@global.max_heap_table_size;
23set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads;24set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads;
24set @my_max_join_size =@@global.max_join_size;25set @my_max_join_size =@@global.max_join_size;
25set @my_max_user_connections =@@global.max_user_connections;
26set @my_max_write_lock_count =@@global.max_write_lock_count;
27set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size;26set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size;
27set @my_myisam_max_sort_file_size =@@global.myisam_max_sort_file_size;
28set @my_net_buffer_length =@@global.net_buffer_length;28set @my_net_buffer_length =@@global.net_buffer_length;
29set @my_net_write_timeout =@@global.net_write_timeout;29set @my_net_write_timeout =@@global.net_write_timeout;
30set @my_net_read_timeout =@@global.net_read_timeout;30set @my_net_read_timeout =@@global.net_read_timeout;
@@ -35,7 +35,8 @@
35set @my_slow_launch_time =@@global.slow_launch_time;35set @my_slow_launch_time =@@global.slow_launch_time;
36set @my_storage_engine =@@global.storage_engine;36set @my_storage_engine =@@global.storage_engine;
37set @my_thread_cache_size =@@global.thread_cache_size;37set @my_thread_cache_size =@@global.thread_cache_size;
3838set @my_max_allowed_packet =@@global.max_allowed_packet;
39set @my_join_buffer_size =@@global.join_buffer_size;
39# case insensitivity tests (new in 5.0)40# case insensitivity tests (new in 5.0)
40set @`test`=1;41set @`test`=1;
41select @test, @`test`, @TEST, @`TEST`, @"teSt";42select @test, @`test`, @TEST, @`TEST`, @"teSt";
@@ -142,29 +143,28 @@
142show global variables like 'myisam_max_sort_file_size';143show global variables like 'myisam_max_sort_file_size';
143select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';144select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
144set GLOBAL myisam_max_sort_file_size=default;145set GLOBAL myisam_max_sort_file_size=default;
145--replace_result 2147483647 FILE_SIZE 9223372036854775807 FILE_SIZE146--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
146show variables like 'myisam_max_sort_file_size';147show global variables like 'myisam_max_sort_file_size';
147--replace_result 2147483647 FILE_SIZE 9223372036854775807 FILE_SIZE148--replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE
148select * from information_schema.session_variables where variable_name like 'myisam_max_sort_file_size';149select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
149150
151# bug#22891: modified to take read-only SESSION net_buffer_length into account
150set global net_retry_count=10, session net_retry_count=10;152set global net_retry_count=10, session net_retry_count=10;
151set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;153set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
152set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600;154show global variables like 'net_%';
153show global variables like 'net_%';155select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
154select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name;156show session variables like 'net_%';
155show session variables like 'net_%';157select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
156select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name;158set global net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
157set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;159show global variables like 'net_%';
158show global variables like 'net_%';160select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
159select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name;161set global net_buffer_length=1;
160show session variables like 'net_%';162show global variables like 'net_buffer_length';
161select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name;163select * from information_schema.global_variables where variable_name like 'net_buffer_length';
162set net_buffer_length=1;164#warning 1292
163show variables like 'net_buffer_length';165set global net_buffer_length=2000000000;
164select * from information_schema.session_variables where variable_name like 'net_buffer_length';166show global variables like 'net_buffer_length';
165set net_buffer_length=2000000000;167select * from information_schema.global_variables where variable_name like 'net_buffer_length';
166show variables like 'net_buffer_length';
167select * from information_schema.session_variables where variable_name like 'net_buffer_length';
168168
169set character set cp1251_koi8;169set character set cp1251_koi8;
170show variables like "character_set_client";170show variables like "character_set_client";
@@ -174,21 +174,63 @@
174set @@rand_seed1=10000000,@@rand_seed2=1000000;174set @@rand_seed1=10000000,@@rand_seed2=1000000;
175select ROUND(RAND(),5);175select ROUND(RAND(),5);
176176
177show variables like '%alloc%';177
178select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name;178--echo
179set @@range_alloc_block_size=1024*16;179--echo ==+ Testing %alloc% system variables +==
180--echo ==+ NOTE: These values *must* be a multiple of 1024 +==
181--echo ==+ Other values will be rounded down to nearest multiple +==
182--echo
183--echo ==+ Show initial values +==
184SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
185'query_alloc_block_size', 'query_prealloc_size',
186'transaction_alloc_block_size', 'transaction_prealloc_size');
187
188--echo ==+ information_schema data +==
189SELECT * FROM information_schema.session_variables
190WHERE variable_name IN ('range_alloc_block_size',
191'query_alloc_block_size', 'query_prealloc_size',
192'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
193--echo Testing values that are multiples of 1024
194set @@range_alloc_block_size=1024*15+1024;
195set @@query_alloc_block_size=1024*15+1024*2;
196set @@query_prealloc_size=1024*18-1024;
197set @@transaction_alloc_block_size=1024*21-1024*1;
198set @@transaction_prealloc_size=1024*21-2048;
199--echo ==+ Check manipulated values ==+
200select @@query_alloc_block_size;
201SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
202'query_alloc_block_size', 'query_prealloc_size',
203'transaction_alloc_block_size', 'transaction_prealloc_size');
204--echo ==+ information_schema data +==
205SELECT * FROM information_schema.session_variables
206WHERE variable_name IN ('range_alloc_block_size',
207'query_alloc_block_size', 'query_prealloc_size',
208'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
209--echo ==+ Manipulate variable values +==
210--echo Testing values that are not 1024 multiples
211set @@range_alloc_block_size=1024*16+1023;
180set @@query_alloc_block_size=1024*17+2;212set @@query_alloc_block_size=1024*17+2;
181set @@query_prealloc_size=1024*18;213set @@query_prealloc_size=1024*18-1023;
182set @@transaction_alloc_block_size=1024*20-1;214set @@transaction_alloc_block_size=1024*20-1;
183set @@transaction_prealloc_size=1024*21-1;215set @@transaction_prealloc_size=1024*21-1;
184select @@query_alloc_block_size;216select @@query_alloc_block_size;
185show variables like '%alloc%';217--echo ==+ Check manipulated values ==+
186select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name;218SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
219'query_alloc_block_size', 'query_prealloc_size',
220'transaction_alloc_block_size', 'transaction_prealloc_size');
221--echo ==+ information_schema data +==
222SELECT * FROM information_schema.session_variables
223WHERE variable_name IN ('range_alloc_block_size',
224'query_alloc_block_size', 'query_prealloc_size',
225'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1;
226--echo ==+ Set values back to the default values +==
187set @@range_alloc_block_size=default;227set @@range_alloc_block_size=default;
188set @@query_alloc_block_size=default, @@query_prealloc_size=default;228set @@query_alloc_block_size=default, @@query_prealloc_size=default;
189set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;229set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
190show variables like '%alloc%';230--echo ==+ Check the values now that they are reset +==
191select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name;231SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
232'query_alloc_block_size', 'query_prealloc_size',
233'transaction_alloc_block_size', 'transaction_prealloc_size');
192234
193#235#
194# Bug #10904 Illegal mix of collations between236# Bug #10904 Illegal mix of collations between
@@ -199,46 +241,46 @@
199241
200# The following should give errors242# The following should give errors
201243
202--error 1231244--error ER_WRONG_VALUE_FOR_VAR
203set big_tables=OFFF;245set big_tables=OFFF;
204--error 1231246--error ER_WRONG_VALUE_FOR_VAR
205set big_tables="OFFF";247set big_tables="OFFF";
206--error 1193248--error ER_UNKNOWN_SYSTEM_VARIABLE
207set unknown_variable=1;249set unknown_variable=1;
208--error 1232250--error ER_WRONG_TYPE_FOR_VAR
209set max_join_size="hello";251set max_join_size="hello";
210--error 1286252--error ER_UNKNOWN_STORAGE_ENGINE
211set storage_engine=UNKNOWN_TABLE_TYPE;253set storage_engine=UNKNOWN_TABLE_TYPE;
212--error 1231254--error ER_WRONG_VALUE_FOR_VAR
213set storage_engine=MERGE, big_tables=2;255set storage_engine=MERGE, big_tables=2;
214show local variables like 'storage_engine';256show local variables like 'storage_engine';
215--error 1229257--error ER_GLOBAL_VARIABLE
216set SESSION query_cache_size=10000;258set SESSION query_cache_size=10000;
217--error 1230259--error ER_NO_DEFAULT
218set GLOBAL storage_engine=DEFAULT;260set GLOBAL storage_engine=DEFAULT;
219--error 1115261--error ER_UNKNOWN_CHARACTER_SET
220set character_set_client=UNKNOWN_CHARACTER_SET;262set character_set_client=UNKNOWN_CHARACTER_SET;
221--error 1273263--error ER_UNKNOWN_COLLATION
222set collation_connection=UNKNOWN_COLLATION;264set collation_connection=UNKNOWN_COLLATION;
223--error 1231265--error ER_WRONG_VALUE_FOR_VAR
224set character_set_client=NULL;266set character_set_client=NULL;
225--error 1231267--error ER_WRONG_VALUE_FOR_VAR
226set collation_connection=NULL;268set collation_connection=NULL;
227--error 1228269--error ER_LOCAL_VARIABLE
228set global autocommit=1;270set global autocommit=1;
229--error 1238271--error ER_INCORRECT_GLOBAL_LOCAL_VAR
230select @@global.timestamp;272select @@global.timestamp;
231--error 1238 273--error ER_INCORRECT_GLOBAL_LOCAL_VAR
232set @@version='';274set @@version='';
233--error 1229275--error ER_GLOBAL_VARIABLE
234set @@concurrent_insert=1;276set @@concurrent_insert=1;
235--error 1228277--error ER_LOCAL_VARIABLE
236set @@global.sql_auto_is_null=1;278set @@global.sql_auto_is_null=1;
237--error 1238279--error ER_INCORRECT_GLOBAL_LOCAL_VAR
238select @@global.sql_auto_is_null;280select @@global.sql_auto_is_null;
239--error 1229281--error ER_GLOBAL_VARIABLE
240set myisam_max_sort_file_size=100;282set myisam_max_sort_file_size=100;
241--error 1231283--error ER_WRONG_VALUE_FOR_VAR
242set @@SQL_WARNINGS=NULL;284set @@SQL_WARNINGS=NULL;
243285
244# Test setting all variables286# Test setting all variables
@@ -269,9 +311,12 @@
269set join_buffer_size=100;311set join_buffer_size=100;
270set last_insert_id=1;312set last_insert_id=1;
271set global local_infile=1;313set global local_infile=1;
272set long_query_time=100;314set long_query_time=0.000001;
315select @@long_query_time;
316set long_query_time=100.000001;
317select @@long_query_time;
273set low_priority_updates=1;318set low_priority_updates=1;
274set max_allowed_packet=100;319set global max_allowed_packet=100;
275set global max_binlog_cache_size=100;320set global max_binlog_cache_size=100;
276set global max_binlog_size=100;321set global max_binlog_size=100;
277set global max_connect_errors=100;322set global max_connect_errors=100;
@@ -285,7 +330,7 @@
285select @@max_user_connections;330select @@max_user_connections;
286set global max_write_lock_count=100;331set global max_write_lock_count=100;
287set myisam_sort_buffer_size=100;332set myisam_sort_buffer_size=100;
288set net_buffer_length=100;333set global net_buffer_length=100;
289set net_read_timeout=100;334set net_read_timeout=100;
290set net_write_timeout=100;335set net_write_timeout=100;
291set global query_cache_limit=100;336set global query_cache_limit=100;
@@ -328,6 +373,7 @@
328set tx_isolation="READ-COMMITTED";373set tx_isolation="READ-COMMITTED";
329set wait_timeout=100;374set wait_timeout=100;
330set log_warnings=1;375set log_warnings=1;
376set global log_warnings=1;
331377
332#378#
333# Bugs: #20392: INSERT_ID session variable has weird value379# Bugs: #20392: INSERT_ID session variable has weird value
@@ -365,23 +411,23 @@
365# error conditions411# error conditions
366#412#
367413
368--error 1193414--error ER_UNKNOWN_SYSTEM_VARIABLE
369select @@xxxxxxxxxx;415select @@xxxxxxxxxx;
370select 1;416select 1;
371417
372--error 1238418--error ER_INCORRECT_GLOBAL_LOCAL_VAR
373select @@session.key_buffer_size;419select @@session.key_buffer_size;
374420
375--error 1229421--error ER_GLOBAL_VARIABLE
376set ft_boolean_syntax = @@init_connect;422set ft_boolean_syntax = @@init_connect;
377--error 1231423--error ER_WRONG_VALUE_FOR_VAR
378set global ft_boolean_syntax = @@init_connect;424set global ft_boolean_syntax = @@init_connect;
379--error 1229425--error ER_GLOBAL_VARIABLE
380set init_connect = NULL;426set init_connect = NULL;
381set global init_connect = NULL;427set global init_connect = NULL;
382--error 1229428--error ER_GLOBAL_VARIABLE
383set ft_boolean_syntax = @@init_connect;429set ft_boolean_syntax = @@init_connect;
384--error 1231430--error ER_WRONG_VALUE_FOR_VAR
385set global ft_boolean_syntax = @@init_connect;431set global ft_boolean_syntax = @@init_connect;
386432
387# Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as433# Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as
@@ -414,15 +460,15 @@
414#460#
415# Bug#2586:Disallow global/session/local as structured var. instance names461# Bug#2586:Disallow global/session/local as structured var. instance names
416#462#
417--error 1064463--error ER_PARSE_ERROR
418set @@global.global.key_buffer_size= 1;464set @@global.global.key_buffer_size= 1;
419--error 1064465--error ER_PARSE_ERROR
420set GLOBAL global.key_buffer_size= 1;466set GLOBAL global.key_buffer_size= 1;
421--error 1064467--error ER_PARSE_ERROR
422SELECT @@global.global.key_buffer_size;468SELECT @@global.global.key_buffer_size;
423--error 1064469--error ER_PARSE_ERROR
424SELECT @@global.session.key_buffer_size;470SELECT @@global.session.key_buffer_size;
425--error 1064471--error ER_PARSE_ERROR
426SELECT @@global.local.key_buffer_size;472SELECT @@global.local.key_buffer_size;
427473
428# BUG#5135: cannot turn on log_warnings with SET in 4.1 (and 4.0)474# BUG#5135: cannot turn on log_warnings with SET in 4.1 (and 4.0)
@@ -513,27 +559,27 @@
513--echo *** LC_TIME_NAMES: testing with string expressions559--echo *** LC_TIME_NAMES: testing with string expressions
514set lc_time_names=concat('de','_','DE');560set lc_time_names=concat('de','_','DE');
515select @@lc_time_names;561select @@lc_time_names;
516--error 1105562--error ER_UNKNOWN_ERROR
517set lc_time_names=concat('de','+','DE');563set lc_time_names=concat('de','+','DE');
518select @@lc_time_names;564select @@lc_time_names;
519--echo LC_TIME_NAMES: testing with numeric expressions565--echo LC_TIME_NAMES: testing with numeric expressions
520set @@lc_time_names=1+2;566set @@lc_time_names=1+2;
521select @@lc_time_names;567select @@lc_time_names;
522--error 1232568--error ER_WRONG_TYPE_FOR_VAR
523set @@lc_time_names=1/0;569set @@lc_time_names=1/0;
524select @@lc_time_names;570select @@lc_time_names;
525set lc_time_names=en_US;571set lc_time_names=en_US;
526--echo LC_TIME_NAMES: testing NULL and a negative number:572--echo LC_TIME_NAMES: testing NULL and a negative number:
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches