Merge lp:~vkolesnikov/pbxt/pbxt-5.1.35-upgrade into lp:pbxt
- pbxt-5.1.35-upgrade
- Merge into trunk
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PBXT Core | Pending | ||
Review via email: mp+7550@code.launchpad.net |
Commit message
Description of the change
Vladimir Kolesnikov (vkolesnikov) wrote : | # |
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:/
> +merge/7550
> Your team PBXT Core is subscribed to branch lp:pbxt.
> === added file 'test/mysql-
> --- test/mysql-
> +0000
> +++ test/mysql-
> +0000
--
Paul McCullagh
PrimeBase Technologies
www.primebase.org
www.blobstreami
pbxt.blogspot.com
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:/
>> +merge/7550
>> Your team PBXT Core is subscribed to branch lp:pbxt.
>> === added file 'test/mysql-
>> --- test/mysql-
>> +0000
>> +++ test/mysql-
>> +0000
>>
>
>
>
> --
> Paul McCullagh
> PrimeBase Technologies
> www.primebase.org
> www.blobstreami
> pbxt.blogspot.com
>
>
>
>
--
--
Best Regards,
Vladimir
- 659. By Paul McCullagh
-
Merged RN248
Preview Diff
1 | === added file 'test/mysql-test/include/count_sessions.inc' | |||
2 | --- test/mysql-test/include/count_sessions.inc 1970-01-01 00:00:00 +0000 | |||
3 | +++ test/mysql-test/include/count_sessions.inc 2009-06-02 18:38:30 +0000 | |||
4 | @@ -0,0 +1,21 @@ | |||
5 | 1 | # include/count_sessions.inc | ||
6 | 2 | # | ||
7 | 3 | # SUMMARY | ||
8 | 4 | # | ||
9 | 5 | # Stores the number of current sessions in $count_sessions. | ||
10 | 6 | # | ||
11 | 7 | # | ||
12 | 8 | # USAGE | ||
13 | 9 | # | ||
14 | 10 | # Please look into include/wait_until_count_sessions.inc | ||
15 | 11 | # for examples of typical usage. | ||
16 | 12 | # | ||
17 | 13 | # | ||
18 | 14 | # EXAMPLE | ||
19 | 15 | # backup.test, grant3.test | ||
20 | 16 | # | ||
21 | 17 | # | ||
22 | 18 | # Created: 2009-01-14 mleich | ||
23 | 19 | # | ||
24 | 20 | |||
25 | 21 | let $count_sessions= query_get_value(SHOW STATUS LIKE 'Threads_connected', Value, 1); | ||
26 | 0 | 22 | ||
27 | === modified file 'test/mysql-test/include/mysqltest-x.inc' | |||
28 | --- test/mysql-test/include/mysqltest-x.inc 2006-10-23 09:14:04 +0000 | |||
29 | +++ test/mysql-test/include/mysqltest-x.inc 2009-06-02 18:38:30 +0000 | |||
30 | @@ -1,2 +1,3 @@ | |||
31 | 1 | echo Output from mysqltest-x.inc; | 1 | echo Output from mysqltest-x.inc; |
32 | 2 | exit; | ||
33 | 2 | 3 | ||
34 | 3 | 4 | ||
35 | === modified file 'test/mysql-test/include/ps_modify.inc' | |||
36 | --- test/mysql-test/include/ps_modify.inc 2008-06-09 12:49:32 +0000 | |||
37 | +++ test/mysql-test/include/ps_modify.inc 2009-06-02 20:26:05 +0000 | |||
38 | @@ -108,7 +108,6 @@ | |||
39 | 108 | select a,b from t1 where a=@arg00; | 108 | select a,b from t1 where a=@arg00; |
40 | 109 | set @arg00=NULL; | 109 | set @arg00=NULL; |
41 | 110 | set @arg01=2; | 110 | set @arg01=2; |
42 | 111 | --error 1048 | ||
43 | 112 | execute stmt1 using @arg00, @arg01; | 111 | execute stmt1 using @arg00, @arg01; |
44 | 113 | select a,b from t1 order by a; | 112 | select a,b from t1 order by a; |
45 | 114 | set @arg00=0; | 113 | set @arg00=0; |
46 | 115 | 114 | ||
47 | === added file 'test/mysql-test/include/wait_until_count_sessions.inc' | |||
48 | --- test/mysql-test/include/wait_until_count_sessions.inc 1970-01-01 00:00:00 +0000 | |||
49 | +++ test/mysql-test/include/wait_until_count_sessions.inc 2009-06-02 18:38:30 +0000 | |||
50 | @@ -0,0 +1,126 @@ | |||
51 | 1 | # include/wait_until_count_sessions.inc | ||
52 | 2 | # | ||
53 | 3 | # SUMMARY | ||
54 | 4 | # | ||
55 | 5 | # Waits until the passed number ($count_sessions) of concurrent sessions or | ||
56 | 6 | # a smaller number was observed via | ||
57 | 7 | # SHOW STATUS LIKE 'Threads_connected' | ||
58 | 8 | # or the operation times out. | ||
59 | 9 | # Note: | ||
60 | 10 | # 1. We wait for $current_sessions <= $count_sessions because in the use case | ||
61 | 11 | # with count_sessions.inc before and wait_until_count_sessions.inc after | ||
62 | 12 | # the core of the test it could happen that the disconnects of sessions | ||
63 | 13 | # belonging to the preceeding test are not finished. | ||
64 | 14 | # sessions at test begin($count_sessions) = m + n | ||
65 | 15 | # sessions of the previous test which will be soon disconnected = n (n >= 0) | ||
66 | 16 | # sessions at test end ($current sessions, assuming the test disconnects | ||
67 | 17 | # all additional sessions) = m | ||
68 | 18 | # 2. Starting with 5.1 we could also use | ||
69 | 19 | # SELECT COUNT(*) FROM information_schema.processlist | ||
70 | 20 | # I stay with "SHOW STATUS LIKE 'Threads_connected'" because this | ||
71 | 21 | # runs in all versions 5.0+ | ||
72 | 22 | # | ||
73 | 23 | # | ||
74 | 24 | # USAGE | ||
75 | 25 | # | ||
76 | 26 | # let $count_sessions= 3; | ||
77 | 27 | # --source include/wait_until_count_sessions.inc | ||
78 | 28 | # | ||
79 | 29 | # OR typical example of a test which uses more than one session | ||
80 | 30 | # Such a test could harm successing tests if there is no server shutdown | ||
81 | 31 | # and start between. | ||
82 | 32 | # | ||
83 | 33 | # If the testing box is slow than the disconnect of sessions belonging to | ||
84 | 34 | # the current test might happen when the successing test gets executed. | ||
85 | 35 | # This means the successing test might see activities like unexpected | ||
86 | 36 | # rows within the general log or the PROCESSLIST. | ||
87 | 37 | # Example from bug http://bugs.mysql.com/bug.php?id=40377 | ||
88 | 38 | # --- bzr_mysql-6.0-rpl/.../r/log_state.result | ||
89 | 39 | # +++ bzr_mysql-6.0-rpl/.../r/log_state.reject | ||
90 | 40 | # @@ -25,6 +25,7 @@ | ||
91 | 41 | # event_time user_host ... command_type argument | ||
92 | 42 | # TIMESTAMP USER_HOST ... Query create table t1(f1 int) | ||
93 | 43 | # TIMESTAMP USER_HOST ... Query select * from mysql.general_log | ||
94 | 44 | # +TIMESTAMP USER_HOST ... Quit | ||
95 | 45 | # .... | ||
96 | 46 | # | ||
97 | 47 | # What to do? | ||
98 | 48 | # ----------- | ||
99 | 49 | # <start of test> | ||
100 | 50 | # # Determine initial number of connections (set $count_sessions) | ||
101 | 51 | # --source include/count_sessions.inc | ||
102 | 52 | # ... | ||
103 | 53 | # connect (con1,.....) | ||
104 | 54 | # ... | ||
105 | 55 | # connection default; | ||
106 | 56 | # ... | ||
107 | 57 | # disconnect con1; | ||
108 | 58 | # ... | ||
109 | 59 | # # Wait until we have reached the initial number of connections | ||
110 | 60 | # # or more than the sleep time above (10 seconds) has passed. | ||
111 | 61 | # # $count_sessions | ||
112 | 62 | # --source include/wait_until_count_sessions.inc | ||
113 | 63 | # <end of test> | ||
114 | 64 | # | ||
115 | 65 | # Important note about tests with unfortunate (= not cooperative | ||
116 | 66 | # to successing tests) architecture: | ||
117 | 67 | # connection con1; | ||
118 | 68 | # send SELECT ..., sleep(10) | ||
119 | 69 | # connection default; | ||
120 | 70 | # ... | ||
121 | 71 | # disconnect con1; | ||
122 | 72 | # <end of test> | ||
123 | 73 | # should be fixed by | ||
124 | 74 | # connection con1; | ||
125 | 75 | # send SELECT ..., sleep(10) | ||
126 | 76 | # connection default; | ||
127 | 77 | # ... | ||
128 | 78 | # connect con1; | ||
129 | 79 | # reap; | ||
130 | 80 | # connection default; | ||
131 | 81 | # disconnect con1; | ||
132 | 82 | # <end of test> | ||
133 | 83 | # and not only by appending include/wait_until_count_sessions.inc etc. | ||
134 | 84 | # | ||
135 | 85 | # | ||
136 | 86 | # EXAMPLE | ||
137 | 87 | # | ||
138 | 88 | # backup.test, grant3.test | ||
139 | 89 | # | ||
140 | 90 | # | ||
141 | 91 | # Created: | ||
142 | 92 | # 2009-01-14 mleich | ||
143 | 93 | # Modified: | ||
144 | 94 | # 2009-02-24 mleich Fix Bug#43114 wait_until_count_sessions too restrictive, | ||
145 | 95 | # random PB failures | ||
146 | 96 | # | ||
147 | 97 | |||
148 | 98 | let $wait_counter= 100; | ||
149 | 99 | if ($wait_timeout) | ||
150 | 100 | { | ||
151 | 101 | let $wait_counter= `SELECT $wait_timeout * 10`; | ||
152 | 102 | } | ||
153 | 103 | # Reset $wait_timeout so that its value won't be used on subsequent | ||
154 | 104 | # calls, and default will be used instead. | ||
155 | 105 | let $wait_timeout= 0; | ||
156 | 106 | while ($wait_counter) | ||
157 | 107 | { | ||
158 | 108 | let $current_sessions= query_get_value(SHOW STATUS LIKE 'Threads_connected', Value, 1); | ||
159 | 109 | let $success= `SELECT $current_sessions <= $count_sessions`; | ||
160 | 110 | if ($success) | ||
161 | 111 | { | ||
162 | 112 | let $wait_counter= 0; | ||
163 | 113 | } | ||
164 | 114 | if (!$success) | ||
165 | 115 | { | ||
166 | 116 | real_sleep 0.1; | ||
167 | 117 | dec $wait_counter; | ||
168 | 118 | } | ||
169 | 119 | } | ||
170 | 120 | if (!$success) | ||
171 | 121 | { | ||
172 | 122 | --echo # Timeout in wait_until_count_sessions.inc | ||
173 | 123 | --echo # Number of sessions expected: <= $count_sessions found: $current_sessions | ||
174 | 124 | SHOW PROCESSLIST; | ||
175 | 125 | } | ||
176 | 126 | |||
177 | 0 | 127 | ||
178 | === modified file 'test/mysql-test/r/auto_increment.result' | |||
179 | --- test/mysql-test/r/auto_increment.result 2009-03-27 20:05:34 +0000 | |||
180 | +++ test/mysql-test/r/auto_increment.result 2009-06-02 00:08:42 +0000 | |||
181 | @@ -229,7 +229,8 @@ | |||
182 | 229 | 204 7 | 229 | 204 7 |
183 | 230 | delete from t1 where a=0; | 230 | delete from t1 where a=0; |
184 | 231 | update t1 set a=NULL where b=6; | 231 | update t1 set a=NULL where b=6; |
186 | 232 | ERROR 23000: Column 'a' cannot be null | 232 | Warnings: |
187 | 233 | Warning 1048 Column 'a' cannot be null | ||
188 | 233 | update t1 set a=300 where b=7; | 234 | update t1 set a=300 where b=7; |
189 | 234 | SET SQL_MODE=''; | 235 | SET SQL_MODE=''; |
190 | 235 | insert into t1(a,b)values(NULL,8); | 236 | insert into t1(a,b)values(NULL,8); |
191 | @@ -244,7 +245,7 @@ | |||
192 | 244 | 1 1 | 245 | 1 1 |
193 | 245 | 200 2 | 246 | 200 2 |
194 | 246 | 201 4 | 247 | 201 4 |
196 | 247 | 203 6 | 248 | 0 6 |
197 | 248 | 300 7 | 249 | 300 7 |
198 | 249 | 301 8 | 250 | 301 8 |
199 | 250 | 400 9 | 251 | 400 9 |
200 | @@ -260,7 +261,6 @@ | |||
201 | 260 | 1 1 | 261 | 1 1 |
202 | 261 | 200 2 | 262 | 200 2 |
203 | 262 | 201 4 | 263 | 201 4 |
204 | 263 | 203 6 | ||
205 | 264 | 300 7 | 264 | 300 7 |
206 | 265 | 301 8 | 265 | 301 8 |
207 | 266 | 400 9 | 266 | 400 9 |
208 | @@ -271,20 +271,20 @@ | |||
209 | 271 | 405 14 | 271 | 405 14 |
210 | 272 | delete from t1 where a=0; | 272 | delete from t1 where a=0; |
211 | 273 | update t1 set a=NULL where b=13; | 273 | update t1 set a=NULL where b=13; |
213 | 274 | ERROR 23000: Column 'a' cannot be null | 274 | Warnings: |
214 | 275 | Warning 1048 Column 'a' cannot be null | ||
215 | 275 | update t1 set a=500 where b=14; | 276 | update t1 set a=500 where b=14; |
216 | 276 | select * from t1 order by b; | 277 | select * from t1 order by b; |
217 | 277 | a b | 278 | a b |
218 | 278 | 1 1 | 279 | 1 1 |
219 | 279 | 200 2 | 280 | 200 2 |
220 | 280 | 201 4 | 281 | 201 4 |
221 | 281 | 203 6 | ||
222 | 282 | 300 7 | 282 | 300 7 |
223 | 283 | 301 8 | 283 | 301 8 |
224 | 284 | 400 9 | 284 | 400 9 |
225 | 285 | 401 10 | 285 | 401 10 |
226 | 286 | 402 11 | 286 | 402 11 |
228 | 287 | 404 13 | 287 | 0 13 |
229 | 288 | 500 14 | 288 | 500 14 |
230 | 289 | drop table t1; | 289 | drop table t1; |
231 | 290 | create table t1 (a bigint); | 290 | create table t1 (a bigint); |
232 | 291 | 291 | ||
233 | === modified file 'test/mysql-test/r/binlog_stm_ctype_ucs.result' | |||
234 | --- test/mysql-test/r/binlog_stm_ctype_ucs.result 2008-11-05 15:56:49 +0000 | |||
235 | +++ test/mysql-test/r/binlog_stm_ctype_ucs.result 2009-06-02 00:12:43 +0000 | |||
236 | @@ -17,7 +17,7 @@ | |||
237 | 17 | use test/*!*/; | 17 | use test/*!*/; |
238 | 18 | SET TIMESTAMP=10000/*!*/; | 18 | SET TIMESTAMP=10000/*!*/; |
239 | 19 | SET @@session.pseudo_thread_id=999999999/*!*/; | 19 | SET @@session.pseudo_thread_id=999999999/*!*/; |
241 | 20 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/; | 20 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/; |
242 | 21 | SET @@session.sql_mode=0/*!*/; | 21 | SET @@session.sql_mode=0/*!*/; |
243 | 22 | SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/; | 22 | SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/; |
244 | 23 | /*!\C latin1 *//*!*/; | 23 | /*!\C latin1 *//*!*/; |
245 | 24 | 24 | ||
246 | === modified file 'test/mysql-test/r/func_compress.result' | |||
247 | --- test/mysql-test/r/func_compress.result 2007-01-29 15:04:29 +0000 | |||
248 | +++ test/mysql-test/r/func_compress.result 2009-06-02 00:20:29 +0000 | |||
249 | @@ -68,10 +68,11 @@ | |||
250 | 68 | Error 1259 ZLIB: Input data corrupted | 68 | Error 1259 ZLIB: Input data corrupted |
251 | 69 | Error 1256 Uncompressed data size too large; the maximum size is 1048576 (probably, length of uncompressed data was corrupted) | 69 | Error 1256 Uncompressed data size too large; the maximum size is 1048576 (probably, length of uncompressed data was corrupted) |
252 | 70 | drop table t1; | 70 | drop table t1; |
254 | 71 | set @@max_allowed_packet=1048576*100; | 71 | set @@global.max_allowed_packet=1048576*100; |
255 | 72 | select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null; | 72 | select compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null; |
256 | 73 | compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null | 73 | compress(repeat('aaaaaaaaaa', IF(XXX, 10, 10000000))) is null |
257 | 74 | 0 | 74 | 0 |
258 | 75 | set @@global.max_allowed_packet=default; | ||
259 | 75 | create table t1(a blob); | 76 | create table t1(a blob); |
260 | 76 | insert into t1 values(NULL), (compress('a')); | 77 | insert into t1 values(NULL), (compress('a')); |
261 | 77 | select uncompress(a), uncompressed_length(a) from t1; | 78 | select uncompress(a), uncompressed_length(a) from t1; |
262 | 78 | 79 | ||
263 | === modified file 'test/mysql-test/r/func_group.result' | |||
264 | --- test/mysql-test/r/func_group.result 2009-04-03 19:39:12 +0000 | |||
265 | +++ test/mysql-test/r/func_group.result 2009-06-02 00:58:37 +0000 | |||
266 | @@ -61,7 +61,7 @@ | |||
267 | 61 | NULL NULL | 61 | NULL NULL |
268 | 62 | 1 7 | 62 | 1 7 |
269 | 63 | 2 20.25 | 63 | 2 20.25 |
271 | 64 | 3 45.483163247594 | 64 | 3 45.4831632475944 |
272 | 65 | create table t2 (grp int, a bigint unsigned, c char(10)); | 65 | create table t2 (grp int, a bigint unsigned, c char(10)); |
273 | 66 | insert into t2 select grp,max(a)+max(grp),max(c) from t1 group by grp; | 66 | insert into t2 select grp,max(a)+max(grp),max(c) from t1 group by grp; |
274 | 67 | replace into t2 select grp, a, c from t1 limit 2,1; | 67 | replace into t2 select grp, a, c from t1 limit 2,1; |
275 | @@ -1186,7 +1186,7 @@ | |||
276 | 1186 | 0.21325764 | 1186 | 0.21325764 |
277 | 1187 | select std(o1/o2) from bug22555; | 1187 | select std(o1/o2) from bug22555; |
278 | 1188 | std(o1/o2) | 1188 | std(o1/o2) |
280 | 1189 | 0.21325763586649 | 1189 | 0.213257635866493 |
281 | 1190 | select std(e1/e2) from bug22555; | 1190 | select std(e1/e2) from bug22555; |
282 | 1191 | std(e1/e2) | 1191 | std(e1/e2) |
283 | 1192 | 0.21325764 | 1192 | 0.21325764 |
284 | @@ -1212,7 +1212,7 @@ | |||
285 | 1212 | 0.21325763586649341 | 1212 | 0.21325763586649341 |
286 | 1213 | select std(o1/o2) from bug22555; | 1213 | select std(o1/o2) from bug22555; |
287 | 1214 | std(o1/o2) | 1214 | std(o1/o2) |
289 | 1215 | 0.21325763586649 | 1215 | 0.213257635866493 |
290 | 1216 | select round(std(e1/e2), 17) from bug22555; | 1216 | select round(std(e1/e2), 17) from bug22555; |
291 | 1217 | round(std(e1/e2), 17) | 1217 | round(std(e1/e2), 17) |
292 | 1218 | 0.21325763586649341 | 1218 | 0.21325763586649341 |
293 | @@ -1237,7 +1237,7 @@ | |||
294 | 1237 | 0.21325763586649341 | 1237 | 0.21325763586649341 |
295 | 1238 | select std(o1/o2) from bug22555; | 1238 | select std(o1/o2) from bug22555; |
296 | 1239 | std(o1/o2) | 1239 | std(o1/o2) |
298 | 1240 | 0.21325763586649 | 1240 | 0.213257635866493 |
299 | 1241 | select round(std(e1/e2), 17) from bug22555; | 1241 | select round(std(e1/e2), 17) from bug22555; |
300 | 1242 | round(std(e1/e2), 17) | 1242 | round(std(e1/e2), 17) |
301 | 1243 | 0.21325763586649341 | 1243 | 0.21325763586649341 |
302 | 1244 | 1244 | ||
303 | === modified file 'test/mysql-test/r/func_math.result' | |||
304 | --- test/mysql-test/r/func_math.result 2008-03-10 11:36:34 +0000 | |||
305 | +++ test/mysql-test/r/func_math.result 2009-06-02 00:58:37 +0000 | |||
306 | @@ -60,7 +60,7 @@ | |||
307 | 60 | Note 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)` | 60 | Note 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)` |
308 | 61 | select log2(8),log2(15),log2(-2),log2(0),log2(NULL); | 61 | select log2(8),log2(15),log2(-2),log2(0),log2(NULL); |
309 | 62 | log2(8) log2(15) log2(-2) log2(0) log2(NULL) | 62 | log2(8) log2(15) log2(-2) log2(0) log2(NULL) |
311 | 63 | 3 3.9068905956085 NULL NULL NULL | 63 | 3 3.90689059560852 NULL NULL NULL |
312 | 64 | explain extended select log2(8),log2(15),log2(-2),log2(0),log2(NULL); | 64 | explain extended select log2(8),log2(15),log2(-2),log2(0),log2(NULL); |
313 | 65 | id select_type table type possible_keys key key_len ref rows filtered Extra | 65 | id select_type table type possible_keys key key_len ref rows filtered Extra |
314 | 66 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used | 66 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used |
315 | @@ -68,7 +68,7 @@ | |||
316 | 68 | Note 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)` | 68 | Note 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)` |
317 | 69 | select log10(100),log10(18),log10(-4),log10(0),log10(NULL); | 69 | select log10(100),log10(18),log10(-4),log10(0),log10(NULL); |
318 | 70 | log10(100) log10(18) log10(-4) log10(0) log10(NULL) | 70 | log10(100) log10(18) log10(-4) log10(0) log10(NULL) |
320 | 71 | 2 1.2552725051033 NULL NULL NULL | 71 | 2 1.25527250510331 NULL NULL NULL |
321 | 72 | explain extended select log10(100),log10(18),log10(-4),log10(0),log10(NULL); | 72 | explain extended select log10(100),log10(18),log10(-4),log10(0),log10(NULL); |
322 | 73 | id select_type table type possible_keys key key_len ref rows filtered Extra | 73 | id select_type table type possible_keys key key_len ref rows filtered Extra |
323 | 74 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used | 74 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used |
324 | @@ -85,7 +85,7 @@ | |||
325 | 85 | set @@rand_seed1=10000000,@@rand_seed2=1000000; | 85 | set @@rand_seed1=10000000,@@rand_seed2=1000000; |
326 | 86 | select rand(999999),rand(); | 86 | select rand(999999),rand(); |
327 | 87 | rand(999999) rand() | 87 | rand(999999) rand() |
329 | 88 | 0.014231365187309 0.028870999839968 | 88 | 0.0142313651873091 0.028870999839968 |
330 | 89 | explain extended select rand(999999),rand(); | 89 | explain extended select rand(999999),rand(); |
331 | 90 | id select_type table type possible_keys key key_len ref rows filtered Extra | 90 | id select_type table type possible_keys key key_len ref rows filtered Extra |
332 | 91 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used | 91 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used |
333 | @@ -101,7 +101,7 @@ | |||
334 | 101 | Note 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)` | 101 | Note 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)` |
335 | 102 | select degrees(pi()),radians(360); | 102 | select degrees(pi()),radians(360); |
336 | 103 | degrees(pi()) radians(360) | 103 | degrees(pi()) radians(360) |
338 | 104 | 180 6.2831853071796 | 104 | 180 6.28318530717959 |
339 | 105 | select format(atan(-2, 2), 6); | 105 | select format(atan(-2, 2), 6); |
340 | 106 | format(atan(-2, 2), 6) | 106 | format(atan(-2, 2), 6) |
341 | 107 | -0.785398 | 107 | -0.785398 |
342 | 108 | 108 | ||
343 | === modified file 'test/mysql-test/r/func_str.result' | |||
344 | --- test/mysql-test/r/func_str.result 2009-03-27 20:05:34 +0000 | |||
345 | +++ test/mysql-test/r/func_str.result 2009-06-02 00:58:37 +0000 | |||
346 | @@ -717,8 +717,6 @@ | |||
347 | 717 | replace(_latin2'abcd',_latin2'b',_latin2'B'), | 717 | replace(_latin2'abcd',_latin2'b',_latin2'B'), |
348 | 718 | encode('abcd','ab') | 718 | encode('abcd','ab') |
349 | 719 | ; | 719 | ; |
350 | 720 | Warnings: | ||
351 | 721 | Warning 1265 Data truncated for column 'format(130,10)' at row 1 | ||
352 | 722 | show create table t1; | 720 | show create table t1; |
353 | 723 | Table Create Table | 721 | Table Create Table |
354 | 724 | t1 CREATE TABLE `t1` ( | 722 | t1 CREATE TABLE `t1` ( |
355 | @@ -727,7 +725,7 @@ | |||
356 | 727 | `conv(130,16,10)` varchar(64) DEFAULT NULL, | 725 | `conv(130,16,10)` varchar(64) DEFAULT NULL, |
357 | 728 | `hex(130)` varchar(6) NOT NULL DEFAULT '', | 726 | `hex(130)` varchar(6) NOT NULL DEFAULT '', |
358 | 729 | `char(130)` varbinary(4) NOT NULL DEFAULT '', | 727 | `char(130)` varbinary(4) NOT NULL DEFAULT '', |
360 | 730 | `format(130,10)` varchar(4) NOT NULL DEFAULT '', | 728 | `format(130,10)` varchar(37) NOT NULL DEFAULT '', |
361 | 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 '', |
362 | 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 '', |
363 | 733 | `lcase(_latin2'a')` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '', | 731 | `lcase(_latin2'a')` varchar(1) CHARACTER SET latin2 NOT NULL DEFAULT '', |
364 | @@ -1329,10 +1327,10 @@ | |||
365 | 1329 | 20.06 | 1327 | 20.06 |
366 | 1330 | select conv("18383815659218730760",10,10) + 0; | 1328 | select conv("18383815659218730760",10,10) + 0; |
367 | 1331 | conv("18383815659218730760",10,10) + 0 | 1329 | conv("18383815659218730760",10,10) + 0 |
369 | 1332 | 1.8383815659219e+19 | 1330 | 1.83838156592187e+19 |
370 | 1333 | select "18383815659218730760" + 0; | 1331 | select "18383815659218730760" + 0; |
371 | 1334 | "18383815659218730760" + 0 | 1332 | "18383815659218730760" + 0 |
373 | 1335 | 1.8383815659219e+19 | 1333 | 1.83838156592187e+19 |
374 | 1336 | CREATE TABLE t1 (code varchar(10)); | 1334 | CREATE TABLE t1 (code varchar(10)); |
375 | 1337 | INSERT INTO t1 VALUES ('a12'), ('A12'), ('a13'); | 1335 | INSERT INTO t1 VALUES ('a12'), ('A12'), ('a13'); |
376 | 1338 | SELECT ASCII(code), code FROM t1 WHERE code='A12'; | 1336 | SELECT ASCII(code), code FROM t1 WHERE code='A12'; |
377 | 1339 | 1337 | ||
378 | === modified file 'test/mysql-test/r/grant.result' | |||
379 | --- test/mysql-test/r/grant.result 2008-03-28 10:24:43 +0000 | |||
380 | +++ test/mysql-test/r/grant.result 2009-06-02 01:40:43 +0000 | |||
381 | @@ -457,7 +457,7 @@ | |||
382 | 457 | Alter Tables To alter the table | 457 | Alter Tables To alter the table |
383 | 458 | Alter routine Functions,Procedures To alter or drop stored functions/procedures | 458 | Alter routine Functions,Procedures To alter or drop stored functions/procedures |
384 | 459 | Create Databases,Tables,Indexes To create new databases and tables | 459 | Create Databases,Tables,Indexes To create new databases and tables |
386 | 460 | Create routine Functions,Procedures To use CREATE FUNCTION/PROCEDURE | 460 | Create routine Databases To use CREATE FUNCTION/PROCEDURE |
387 | 461 | Create temporary tables Databases To use CREATE TEMPORARY TABLE | 461 | Create temporary tables Databases To use CREATE TEMPORARY TABLE |
388 | 462 | Create view Tables To create new views | 462 | Create view Tables To create new views |
389 | 463 | Create user Server Admin To create new users | 463 | Create user Server Admin To create new users |
390 | 464 | 464 | ||
391 | === modified file 'test/mysql-test/r/information_schema_db.result' | |||
392 | --- test/mysql-test/r/information_schema_db.result 2008-11-14 17:55:06 +0000 | |||
393 | +++ test/mysql-test/r/information_schema_db.result 2009-06-02 01:42:27 +0000 | |||
394 | @@ -201,7 +201,7 @@ | |||
395 | 201 | f1 char(4) YES NULL | 201 | f1 char(4) YES NULL |
396 | 202 | show create view v2; | 202 | show create view v2; |
397 | 203 | View Create View character_set_client collation_connection | 203 | View Create View character_set_client collation_connection |
399 | 204 | v2 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_ci | 204 | v2 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 |
400 | 205 | show create view testdb_1.v1; | 205 | show create view testdb_1.v1; |
401 | 206 | ERROR 42000: SHOW VIEW command denied to user 'testdb_2'@'localhost' for table 'v1' | 206 | ERROR 42000: SHOW VIEW command denied to user 'testdb_2'@'localhost' for table 'v1' |
402 | 207 | select table_name from information_schema.columns a | 207 | select table_name from information_schema.columns a |
403 | 208 | 208 | ||
404 | === modified file 'test/mysql-test/r/information_schema_part.result' | |||
405 | --- test/mysql-test/r/information_schema_part.result 2008-05-21 12:07:14 +0000 | |||
406 | +++ test/mysql-test/r/information_schema_part.result 2009-06-02 01:44:36 +0000 | |||
407 | @@ -119,7 +119,10 @@ | |||
408 | 119 | Table Create Table | 119 | Table Create Table |
409 | 120 | t1 CREATE TABLE `t1` ( | 120 | t1 CREATE TABLE `t1` ( |
410 | 121 | `a` int(11) DEFAULT NULL | 121 | `a` int(11) DEFAULT NULL |
412 | 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 |
413 | 123 | /*!50100 PARTITION BY RANGE (a) | ||
414 | 124 | SUBPARTITION BY LINEAR HASH (a) | ||
415 | 125 | (PARTITION p0 VALUES LESS THAN (10) ENGINE = PBXT) */ | ||
416 | 123 | select SUBPARTITION_METHOD FROM information_schema.partitions WHERE | 126 | select SUBPARTITION_METHOD FROM information_schema.partitions WHERE |
417 | 124 | table_schema="test" AND table_name="t1"; | 127 | table_schema="test" AND table_name="t1"; |
418 | 125 | SUBPARTITION_METHOD | 128 | SUBPARTITION_METHOD |
419 | @@ -134,7 +137,9 @@ | |||
420 | 134 | Table Create Table | 137 | Table Create Table |
421 | 135 | t1 CREATE TABLE `t1` ( | 138 | t1 CREATE TABLE `t1` ( |
422 | 136 | `a` int(11) DEFAULT NULL | 139 | `a` int(11) DEFAULT NULL |
424 | 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 |
425 | 141 | /*!50100 PARTITION BY LIST (a) | ||
426 | 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) */ | ||
427 | 138 | SELECT PARTITION_DESCRIPTION FROM information_schema.partitions WHERE | 143 | SELECT PARTITION_DESCRIPTION FROM information_schema.partitions WHERE |
428 | 139 | table_schema = "test" AND table_name = "t1"; | 144 | table_schema = "test" AND table_name = "t1"; |
429 | 140 | PARTITION_DESCRIPTION | 145 | PARTITION_DESCRIPTION |
430 | 141 | 146 | ||
431 | === modified file 'test/mysql-test/r/key_cache.result' | |||
432 | --- test/mysql-test/r/key_cache.result 2009-04-03 19:39:12 +0000 | |||
433 | +++ test/mysql-test/r/key_cache.result 2009-06-02 01:59:10 +0000 | |||
434 | @@ -257,8 +257,6 @@ | |||
435 | 257 | drop table t1,t2,t3; | 257 | drop table t1,t2,t3; |
436 | 258 | set global keycache2.key_buffer_size=0; | 258 | set global keycache2.key_buffer_size=0; |
437 | 259 | set global keycache3.key_buffer_size=100; | 259 | set global keycache3.key_buffer_size=100; |
438 | 260 | Warnings: | ||
439 | 261 | Warning 1292 Truncated incorrect key_buffer_size value: '100' | ||
440 | 262 | set global keycache3.key_buffer_size=0; | 260 | set global keycache3.key_buffer_size=0; |
441 | 263 | create table t1 (mytext text, FULLTEXT (mytext)) engine=myisam; | 261 | create table t1 (mytext text, FULLTEXT (mytext)) engine=myisam; |
442 | 264 | insert t1 values ('aaabbb'); | 262 | insert t1 values ('aaabbb'); |
443 | 265 | 263 | ||
444 | === modified file 'test/mysql-test/r/myisam-blob.result' | |||
445 | --- test/mysql-test/r/myisam-blob.result 2007-03-13 19:06:47 +0000 | |||
446 | +++ test/mysql-test/r/myisam-blob.result 2009-06-02 17:54:03 +0000 | |||
447 | @@ -1,5 +1,5 @@ | |||
448 | 1 | drop table if exists t1; | 1 | drop table if exists t1; |
450 | 2 | set @@max_allowed_packet=20*1024*1024; | 2 | SET global max_allowed_packet=20*1024*1024; |
451 | 3 | CREATE TABLE t1 (data LONGBLOB) ENGINE=pbxt; | 3 | CREATE TABLE t1 (data LONGBLOB) ENGINE=pbxt; |
452 | 4 | INSERT INTO t1 (data) VALUES (NULL); | 4 | INSERT INTO t1 (data) VALUES (NULL); |
453 | 5 | UPDATE t1 set data=repeat('a',18*1024*1024); | 5 | UPDATE t1 set data=repeat('a',18*1024*1024); |
454 | 6 | 6 | ||
455 | === modified file 'test/mysql-test/r/mysql_client_test.result' | |||
456 | --- test/mysql-test/r/mysql_client_test.result 2006-10-23 09:14:04 +0000 | |||
457 | +++ test/mysql-test/r/mysql_client_test.result 2009-06-02 18:07:21 +0000 | |||
458 | @@ -1,1 +1,3 @@ | |||
459 | 1 | SET @old_general_log= @@global.general_log; | ||
460 | 1 | ok | 2 | ok |
461 | 3 | SET @@global.general_log= @old_general_log; | ||
462 | 2 | 4 | ||
463 | === modified file 'test/mysql-test/r/mysqldump.result' | |||
464 | --- test/mysql-test/r/mysqldump.result 2009-04-03 19:39:12 +0000 | |||
465 | +++ test/mysql-test/r/mysqldump.result 2009-06-02 18:26:32 +0000 | |||
466 | @@ -29,12 +29,12 @@ | |||
467 | 29 | CREATE TABLE t1 (a decimal(64, 20)); | 29 | CREATE TABLE t1 (a decimal(64, 20)); |
468 | 30 | INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"), | 30 | INSERT INTO t1 VALUES ("1234567890123456789012345678901234567890"), |
469 | 31 | ("0987654321098765432109876543210987654321"); | 31 | ("0987654321098765432109876543210987654321"); |
472 | 32 | SET @saved_cs_client = @@character_set_client; | 32 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
473 | 33 | SET character_set_client = utf8; | 33 | /*!40101 SET character_set_client = utf8 */; |
474 | 34 | CREATE TABLE `t1` ( | 34 | CREATE TABLE `t1` ( |
475 | 35 | `a` decimal(64,20) DEFAULT NULL | 35 | `a` decimal(64,20) DEFAULT NULL |
476 | 36 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 36 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
478 | 37 | SET character_set_client = @saved_cs_client; | 37 | /*!40101 SET character_set_client = @saved_cs_client */; |
479 | 38 | INSERT INTO `t1` VALUES ('1234567890123456789012345678901234567890.00000000000000000000'),('987654321098765432109876543210987654321.00000000000000000000'); | 38 | INSERT INTO `t1` VALUES ('1234567890123456789012345678901234567890.00000000000000000000'),('987654321098765432109876543210987654321.00000000000000000000'); |
480 | 39 | DROP TABLE t1; | 39 | DROP TABLE t1; |
481 | 40 | # | 40 | # |
482 | @@ -44,12 +44,12 @@ | |||
483 | 44 | INSERT INTO t1 VALUES ('-9e999999'); | 44 | INSERT INTO t1 VALUES ('-9e999999'); |
484 | 45 | Warnings: | 45 | Warnings: |
485 | 46 | Warning 1264 Out of range value for column 'a' at row 1 | 46 | Warning 1264 Out of range value for column 'a' at row 1 |
488 | 47 | SET @saved_cs_client = @@character_set_client; | 47 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
489 | 48 | SET character_set_client = utf8; | 48 | /*!40101 SET character_set_client = utf8 */; |
490 | 49 | CREATE TABLE `t1` ( | 49 | CREATE TABLE `t1` ( |
491 | 50 | `a` double DEFAULT NULL | 50 | `a` double DEFAULT NULL |
492 | 51 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 51 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
494 | 52 | SET character_set_client = @saved_cs_client; | 52 | /*!40101 SET character_set_client = @saved_cs_client */; |
495 | 53 | INSERT INTO `t1` VALUES (RES); | 53 | INSERT INTO `t1` VALUES (RES); |
496 | 54 | DROP TABLE t1; | 54 | DROP TABLE t1; |
497 | 55 | # | 55 | # |
498 | @@ -65,21 +65,21 @@ | |||
499 | 65 | INSERT INTO t1 VALUES ("1.2345", 2.3456); | 65 | INSERT INTO t1 VALUES ("1.2345", 2.3456); |
500 | 66 | ERROR 42S22: Unknown column '1.2345' in 'field list' | 66 | ERROR 42S22: Unknown column '1.2345' in 'field list' |
501 | 67 | SET SQL_MODE=@OLD_SQL_MODE; | 67 | SET SQL_MODE=@OLD_SQL_MODE; |
504 | 68 | SET @saved_cs_client = @@character_set_client; | 68 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
505 | 69 | SET character_set_client = utf8; | 69 | /*!40101 SET character_set_client = utf8 */; |
506 | 70 | CREATE TABLE `t1` ( | 70 | CREATE TABLE `t1` ( |
507 | 71 | `a` decimal(10,5) DEFAULT NULL, | 71 | `a` decimal(10,5) DEFAULT NULL, |
508 | 72 | `b` float DEFAULT NULL | 72 | `b` float DEFAULT NULL |
509 | 73 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 73 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
511 | 74 | SET character_set_client = @saved_cs_client; | 74 | /*!40101 SET character_set_client = @saved_cs_client */; |
512 | 75 | INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456); | 75 | INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456); |
515 | 76 | SET @saved_cs_client = @@character_set_client; | 76 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
516 | 77 | SET character_set_client = utf8; | 77 | /*!40101 SET character_set_client = utf8 */; |
517 | 78 | CREATE TABLE `t1` ( | 78 | CREATE TABLE `t1` ( |
518 | 79 | `a` decimal(10,5) DEFAULT NULL, | 79 | `a` decimal(10,5) DEFAULT NULL, |
519 | 80 | `b` float DEFAULT NULL | 80 | `b` float DEFAULT NULL |
520 | 81 | ); | 81 | ); |
522 | 82 | SET character_set_client = @saved_cs_client; | 82 | /*!40101 SET character_set_client = @saved_cs_client */; |
523 | 83 | INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456); | 83 | INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456); |
524 | 84 | 84 | ||
525 | 85 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | 85 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
526 | @@ -93,13 +93,13 @@ | |||
527 | 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' */; |
528 | 94 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 94 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
529 | 95 | DROP TABLE IF EXISTS `t1`; | 95 | DROP TABLE IF EXISTS `t1`; |
532 | 96 | SET @saved_cs_client = @@character_set_client; | 96 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
533 | 97 | SET character_set_client = utf8; | 97 | /*!40101 SET character_set_client = utf8 */; |
534 | 98 | CREATE TABLE `t1` ( | 98 | CREATE TABLE `t1` ( |
535 | 99 | `a` decimal(10,5) DEFAULT NULL, | 99 | `a` decimal(10,5) DEFAULT NULL, |
536 | 100 | `b` float DEFAULT NULL | 100 | `b` float DEFAULT NULL |
537 | 101 | ); | 101 | ); |
539 | 102 | SET character_set_client = @saved_cs_client; | 102 | /*!40101 SET character_set_client = @saved_cs_client */; |
540 | 103 | 103 | ||
541 | 104 | LOCK TABLES `t1` WRITE; | 104 | LOCK TABLES `t1` WRITE; |
542 | 105 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 105 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
543 | @@ -122,13 +122,13 @@ | |||
544 | 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 */; |
545 | 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' */; |
546 | 124 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 124 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
549 | 125 | SET @saved_cs_client = @@character_set_client; | 125 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
550 | 126 | SET character_set_client = utf8; | 126 | /*!40101 SET character_set_client = utf8 */; |
551 | 127 | CREATE TABLE `t1` ( | 127 | CREATE TABLE `t1` ( |
552 | 128 | `a` decimal(10,5) DEFAULT NULL, | 128 | `a` decimal(10,5) DEFAULT NULL, |
553 | 129 | `b` float DEFAULT NULL | 129 | `b` float DEFAULT NULL |
554 | 130 | ); | 130 | ); |
556 | 131 | SET character_set_client = @saved_cs_client; | 131 | /*!40101 SET character_set_client = @saved_cs_client */; |
557 | 132 | 132 | ||
558 | 133 | INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456); | 133 | INSERT INTO `t1` VALUES ('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456),('1.23450',2.3456); |
559 | 134 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 134 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
560 | @@ -204,12 +204,12 @@ | |||
561 | 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' */; |
562 | 205 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 205 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
563 | 206 | DROP TABLE IF EXISTS `t1`; | 206 | DROP TABLE IF EXISTS `t1`; |
566 | 207 | SET @saved_cs_client = @@character_set_client; | 207 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
567 | 208 | SET character_set_client = utf8; | 208 | /*!40101 SET character_set_client = utf8 */; |
568 | 209 | CREATE TABLE `t1` ( | 209 | CREATE TABLE `t1` ( |
569 | 210 | `a` varchar(255) DEFAULT NULL | 210 | `a` varchar(255) DEFAULT NULL |
570 | 211 | ) ENGINE=PBXT DEFAULT CHARSET=koi8r; | 211 | ) ENGINE=PBXT DEFAULT CHARSET=koi8r; |
572 | 212 | SET character_set_client = @saved_cs_client; | 212 | /*!40101 SET character_set_client = @saved_cs_client */; |
573 | 213 | 213 | ||
574 | 214 | LOCK TABLES `t1` WRITE; | 214 | LOCK TABLES `t1` WRITE; |
575 | 215 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 215 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
576 | @@ -240,12 +240,9 @@ | |||
577 | 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' */; |
578 | 241 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 241 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
579 | 242 | DROP TABLE IF EXISTS `t1`; | 242 | DROP TABLE IF EXISTS `t1`; |
580 | 243 | SET @saved_cs_client = @@character_set_client; | ||
581 | 244 | SET character_set_client = utf8; | ||
582 | 245 | CREATE TABLE `t1` ( | 243 | CREATE TABLE `t1` ( |
583 | 246 | `a` int(11) DEFAULT NULL | 244 | `a` int(11) DEFAULT NULL |
584 | 247 | ) TYPE=PBXT; | 245 | ) TYPE=PBXT; |
585 | 248 | SET character_set_client = @saved_cs_client; | ||
586 | 249 | 246 | ||
587 | 250 | LOCK TABLES `t1` WRITE; | 247 | LOCK TABLES `t1` WRITE; |
588 | 251 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 248 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
589 | @@ -266,12 +263,9 @@ | |||
590 | 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' */; |
591 | 267 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 264 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
592 | 268 | DROP TABLE IF EXISTS `t1`; | 265 | DROP TABLE IF EXISTS `t1`; |
593 | 269 | SET @saved_cs_client = @@character_set_client; | ||
594 | 270 | SET character_set_client = utf8; | ||
595 | 271 | CREATE TABLE `t1` ( | 266 | CREATE TABLE `t1` ( |
596 | 272 | `a` int(11) DEFAULT NULL | 267 | `a` int(11) DEFAULT NULL |
597 | 273 | ) TYPE=PBXT; | 268 | ) TYPE=PBXT; |
598 | 274 | SET character_set_client = @saved_cs_client; | ||
599 | 275 | 269 | ||
600 | 276 | LOCK TABLES `t1` WRITE; | 270 | LOCK TABLES `t1` WRITE; |
601 | 277 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 271 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
602 | @@ -290,12 +284,12 @@ | |||
603 | 290 | # Bug #2592 'mysqldump doesn't quote "tricky" names correctly' | 284 | # Bug #2592 'mysqldump doesn't quote "tricky" names correctly' |
604 | 291 | # | 285 | # |
605 | 292 | create table ```a` (i int); | 286 | create table ```a` (i int); |
608 | 293 | SET @saved_cs_client = @@character_set_client; | 287 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
609 | 294 | SET character_set_client = utf8; | 288 | /*!40101 SET character_set_client = utf8 */; |
610 | 295 | CREATE TABLE ```a` ( | 289 | CREATE TABLE ```a` ( |
611 | 296 | `i` int(11) DEFAULT NULL | 290 | `i` int(11) DEFAULT NULL |
612 | 297 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 291 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
614 | 298 | SET character_set_client = @saved_cs_client; | 292 | /*!40101 SET character_set_client = @saved_cs_client */; |
615 | 299 | drop table ```a`; | 293 | drop table ```a`; |
616 | 300 | # | 294 | # |
617 | 301 | # Bug #2591 "mysqldump quotes names inconsistently" | 295 | # Bug #2591 "mysqldump quotes names inconsistently" |
618 | @@ -313,12 +307,12 @@ | |||
619 | 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' */; |
620 | 314 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 308 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
621 | 315 | DROP TABLE IF EXISTS `t1`; | 309 | DROP TABLE IF EXISTS `t1`; |
624 | 316 | SET @saved_cs_client = @@character_set_client; | 310 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
625 | 317 | SET character_set_client = utf8; | 311 | /*!40101 SET character_set_client = utf8 */; |
626 | 318 | CREATE TABLE `t1` ( | 312 | CREATE TABLE `t1` ( |
627 | 319 | `a` int(11) DEFAULT NULL | 313 | `a` int(11) DEFAULT NULL |
628 | 320 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 314 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
630 | 321 | SET character_set_client = @saved_cs_client; | 315 | /*!40101 SET character_set_client = @saved_cs_client */; |
631 | 322 | 316 | ||
632 | 323 | LOCK TABLES `t1` WRITE; | 317 | LOCK TABLES `t1` WRITE; |
633 | 324 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 318 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
634 | @@ -341,12 +335,12 @@ | |||
635 | 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' */; |
636 | 342 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 336 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
637 | 343 | DROP TABLE IF EXISTS "t1"; | 337 | DROP TABLE IF EXISTS "t1"; |
640 | 344 | SET @saved_cs_client = @@character_set_client; | 338 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
641 | 345 | SET character_set_client = utf8; | 339 | /*!40101 SET character_set_client = utf8 */; |
642 | 346 | CREATE TABLE "t1" ( | 340 | CREATE TABLE "t1" ( |
643 | 347 | "a" int(11) DEFAULT NULL | 341 | "a" int(11) DEFAULT NULL |
644 | 348 | ); | 342 | ); |
646 | 349 | SET character_set_client = @saved_cs_client; | 343 | /*!40101 SET character_set_client = @saved_cs_client */; |
647 | 350 | 344 | ||
648 | 351 | LOCK TABLES "t1" WRITE; | 345 | LOCK TABLES "t1" WRITE; |
649 | 352 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; | 346 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; |
650 | @@ -372,12 +366,12 @@ | |||
651 | 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' */; |
652 | 373 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 367 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
653 | 374 | DROP TABLE IF EXISTS `t1`; | 368 | DROP TABLE IF EXISTS `t1`; |
656 | 375 | SET @saved_cs_client = @@character_set_client; | 369 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
657 | 376 | SET character_set_client = utf8; | 370 | /*!40101 SET character_set_client = utf8 */; |
658 | 377 | CREATE TABLE `t1` ( | 371 | CREATE TABLE `t1` ( |
659 | 378 | `a` int(11) DEFAULT NULL | 372 | `a` int(11) DEFAULT NULL |
660 | 379 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 373 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
662 | 380 | SET character_set_client = @saved_cs_client; | 374 | /*!40101 SET character_set_client = @saved_cs_client */; |
663 | 381 | 375 | ||
664 | 382 | LOCK TABLES `t1` WRITE; | 376 | LOCK TABLES `t1` WRITE; |
665 | 383 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 377 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
666 | @@ -400,12 +394,12 @@ | |||
667 | 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' */; |
668 | 401 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 395 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
669 | 402 | DROP TABLE IF EXISTS "t1"; | 396 | DROP TABLE IF EXISTS "t1"; |
672 | 403 | SET @saved_cs_client = @@character_set_client; | 397 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
673 | 404 | SET character_set_client = utf8; | 398 | /*!40101 SET character_set_client = utf8 */; |
674 | 405 | CREATE TABLE "t1" ( | 399 | CREATE TABLE "t1" ( |
675 | 406 | "a" int(11) DEFAULT NULL | 400 | "a" int(11) DEFAULT NULL |
676 | 407 | ); | 401 | ); |
678 | 408 | SET character_set_client = @saved_cs_client; | 402 | /*!40101 SET character_set_client = @saved_cs_client */; |
679 | 409 | 403 | ||
680 | 410 | LOCK TABLES "t1" WRITE; | 404 | LOCK TABLES "t1" WRITE; |
681 | 411 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; | 405 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; |
682 | @@ -435,12 +429,12 @@ | |||
683 | 435 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; | 429 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; |
684 | 436 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 430 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
685 | 437 | DROP TABLE IF EXISTS `t1`; | 431 | DROP TABLE IF EXISTS `t1`; |
688 | 438 | SET @saved_cs_client = @@character_set_client; | 432 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
689 | 439 | SET character_set_client = utf8; | 433 | /*!40101 SET character_set_client = utf8 */; |
690 | 440 | CREATE TABLE `t1` ( | 434 | CREATE TABLE `t1` ( |
691 | 441 | `a` int(11) DEFAULT NULL | 435 | `a` int(11) DEFAULT NULL |
692 | 442 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 436 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
694 | 443 | SET character_set_client = @saved_cs_client; | 437 | /*!40101 SET character_set_client = @saved_cs_client */; |
695 | 444 | 438 | ||
696 | 445 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 439 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
697 | 446 | 440 | ||
698 | @@ -529,12 +523,12 @@ | |||
699 | 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' */; |
700 | 530 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 524 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
701 | 531 | DROP TABLE IF EXISTS `t1`; | 525 | DROP TABLE IF EXISTS `t1`; |
704 | 532 | SET @saved_cs_client = @@character_set_client; | 526 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
705 | 533 | SET character_set_client = utf8; | 527 | /*!40101 SET character_set_client = utf8 */; |
706 | 534 | CREATE TABLE `t1` ( | 528 | CREATE TABLE `t1` ( |
707 | 535 | `a` char(10) DEFAULT NULL | 529 | `a` char(10) DEFAULT NULL |
708 | 536 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 530 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
710 | 537 | SET character_set_client = @saved_cs_client; | 531 | /*!40101 SET character_set_client = @saved_cs_client */; |
711 | 538 | 532 | ||
712 | 539 | LOCK TABLES `t1` WRITE; | 533 | LOCK TABLES `t1` WRITE; |
713 | 540 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 534 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
714 | @@ -565,64 +559,55 @@ | |||
715 | 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' */; |
716 | 566 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 560 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
717 | 567 | DROP TABLE IF EXISTS `t1`; | 561 | DROP TABLE IF EXISTS `t1`; |
776 | 568 | SET @saved_cs_client = @@character_set_client; | 562 | CREATE TABLE `t1` ( |
777 | 569 | SET character_set_client = utf8; | 563 | `a` char(10) DEFAULT NULL |
778 | 570 | CREATE TABLE `t1` ( | 564 | ) TYPE=PBXT; |
779 | 571 | `a` char(10) DEFAULT NULL | 565 | |
780 | 572 | ) TYPE=PBXT; | 566 | LOCK TABLES `t1` WRITE; |
781 | 573 | SET character_set_client = @saved_cs_client; | 567 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
782 | 574 | 568 | INSERT INTO `t1` VALUES ('Ž™šá'); | |
783 | 575 | LOCK TABLES `t1` WRITE; | 569 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; |
784 | 576 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 570 | UNLOCK TABLES; |
785 | 577 | INSERT INTO `t1` VALUES ('Ž™šá'); | 571 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
786 | 578 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | 572 | |
787 | 579 | UNLOCK TABLES; | 573 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
788 | 580 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 574 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
789 | 581 | 575 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | |
790 | 582 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | 576 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
791 | 583 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | 577 | |
792 | 584 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | 578 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
793 | 585 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 579 | /*!40103 SET TIME_ZONE='+00:00' */; |
794 | 586 | 580 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | |
795 | 587 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | 581 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
796 | 588 | /*!40103 SET TIME_ZONE='+00:00' */; | 582 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; |
797 | 589 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | 583 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
798 | 590 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | 584 | DROP TABLE IF EXISTS `t1`; |
799 | 591 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; | 585 | CREATE TABLE `t1` ( |
800 | 592 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 586 | `a` char(10) DEFAULT NULL |
801 | 593 | DROP TABLE IF EXISTS `t1`; | 587 | ) TYPE=PBXT; |
802 | 594 | SET @saved_cs_client = @@character_set_client; | 588 | |
803 | 595 | SET character_set_client = utf8; | 589 | LOCK TABLES `t1` WRITE; |
804 | 596 | CREATE TABLE `t1` ( | 590 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
805 | 597 | `a` char(10) DEFAULT NULL | 591 | INSERT INTO `t1` VALUES ('Ž™šá'); |
806 | 598 | ) TYPE=PBXT; | 592 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; |
807 | 599 | SET character_set_client = @saved_cs_client; | 593 | UNLOCK TABLES; |
808 | 600 | 594 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | |
809 | 601 | LOCK TABLES `t1` WRITE; | 595 | |
810 | 602 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 596 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
811 | 603 | INSERT INTO `t1` VALUES ('Ž™šá'); | 597 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
812 | 604 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | 598 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
813 | 605 | UNLOCK TABLES; | 599 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
814 | 606 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 600 | |
815 | 607 | 601 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | |
816 | 608 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | 602 | /*!40103 SET TIME_ZONE='+00:00' */; |
817 | 609 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | 603 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
818 | 610 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; | 604 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
819 | 611 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 605 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; |
820 | 612 | 606 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
821 | 613 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; | 607 | DROP TABLE IF EXISTS `t1`; |
822 | 614 | /*!40103 SET TIME_ZONE='+00:00' */; | 608 | CREATE TABLE `t1` ( |
823 | 615 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; | 609 | `a` char(10) DEFAULT NULL |
824 | 616 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | 610 | ) TYPE=PBXT; |
767 | 617 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL323' */; | ||
768 | 618 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | ||
769 | 619 | DROP TABLE IF EXISTS `t1`; | ||
770 | 620 | SET @saved_cs_client = @@character_set_client; | ||
771 | 621 | SET character_set_client = utf8; | ||
772 | 622 | CREATE TABLE `t1` ( | ||
773 | 623 | `a` char(10) DEFAULT NULL | ||
774 | 624 | ) TYPE=PBXT; | ||
775 | 625 | SET character_set_client = @saved_cs_client; | ||
825 | 626 | 611 | ||
826 | 627 | LOCK TABLES `t1` WRITE; | 612 | LOCK TABLES `t1` WRITE; |
827 | 628 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 613 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
828 | @@ -656,12 +641,12 @@ | |||
829 | 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' */; |
830 | 657 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 642 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
831 | 658 | DROP TABLE IF EXISTS `t2`; | 643 | DROP TABLE IF EXISTS `t2`; |
834 | 659 | SET @saved_cs_client = @@character_set_client; | 644 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
835 | 660 | SET character_set_client = utf8; | 645 | /*!40101 SET character_set_client = utf8 */; |
836 | 661 | CREATE TABLE `t2` ( | 646 | CREATE TABLE `t2` ( |
837 | 662 | `a` int(11) DEFAULT NULL | 647 | `a` int(11) DEFAULT NULL |
838 | 663 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 648 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
840 | 664 | SET character_set_client = @saved_cs_client; | 649 | /*!40101 SET character_set_client = @saved_cs_client */; |
841 | 665 | 650 | ||
842 | 666 | LOCK TABLES `t2` WRITE; | 651 | LOCK TABLES `t2` WRITE; |
843 | 667 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | 652 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; |
844 | @@ -697,12 +682,12 @@ | |||
845 | 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' */; |
846 | 698 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 683 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
847 | 699 | DROP TABLE IF EXISTS `t1`; | 684 | DROP TABLE IF EXISTS `t1`; |
850 | 700 | SET @saved_cs_client = @@character_set_client; | 685 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
851 | 701 | SET character_set_client = utf8; | 686 | /*!40101 SET character_set_client = utf8 */; |
852 | 702 | CREATE TABLE `t1` ( | 687 | CREATE TABLE `t1` ( |
853 | 703 | `b` blob | 688 | `b` blob |
854 | 704 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 689 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
856 | 705 | SET character_set_client = @saved_cs_client; | 690 | /*!40101 SET character_set_client = @saved_cs_client */; |
857 | 706 | 691 | ||
858 | 707 | LOCK TABLES `t1` WRITE; | 692 | LOCK TABLES `t1` WRITE; |
859 | 708 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 693 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
860 | @@ -738,12 +723,12 @@ | |||
861 | 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' */; |
862 | 739 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 724 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
863 | 740 | DROP TABLE IF EXISTS `t1`; | 725 | DROP TABLE IF EXISTS `t1`; |
866 | 741 | SET @saved_cs_client = @@character_set_client; | 726 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
867 | 742 | SET character_set_client = utf8; | 727 | /*!40101 SET character_set_client = utf8 */; |
868 | 743 | CREATE TABLE `t1` ( | 728 | CREATE TABLE `t1` ( |
869 | 744 | `a` int(11) DEFAULT NULL | 729 | `a` int(11) DEFAULT NULL |
870 | 745 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 730 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
872 | 746 | SET character_set_client = @saved_cs_client; | 731 | /*!40101 SET character_set_client = @saved_cs_client */; |
873 | 747 | 732 | ||
874 | 748 | LOCK TABLES `t1` WRITE; | 733 | LOCK TABLES `t1` WRITE; |
875 | 749 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 734 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
876 | @@ -772,12 +757,12 @@ | |||
877 | 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' */; |
878 | 773 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 758 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
879 | 774 | DROP TABLE IF EXISTS `t1`; | 759 | DROP TABLE IF EXISTS `t1`; |
882 | 775 | SET @saved_cs_client = @@character_set_client; | 760 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
883 | 776 | SET character_set_client = utf8; | 761 | /*!40101 SET character_set_client = utf8 */; |
884 | 777 | CREATE TABLE `t1` ( | 762 | CREATE TABLE `t1` ( |
885 | 778 | `a` int(11) DEFAULT NULL | 763 | `a` int(11) DEFAULT NULL |
886 | 779 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 764 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
888 | 780 | SET character_set_client = @saved_cs_client; | 765 | /*!40101 SET character_set_client = @saved_cs_client */; |
889 | 781 | 766 | ||
890 | 782 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 767 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
891 | 783 | INSERT IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6); | 768 | INSERT IGNORE INTO `t1` VALUES (1),(2),(3),(4),(5),(6); |
892 | @@ -1141,8 +1126,8 @@ | |||
893 | 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' */; |
894 | 1142 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1127 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
895 | 1143 | DROP TABLE IF EXISTS `t1`; | 1128 | DROP TABLE IF EXISTS `t1`; |
898 | 1144 | SET @saved_cs_client = @@character_set_client; | 1129 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
899 | 1145 | SET character_set_client = utf8; | 1130 | /*!40101 SET character_set_client = utf8 */; |
900 | 1146 | CREATE TABLE `t1` ( | 1131 | CREATE TABLE `t1` ( |
901 | 1147 | `F_c4ca4238a0b923820dcc509a6f75849b` int(11) DEFAULT NULL, | 1132 | `F_c4ca4238a0b923820dcc509a6f75849b` int(11) DEFAULT NULL, |
902 | 1148 | `F_c81e728d9d4c2f636f067f89cc14862c` int(11) DEFAULT NULL, | 1133 | `F_c81e728d9d4c2f636f067f89cc14862c` int(11) DEFAULT NULL, |
903 | @@ -1475,7 +1460,7 @@ | |||
904 | 1475 | `F_6faa8040da20ef399b63a72d0e4ab575` int(11) DEFAULT NULL, | 1460 | `F_6faa8040da20ef399b63a72d0e4ab575` int(11) DEFAULT NULL, |
905 | 1476 | `F_fe73f687e5bc5280214e0486b273a5f9` int(11) DEFAULT NULL | 1461 | `F_fe73f687e5bc5280214e0486b273a5f9` int(11) DEFAULT NULL |
906 | 1477 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1462 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
908 | 1478 | SET character_set_client = @saved_cs_client; | 1463 | /*!40101 SET character_set_client = @saved_cs_client */; |
909 | 1479 | 1464 | ||
910 | 1480 | LOCK TABLES `t1` WRITE; | 1465 | LOCK TABLES `t1` WRITE; |
911 | 1481 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 1466 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
912 | @@ -1516,12 +1501,12 @@ | |||
913 | 1516 | 1501 | ||
914 | 1517 | USE `test`; | 1502 | USE `test`; |
915 | 1518 | DROP TABLE IF EXISTS `t1`; | 1503 | DROP TABLE IF EXISTS `t1`; |
918 | 1519 | SET @saved_cs_client = @@character_set_client; | 1504 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
919 | 1520 | SET character_set_client = utf8; | 1505 | /*!40101 SET character_set_client = utf8 */; |
920 | 1521 | CREATE TABLE `t1` ( | 1506 | CREATE TABLE `t1` ( |
921 | 1522 | `a` int(11) DEFAULT NULL | 1507 | `a` int(11) DEFAULT NULL |
922 | 1523 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1508 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
924 | 1524 | SET character_set_client = @saved_cs_client; | 1509 | /*!40101 SET character_set_client = @saved_cs_client */; |
925 | 1525 | 1510 | ||
926 | 1526 | LOCK TABLES `t1` WRITE; | 1511 | LOCK TABLES `t1` WRITE; |
927 | 1527 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 1512 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
928 | @@ -1560,19 +1545,19 @@ | |||
929 | 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' */; |
930 | 1561 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1546 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
931 | 1562 | DROP TABLE IF EXISTS `t1`; | 1547 | DROP TABLE IF EXISTS `t1`; |
934 | 1563 | SET @saved_cs_client = @@character_set_client; | 1548 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
935 | 1564 | SET character_set_client = utf8; | 1549 | /*!40101 SET character_set_client = utf8 */; |
936 | 1565 | CREATE TABLE `t1` ( | 1550 | CREATE TABLE `t1` ( |
937 | 1566 | `a` int(11) DEFAULT NULL | 1551 | `a` int(11) DEFAULT NULL |
938 | 1567 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1552 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
940 | 1568 | SET character_set_client = @saved_cs_client; | 1553 | /*!40101 SET character_set_client = @saved_cs_client */; |
941 | 1569 | DROP TABLE IF EXISTS `t2`; | 1554 | DROP TABLE IF EXISTS `t2`; |
944 | 1570 | SET @saved_cs_client = @@character_set_client; | 1555 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
945 | 1571 | SET character_set_client = utf8; | 1556 | /*!40101 SET character_set_client = utf8 */; |
946 | 1572 | CREATE TABLE `t2` ( | 1557 | CREATE TABLE `t2` ( |
947 | 1573 | `a` int(11) DEFAULT NULL | 1558 | `a` int(11) DEFAULT NULL |
948 | 1574 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1559 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
950 | 1575 | SET character_set_client = @saved_cs_client; | 1560 | /*!40101 SET character_set_client = @saved_cs_client */; |
951 | 1576 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 1561 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
952 | 1577 | 1562 | ||
953 | 1578 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | 1563 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
954 | @@ -1595,19 +1580,19 @@ | |||
955 | 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' */; |
956 | 1596 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1581 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
957 | 1597 | DROP TABLE IF EXISTS `t1`; | 1582 | DROP TABLE IF EXISTS `t1`; |
960 | 1598 | SET @saved_cs_client = @@character_set_client; | 1583 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
961 | 1599 | SET character_set_client = utf8; | 1584 | /*!40101 SET character_set_client = utf8 */; |
962 | 1600 | CREATE TABLE `t1` ( | 1585 | CREATE TABLE `t1` ( |
963 | 1601 | `a` int(11) DEFAULT NULL | 1586 | `a` int(11) DEFAULT NULL |
964 | 1602 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1587 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
966 | 1603 | SET character_set_client = @saved_cs_client; | 1588 | /*!40101 SET character_set_client = @saved_cs_client */; |
967 | 1604 | DROP TABLE IF EXISTS `t2`; | 1589 | DROP TABLE IF EXISTS `t2`; |
970 | 1605 | SET @saved_cs_client = @@character_set_client; | 1590 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
971 | 1606 | SET character_set_client = utf8; | 1591 | /*!40101 SET character_set_client = utf8 */; |
972 | 1607 | CREATE TABLE `t2` ( | 1592 | CREATE TABLE `t2` ( |
973 | 1608 | `a` int(11) DEFAULT NULL | 1593 | `a` int(11) DEFAULT NULL |
974 | 1609 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1594 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
976 | 1610 | SET character_set_client = @saved_cs_client; | 1595 | /*!40101 SET character_set_client = @saved_cs_client */; |
977 | 1611 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 1596 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
978 | 1612 | 1597 | ||
979 | 1613 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | 1598 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
980 | @@ -1807,26 +1792,26 @@ | |||
981 | 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' */; |
982 | 1808 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1793 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
983 | 1809 | DROP TABLE IF EXISTS `t3`; | 1794 | DROP TABLE IF EXISTS `t3`; |
986 | 1810 | SET @saved_cs_client = @@character_set_client; | 1795 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
987 | 1811 | SET character_set_client = utf8; | 1796 | /*!40101 SET character_set_client = utf8 */; |
988 | 1812 | CREATE TABLE `t3` ( | 1797 | CREATE TABLE `t3` ( |
989 | 1813 | `a` int(11) DEFAULT NULL | 1798 | `a` int(11) DEFAULT NULL |
990 | 1814 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1799 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
992 | 1815 | SET character_set_client = @saved_cs_client; | 1800 | /*!40101 SET character_set_client = @saved_cs_client */; |
993 | 1816 | DROP TABLE IF EXISTS `t1`; | 1801 | DROP TABLE IF EXISTS `t1`; |
996 | 1817 | SET @saved_cs_client = @@character_set_client; | 1802 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
997 | 1818 | SET character_set_client = utf8; | 1803 | /*!40101 SET character_set_client = utf8 */; |
998 | 1819 | CREATE TABLE `t1` ( | 1804 | CREATE TABLE `t1` ( |
999 | 1820 | `a` int(11) DEFAULT NULL | 1805 | `a` int(11) DEFAULT NULL |
1000 | 1821 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1806 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1002 | 1822 | SET character_set_client = @saved_cs_client; | 1807 | /*!40101 SET character_set_client = @saved_cs_client */; |
1003 | 1823 | DROP TABLE IF EXISTS `t2`; | 1808 | DROP TABLE IF EXISTS `t2`; |
1006 | 1824 | SET @saved_cs_client = @@character_set_client; | 1809 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1007 | 1825 | SET character_set_client = utf8; | 1810 | /*!40101 SET character_set_client = utf8 */; |
1008 | 1826 | CREATE TABLE `t2` ( | 1811 | CREATE TABLE `t2` ( |
1009 | 1827 | `a` int(11) DEFAULT NULL | 1812 | `a` int(11) DEFAULT NULL |
1010 | 1828 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1813 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1012 | 1829 | SET character_set_client = @saved_cs_client; | 1814 | /*!40101 SET character_set_client = @saved_cs_client */; |
1013 | 1830 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 1815 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
1014 | 1831 | 1816 | ||
1015 | 1832 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | 1817 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
1016 | @@ -1856,12 +1841,12 @@ | |||
1017 | 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' */; |
1018 | 1857 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1842 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1019 | 1858 | DROP TABLE IF EXISTS `t1`; | 1843 | DROP TABLE IF EXISTS `t1`; |
1022 | 1859 | SET @saved_cs_client = @@character_set_client; | 1844 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1023 | 1860 | SET character_set_client = utf8; | 1845 | /*!40101 SET character_set_client = utf8 */; |
1024 | 1861 | CREATE TABLE `t1` ( | 1846 | CREATE TABLE `t1` ( |
1025 | 1862 | `a` int(11) DEFAULT NULL | 1847 | `a` int(11) DEFAULT NULL |
1026 | 1863 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1848 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1028 | 1864 | SET character_set_client = @saved_cs_client; | 1849 | /*!40101 SET character_set_client = @saved_cs_client */; |
1029 | 1865 | 1850 | ||
1030 | 1866 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | 1851 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
1031 | 1867 | 1852 | ||
1032 | @@ -1892,15 +1877,15 @@ | |||
1033 | 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' */; |
1034 | 1893 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1878 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1035 | 1894 | DROP TABLE IF EXISTS "t1"; | 1879 | DROP TABLE IF EXISTS "t1"; |
1038 | 1895 | SET @saved_cs_client = @@character_set_client; | 1880 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1039 | 1896 | SET character_set_client = utf8; | 1881 | /*!40101 SET character_set_client = utf8 */; |
1040 | 1897 | CREATE TABLE "t1" ( | 1882 | CREATE TABLE "t1" ( |
1041 | 1898 | "a b" int(11) NOT NULL DEFAULT '0', | 1883 | "a b" int(11) NOT NULL DEFAULT '0', |
1042 | 1899 | "c""d" int(11) NOT NULL DEFAULT '0', | 1884 | "c""d" int(11) NOT NULL DEFAULT '0', |
1043 | 1900 | "e`f" int(11) NOT NULL DEFAULT '0', | 1885 | "e`f" int(11) NOT NULL DEFAULT '0', |
1044 | 1901 | PRIMARY KEY ("a b","c""d","e`f") | 1886 | PRIMARY KEY ("a b","c""d","e`f") |
1045 | 1902 | ); | 1887 | ); |
1047 | 1903 | SET character_set_client = @saved_cs_client; | 1888 | /*!40101 SET character_set_client = @saved_cs_client */; |
1048 | 1904 | 1889 | ||
1049 | 1905 | LOCK TABLES "t1" WRITE; | 1890 | LOCK TABLES "t1" WRITE; |
1050 | 1906 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; | 1891 | /*!40000 ALTER TABLE "t1" DISABLE KEYS */; |
1051 | @@ -1926,15 +1911,15 @@ | |||
1052 | 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' */; |
1053 | 1927 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1912 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1054 | 1928 | DROP TABLE IF EXISTS `t1`; | 1913 | DROP TABLE IF EXISTS `t1`; |
1057 | 1929 | SET @saved_cs_client = @@character_set_client; | 1914 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1058 | 1930 | SET character_set_client = utf8; | 1915 | /*!40101 SET character_set_client = utf8 */; |
1059 | 1931 | CREATE TABLE `t1` ( | 1916 | CREATE TABLE `t1` ( |
1060 | 1932 | `a b` int(11) NOT NULL DEFAULT '0', | 1917 | `a b` int(11) NOT NULL DEFAULT '0', |
1061 | 1933 | `c"d` int(11) NOT NULL DEFAULT '0', | 1918 | `c"d` int(11) NOT NULL DEFAULT '0', |
1062 | 1934 | `e``f` int(11) NOT NULL DEFAULT '0', | 1919 | `e``f` int(11) NOT NULL DEFAULT '0', |
1063 | 1935 | PRIMARY KEY (`a b`,`c"d`,`e``f`) | 1920 | PRIMARY KEY (`a b`,`c"d`,`e``f`) |
1064 | 1936 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1921 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1066 | 1937 | SET character_set_client = @saved_cs_client; | 1922 | /*!40101 SET character_set_client = @saved_cs_client */; |
1067 | 1938 | 1923 | ||
1068 | 1939 | LOCK TABLES `t1` WRITE; | 1924 | LOCK TABLES `t1` WRITE; |
1069 | 1940 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 1925 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1070 | @@ -1980,13 +1965,13 @@ | |||
1071 | 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' */; |
1072 | 1981 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 1966 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1073 | 1982 | DROP TABLE IF EXISTS `t2`; | 1967 | DROP TABLE IF EXISTS `t2`; |
1076 | 1983 | SET @saved_cs_client = @@character_set_client; | 1968 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1077 | 1984 | SET character_set_client = utf8; | 1969 | /*!40101 SET character_set_client = utf8 */; |
1078 | 1985 | CREATE TABLE `t2` ( | 1970 | CREATE TABLE `t2` ( |
1079 | 1986 | `a` varchar(30) DEFAULT NULL, | 1971 | `a` varchar(30) DEFAULT NULL, |
1080 | 1987 | KEY `a` (`a`(5)) | 1972 | KEY `a` (`a`(5)) |
1081 | 1988 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 1973 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1083 | 1989 | SET character_set_client = @saved_cs_client; | 1974 | /*!40101 SET character_set_client = @saved_cs_client */; |
1084 | 1990 | 1975 | ||
1085 | 1991 | LOCK TABLES `t2` WRITE; | 1976 | LOCK TABLES `t2` WRITE; |
1086 | 1992 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | 1977 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; |
1087 | @@ -2079,12 +2064,12 @@ | |||
1088 | 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' */; |
1089 | 2080 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 2065 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1090 | 2081 | DROP TABLE IF EXISTS `t1`; | 2066 | DROP TABLE IF EXISTS `t1`; |
1093 | 2082 | SET @saved_cs_client = @@character_set_client; | 2067 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1094 | 2083 | SET character_set_client = utf8; | 2068 | /*!40101 SET character_set_client = utf8 */; |
1095 | 2084 | CREATE TABLE `t1` ( | 2069 | CREATE TABLE `t1` ( |
1096 | 2085 | `a` int(11) DEFAULT NULL | 2070 | `a` int(11) DEFAULT NULL |
1097 | 2086 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2071 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1099 | 2087 | SET character_set_client = @saved_cs_client; | 2072 | /*!40101 SET character_set_client = @saved_cs_client */; |
1100 | 2088 | 2073 | ||
1101 | 2089 | LOCK TABLES `t1` WRITE; | 2074 | LOCK TABLES `t1` WRITE; |
1102 | 2090 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2075 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1103 | @@ -2151,13 +2136,13 @@ | |||
1104 | 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' */; |
1105 | 2152 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 2137 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1106 | 2153 | DROP TABLE IF EXISTS `t2`; | 2138 | DROP TABLE IF EXISTS `t2`; |
1109 | 2154 | SET @saved_cs_client = @@character_set_client; | 2139 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1110 | 2155 | SET character_set_client = utf8; | 2140 | /*!40101 SET character_set_client = utf8 */; |
1111 | 2156 | CREATE TABLE `t2` ( | 2141 | CREATE TABLE `t2` ( |
1112 | 2157 | `a` varchar(30) DEFAULT NULL, | 2142 | `a` varchar(30) DEFAULT NULL, |
1113 | 2158 | KEY `a` (`a`(5)) | 2143 | KEY `a` (`a`(5)) |
1114 | 2159 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2144 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1116 | 2160 | SET character_set_client = @saved_cs_client; | 2145 | /*!40101 SET character_set_client = @saved_cs_client */; |
1117 | 2161 | 2146 | ||
1118 | 2162 | LOCK TABLES `t2` WRITE; | 2147 | LOCK TABLES `t2` WRITE; |
1119 | 2163 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | 2148 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; |
1120 | @@ -2218,12 +2203,12 @@ | |||
1121 | 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' */; |
1122 | 2219 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 2204 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1123 | 2220 | DROP TABLE IF EXISTS `t1`; | 2205 | DROP TABLE IF EXISTS `t1`; |
1126 | 2221 | SET @saved_cs_client = @@character_set_client; | 2206 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1127 | 2222 | SET character_set_client = utf8; | 2207 | /*!40101 SET character_set_client = utf8 */; |
1128 | 2223 | CREATE TABLE `t1` ( | 2208 | CREATE TABLE `t1` ( |
1129 | 2224 | `a` char(10) DEFAULT NULL | 2209 | `a` char(10) DEFAULT NULL |
1130 | 2225 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2210 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1132 | 2226 | SET character_set_client = @saved_cs_client; | 2211 | /*!40101 SET character_set_client = @saved_cs_client */; |
1133 | 2227 | 2212 | ||
1134 | 2228 | LOCK TABLES `t1` WRITE; | 2213 | LOCK TABLES `t1` WRITE; |
1135 | 2229 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2214 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1136 | @@ -2264,14 +2249,14 @@ | |||
1137 | 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' */; |
1138 | 2265 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 2250 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1139 | 2266 | DROP TABLE IF EXISTS `t1`; | 2251 | DROP TABLE IF EXISTS `t1`; |
1142 | 2267 | SET @saved_cs_client = @@character_set_client; | 2252 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1143 | 2268 | SET character_set_client = utf8; | 2253 | /*!40101 SET character_set_client = utf8 */; |
1144 | 2269 | CREATE TABLE `t1` ( | 2254 | CREATE TABLE `t1` ( |
1145 | 2270 | `a` int(11) DEFAULT NULL, | 2255 | `a` int(11) DEFAULT NULL, |
1146 | 2271 | `b` int(11) DEFAULT NULL, | 2256 | `b` int(11) DEFAULT NULL, |
1147 | 2272 | `c` varchar(30) DEFAULT NULL | 2257 | `c` varchar(30) DEFAULT NULL |
1148 | 2273 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2258 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1150 | 2274 | SET character_set_client = @saved_cs_client; | 2259 | /*!40101 SET character_set_client = @saved_cs_client */; |
1151 | 2275 | 2260 | ||
1152 | 2276 | LOCK TABLES `t1` WRITE; | 2261 | LOCK TABLES `t1` WRITE; |
1153 | 2277 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2262 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1154 | @@ -2423,13 +2408,13 @@ | |||
1155 | 2423 | 2408 | ||
1156 | 2424 | USE `test`; | 2409 | USE `test`; |
1157 | 2425 | DROP TABLE IF EXISTS `t1`; | 2410 | DROP TABLE IF EXISTS `t1`; |
1160 | 2426 | SET @saved_cs_client = @@character_set_client; | 2411 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1161 | 2427 | SET character_set_client = utf8; | 2412 | /*!40101 SET character_set_client = utf8 */; |
1162 | 2428 | CREATE TABLE `t1` ( | 2413 | CREATE TABLE `t1` ( |
1163 | 2429 | `a` int(11) DEFAULT NULL, | 2414 | `a` int(11) DEFAULT NULL, |
1164 | 2430 | `b` bigint(20) DEFAULT NULL | 2415 | `b` bigint(20) DEFAULT NULL |
1165 | 2431 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2416 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1167 | 2432 | SET character_set_client = @saved_cs_client; | 2417 | /*!40101 SET character_set_client = @saved_cs_client */; |
1168 | 2433 | 2418 | ||
1169 | 2434 | LOCK TABLES `t1` WRITE; | 2419 | LOCK TABLES `t1` WRITE; |
1170 | 2435 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2420 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1171 | @@ -2495,12 +2480,12 @@ | |||
1172 | 2495 | /*!50003 SET character_set_results = @saved_cs_results */ ; | 2480 | /*!50003 SET character_set_results = @saved_cs_results */ ; |
1173 | 2496 | /*!50003 SET collation_connection = @saved_col_connection */ ; | 2481 | /*!50003 SET collation_connection = @saved_col_connection */ ; |
1174 | 2497 | DROP TABLE IF EXISTS `t2`; | 2482 | DROP TABLE IF EXISTS `t2`; |
1177 | 2498 | SET @saved_cs_client = @@character_set_client; | 2483 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1178 | 2499 | SET character_set_client = utf8; | 2484 | /*!40101 SET character_set_client = utf8 */; |
1179 | 2500 | CREATE TABLE `t2` ( | 2485 | CREATE TABLE `t2` ( |
1180 | 2501 | `a` int(11) DEFAULT NULL | 2486 | `a` int(11) DEFAULT NULL |
1181 | 2502 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2487 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1183 | 2503 | SET character_set_client = @saved_cs_client; | 2488 | /*!40101 SET character_set_client = @saved_cs_client */; |
1184 | 2504 | 2489 | ||
1185 | 2505 | LOCK TABLES `t2` WRITE; | 2490 | LOCK TABLES `t2` WRITE; |
1186 | 2506 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | 2491 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; |
1187 | @@ -2552,13 +2537,13 @@ | |||
1188 | 2552 | 2537 | ||
1189 | 2553 | USE `test`; | 2538 | USE `test`; |
1190 | 2554 | DROP TABLE IF EXISTS `t1`; | 2539 | DROP TABLE IF EXISTS `t1`; |
1193 | 2555 | SET @saved_cs_client = @@character_set_client; | 2540 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1194 | 2556 | SET character_set_client = utf8; | 2541 | /*!40101 SET character_set_client = utf8 */; |
1195 | 2557 | CREATE TABLE `t1` ( | 2542 | CREATE TABLE `t1` ( |
1196 | 2558 | `a` int(11) DEFAULT NULL, | 2543 | `a` int(11) DEFAULT NULL, |
1197 | 2559 | `b` bigint(20) DEFAULT NULL | 2544 | `b` bigint(20) DEFAULT NULL |
1198 | 2560 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2545 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1200 | 2561 | SET character_set_client = @saved_cs_client; | 2546 | /*!40101 SET character_set_client = @saved_cs_client */; |
1201 | 2562 | 2547 | ||
1202 | 2563 | LOCK TABLES `t1` WRITE; | 2548 | LOCK TABLES `t1` WRITE; |
1203 | 2564 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2549 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1204 | @@ -2566,12 +2551,12 @@ | |||
1205 | 2566 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; | 2551 | /*!40000 ALTER TABLE `t1` ENABLE KEYS */; |
1206 | 2567 | UNLOCK TABLES; | 2552 | UNLOCK TABLES; |
1207 | 2568 | DROP TABLE IF EXISTS `t2`; | 2553 | DROP TABLE IF EXISTS `t2`; |
1210 | 2569 | SET @saved_cs_client = @@character_set_client; | 2554 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1211 | 2570 | SET character_set_client = utf8; | 2555 | /*!40101 SET character_set_client = utf8 */; |
1212 | 2571 | CREATE TABLE `t2` ( | 2556 | CREATE TABLE `t2` ( |
1213 | 2572 | `a` int(11) DEFAULT NULL | 2557 | `a` int(11) DEFAULT NULL |
1214 | 2573 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2558 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1216 | 2574 | SET character_set_client = @saved_cs_client; | 2559 | /*!40101 SET character_set_client = @saved_cs_client */; |
1217 | 2575 | 2560 | ||
1218 | 2576 | LOCK TABLES `t2` WRITE; | 2561 | LOCK TABLES `t2` WRITE; |
1219 | 2577 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | 2562 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; |
1220 | @@ -2695,12 +2680,12 @@ | |||
1221 | 2695 | 2680 | ||
1222 | 2696 | USE `test`; | 2681 | USE `test`; |
1223 | 2697 | DROP TABLE IF EXISTS `t1`; | 2682 | DROP TABLE IF EXISTS `t1`; |
1226 | 2698 | SET @saved_cs_client = @@character_set_client; | 2683 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1227 | 2699 | SET character_set_client = utf8; | 2684 | /*!40101 SET character_set_client = utf8 */; |
1228 | 2700 | CREATE TABLE `t1` ( | 2685 | CREATE TABLE `t1` ( |
1229 | 2701 | `id` int(11) DEFAULT NULL | 2686 | `id` int(11) DEFAULT NULL |
1230 | 2702 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2687 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1232 | 2703 | SET character_set_client = @saved_cs_client; | 2688 | /*!40101 SET character_set_client = @saved_cs_client */; |
1233 | 2704 | 2689 | ||
1234 | 2705 | LOCK TABLES `t1` WRITE; | 2690 | LOCK TABLES `t1` WRITE; |
1235 | 2706 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2691 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1236 | @@ -2846,13 +2831,13 @@ | |||
1237 | 2846 | 2831 | ||
1238 | 2847 | USE `test`; | 2832 | USE `test`; |
1239 | 2848 | DROP TABLE IF EXISTS `t1`; | 2833 | DROP TABLE IF EXISTS `t1`; |
1242 | 2849 | SET @saved_cs_client = @@character_set_client; | 2834 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1243 | 2850 | SET character_set_client = utf8; | 2835 | /*!40101 SET character_set_client = utf8 */; |
1244 | 2851 | CREATE TABLE `t1` ( | 2836 | CREATE TABLE `t1` ( |
1245 | 2852 | `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | 2837 | `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
1246 | 2853 | UNIQUE KEY `d` (`d`) | 2838 | UNIQUE KEY `d` (`d`) |
1247 | 2854 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2839 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1249 | 2855 | SET character_set_client = @saved_cs_client; | 2840 | /*!40101 SET character_set_client = @saved_cs_client */; |
1250 | 2856 | 2841 | ||
1251 | 2857 | LOCK TABLES `t1` WRITE; | 2842 | LOCK TABLES `t1` WRITE; |
1252 | 2858 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2843 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1253 | @@ -2883,13 +2868,13 @@ | |||
1254 | 2883 | 2868 | ||
1255 | 2884 | USE `test`; | 2869 | USE `test`; |
1256 | 2885 | DROP TABLE IF EXISTS `t1`; | 2870 | DROP TABLE IF EXISTS `t1`; |
1259 | 2886 | SET @saved_cs_client = @@character_set_client; | 2871 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1260 | 2887 | SET character_set_client = utf8; | 2872 | /*!40101 SET character_set_client = utf8 */; |
1261 | 2888 | CREATE TABLE `t1` ( | 2873 | CREATE TABLE `t1` ( |
1262 | 2889 | `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | 2874 | `d` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, |
1263 | 2890 | UNIQUE KEY `d` (`d`) | 2875 | UNIQUE KEY `d` (`d`) |
1264 | 2891 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 2876 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1266 | 2892 | SET character_set_client = @saved_cs_client; | 2877 | /*!40101 SET character_set_client = @saved_cs_client */; |
1267 | 2893 | 2878 | ||
1268 | 2894 | LOCK TABLES `t1` WRITE; | 2879 | LOCK TABLES `t1` WRITE; |
1269 | 2895 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 2880 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1270 | @@ -2936,12 +2921,12 @@ | |||
1271 | 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' */; |
1272 | 2937 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 2922 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1273 | 2938 | DROP TABLE IF EXISTS "t1 test"; | 2923 | DROP TABLE IF EXISTS "t1 test"; |
1276 | 2939 | SET @saved_cs_client = @@character_set_client; | 2924 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1277 | 2940 | SET character_set_client = utf8; | 2925 | /*!40101 SET character_set_client = utf8 */; |
1278 | 2941 | CREATE TABLE "t1 test" ( | 2926 | CREATE TABLE "t1 test" ( |
1279 | 2942 | "a1" int(11) DEFAULT NULL | 2927 | "a1" int(11) DEFAULT NULL |
1280 | 2943 | ); | 2928 | ); |
1282 | 2944 | SET character_set_client = @saved_cs_client; | 2929 | /*!40101 SET character_set_client = @saved_cs_client */; |
1283 | 2945 | 2930 | ||
1284 | 2946 | LOCK TABLES "t1 test" WRITE; | 2931 | LOCK TABLES "t1 test" WRITE; |
1285 | 2947 | /*!40000 ALTER TABLE "t1 test" DISABLE KEYS */; | 2932 | /*!40000 ALTER TABLE "t1 test" DISABLE KEYS */; |
1286 | @@ -2965,12 +2950,12 @@ | |||
1287 | 2965 | /*!50003 SET character_set_results = @saved_cs_results */ ; | 2950 | /*!50003 SET character_set_results = @saved_cs_results */ ; |
1288 | 2966 | /*!50003 SET collation_connection = @saved_col_connection */ ; | 2951 | /*!50003 SET collation_connection = @saved_col_connection */ ; |
1289 | 2967 | DROP TABLE IF EXISTS "t2 test"; | 2952 | DROP TABLE IF EXISTS "t2 test"; |
1292 | 2968 | SET @saved_cs_client = @@character_set_client; | 2953 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1293 | 2969 | SET character_set_client = utf8; | 2954 | /*!40101 SET character_set_client = utf8 */; |
1294 | 2970 | CREATE TABLE "t2 test" ( | 2955 | CREATE TABLE "t2 test" ( |
1295 | 2971 | "a2" int(11) DEFAULT NULL | 2956 | "a2" int(11) DEFAULT NULL |
1296 | 2972 | ); | 2957 | ); |
1298 | 2973 | SET character_set_client = @saved_cs_client; | 2958 | /*!40101 SET character_set_client = @saved_cs_client */; |
1299 | 2974 | 2959 | ||
1300 | 2975 | LOCK TABLES "t2 test" WRITE; | 2960 | LOCK TABLES "t2 test" WRITE; |
1301 | 2976 | /*!40000 ALTER TABLE "t2 test" DISABLE KEYS */; | 2961 | /*!40000 ALTER TABLE "t2 test" DISABLE KEYS */; |
1302 | @@ -3019,14 +3004,14 @@ | |||
1303 | 3019 | 3004 | ||
1304 | 3020 | USE `test`; | 3005 | USE `test`; |
1305 | 3021 | DROP TABLE IF EXISTS `t1`; | 3006 | DROP TABLE IF EXISTS `t1`; |
1308 | 3022 | SET @saved_cs_client = @@character_set_client; | 3007 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1309 | 3023 | SET character_set_client = utf8; | 3008 | /*!40101 SET character_set_client = utf8 */; |
1310 | 3024 | CREATE TABLE `t1` ( | 3009 | CREATE TABLE `t1` ( |
1311 | 3025 | `a` int(11) DEFAULT NULL, | 3010 | `a` int(11) DEFAULT NULL, |
1312 | 3026 | `b` varchar(32) DEFAULT NULL, | 3011 | `b` varchar(32) DEFAULT NULL, |
1313 | 3027 | `c` varchar(32) DEFAULT NULL | 3012 | `c` varchar(32) DEFAULT NULL |
1314 | 3028 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3013 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1316 | 3029 | SET character_set_client = @saved_cs_client; | 3014 | /*!40101 SET character_set_client = @saved_cs_client */; |
1317 | 3030 | 3015 | ||
1318 | 3031 | LOCK TABLES `t1` WRITE; | 3016 | LOCK TABLES `t1` WRITE; |
1319 | 3032 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 3017 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1320 | @@ -3150,12 +3135,12 @@ | |||
1321 | 3150 | 3135 | ||
1322 | 3151 | USE `test`; | 3136 | USE `test`; |
1323 | 3152 | DROP TABLE IF EXISTS `t1`; | 3137 | DROP TABLE IF EXISTS `t1`; |
1326 | 3153 | SET @saved_cs_client = @@character_set_client; | 3138 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1327 | 3154 | SET character_set_client = utf8; | 3139 | /*!40101 SET character_set_client = utf8 */; |
1328 | 3155 | CREATE TABLE `t1` ( | 3140 | CREATE TABLE `t1` ( |
1329 | 3156 | `a` int(11) DEFAULT NULL | 3141 | `a` int(11) DEFAULT NULL |
1330 | 3157 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3142 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1332 | 3158 | SET character_set_client = @saved_cs_client; | 3143 | /*!40101 SET character_set_client = @saved_cs_client */; |
1333 | 3159 | 3144 | ||
1334 | 3160 | LOCK TABLES `t1` WRITE; | 3145 | LOCK TABLES `t1` WRITE; |
1335 | 3161 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 3146 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1336 | @@ -3209,13 +3194,13 @@ | |||
1337 | 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' */; |
1338 | 3210 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 3195 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1339 | 3211 | DROP TABLE IF EXISTS `t1`; | 3196 | DROP TABLE IF EXISTS `t1`; |
1342 | 3212 | SET @saved_cs_client = @@character_set_client; | 3197 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1343 | 3213 | SET character_set_client = utf8; | 3198 | /*!40101 SET character_set_client = utf8 */; |
1344 | 3214 | CREATE TABLE `t1` ( | 3199 | CREATE TABLE `t1` ( |
1345 | 3215 | `a` binary(1) DEFAULT NULL, | 3200 | `a` binary(1) DEFAULT NULL, |
1346 | 3216 | `b` blob | 3201 | `b` blob |
1347 | 3217 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3202 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1349 | 3218 | SET character_set_client = @saved_cs_client; | 3203 | /*!40101 SET character_set_client = @saved_cs_client */; |
1350 | 3219 | 3204 | ||
1351 | 3220 | LOCK TABLES `t1` WRITE; | 3205 | LOCK TABLES `t1` WRITE; |
1352 | 3221 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 3206 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1353 | @@ -3244,13 +3229,13 @@ | |||
1354 | 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' */; |
1355 | 3245 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 3230 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1356 | 3246 | DROP TABLE IF EXISTS `t1`; | 3231 | DROP TABLE IF EXISTS `t1`; |
1359 | 3247 | SET @saved_cs_client = @@character_set_client; | 3232 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1360 | 3248 | SET character_set_client = utf8; | 3233 | /*!40101 SET character_set_client = utf8 */; |
1361 | 3249 | CREATE TABLE `t1` ( | 3234 | CREATE TABLE `t1` ( |
1362 | 3250 | `a` binary(1) DEFAULT NULL, | 3235 | `a` binary(1) DEFAULT NULL, |
1363 | 3251 | `b` blob | 3236 | `b` blob |
1364 | 3252 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3237 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1366 | 3253 | SET character_set_client = @saved_cs_client; | 3238 | /*!40101 SET character_set_client = @saved_cs_client */; |
1367 | 3254 | 3239 | ||
1368 | 3255 | LOCK TABLES `t1` WRITE; | 3240 | LOCK TABLES `t1` WRITE; |
1369 | 3256 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 3241 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1370 | @@ -3423,12 +3408,12 @@ | |||
1371 | 3423 | 3408 | ||
1372 | 3424 | USE `mysqldump_test_db`; | 3409 | USE `mysqldump_test_db`; |
1373 | 3425 | DROP TABLE IF EXISTS `t1`; | 3410 | DROP TABLE IF EXISTS `t1`; |
1376 | 3426 | SET @saved_cs_client = @@character_set_client; | 3411 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1377 | 3427 | SET character_set_client = utf8; | 3412 | /*!40101 SET character_set_client = utf8 */; |
1378 | 3428 | CREATE TABLE `t1` ( | 3413 | CREATE TABLE `t1` ( |
1379 | 3429 | `id` int(11) DEFAULT NULL | 3414 | `id` int(11) DEFAULT NULL |
1380 | 3430 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3415 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1382 | 3431 | SET character_set_client = @saved_cs_client; | 3416 | /*!40101 SET character_set_client = @saved_cs_client */; |
1383 | 3432 | 3417 | ||
1384 | 3433 | LOCK TABLES `t1` WRITE; | 3418 | LOCK TABLES `t1` WRITE; |
1385 | 3434 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 3419 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1386 | @@ -3485,14 +3470,14 @@ | |||
1387 | 3485 | CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_tables` /*!40100 DEFAULT CHARACTER SET latin1 */; | 3470 | CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_tables` /*!40100 DEFAULT CHARACTER SET latin1 */; |
1388 | 3486 | 3471 | ||
1389 | 3487 | USE `mysqldump_tables`; | 3472 | USE `mysqldump_tables`; |
1392 | 3488 | SET @saved_cs_client = @@character_set_client; | 3473 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1393 | 3489 | SET character_set_client = utf8; | 3474 | /*!40101 SET character_set_client = utf8 */; |
1394 | 3490 | CREATE TABLE `basetable` ( | 3475 | CREATE TABLE `basetable` ( |
1395 | 3491 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | 3476 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, |
1396 | 3492 | `tag` varchar(64) DEFAULT NULL, | 3477 | `tag` varchar(64) DEFAULT NULL, |
1397 | 3493 | UNIQUE KEY `id` (`id`) | 3478 | UNIQUE KEY `id` (`id`) |
1398 | 3494 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3479 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1400 | 3495 | SET character_set_client = @saved_cs_client; | 3480 | /*!40101 SET character_set_client = @saved_cs_client */; |
1401 | 3496 | 3481 | ||
1402 | 3497 | CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_views` /*!40100 DEFAULT CHARACTER SET latin1 */; | 3482 | CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqldump_views` /*!40100 DEFAULT CHARACTER SET latin1 */; |
1403 | 3498 | 3483 | ||
1404 | @@ -3516,7 +3501,7 @@ | |||
1405 | 3516 | /*!50001 SET collation_connection = latin1_swedish_ci */; | 3501 | /*!50001 SET collation_connection = latin1_swedish_ci */; |
1406 | 3517 | /*!50001 CREATE ALGORITHM=UNDEFINED */ | 3502 | /*!50001 CREATE ALGORITHM=UNDEFINED */ |
1407 | 3518 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ | 3503 | /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ |
1409 | 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` */; |
1410 | 3520 | /*!50001 SET character_set_client = @saved_cs_client */; | 3505 | /*!50001 SET character_set_client = @saved_cs_client */; |
1411 | 3521 | /*!50001 SET character_set_results = @saved_cs_results */; | 3506 | /*!50001 SET character_set_results = @saved_cs_results */; |
1412 | 3522 | /*!50001 SET collation_connection = @saved_col_connection */; | 3507 | /*!50001 SET collation_connection = @saved_col_connection */; |
1413 | @@ -3659,31 +3644,31 @@ | |||
1414 | 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' */; |
1415 | 3660 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 3645 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1416 | 3661 | DROP TABLE IF EXISTS `t1`; | 3646 | DROP TABLE IF EXISTS `t1`; |
1419 | 3662 | SET @saved_cs_client = @@character_set_client; | 3647 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1420 | 3663 | SET character_set_client = utf8; | 3648 | /*!40101 SET character_set_client = utf8 */; |
1421 | 3664 | CREATE TABLE `t1` ( | 3649 | CREATE TABLE `t1` ( |
1422 | 3665 | `a` int(11) DEFAULT NULL | 3650 | `a` int(11) DEFAULT NULL |
1423 | 3666 | ) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t2`,`t3`); | 3651 | ) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 UNION=(`t2`,`t3`); |
1425 | 3667 | SET character_set_client = @saved_cs_client; | 3652 | /*!40101 SET character_set_client = @saved_cs_client */; |
1426 | 3668 | DROP TABLE IF EXISTS `t2`; | 3653 | DROP TABLE IF EXISTS `t2`; |
1429 | 3669 | SET @saved_cs_client = @@character_set_client; | 3654 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1430 | 3670 | SET character_set_client = utf8; | 3655 | /*!40101 SET character_set_client = utf8 */; |
1431 | 3671 | CREATE TABLE `t2` ( | 3656 | CREATE TABLE `t2` ( |
1432 | 3672 | `a` int(11) DEFAULT NULL | 3657 | `a` int(11) DEFAULT NULL |
1433 | 3673 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | 3658 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
1435 | 3674 | SET character_set_client = @saved_cs_client; | 3659 | /*!40101 SET character_set_client = @saved_cs_client */; |
1436 | 3675 | 3660 | ||
1437 | 3676 | LOCK TABLES `t2` WRITE; | 3661 | LOCK TABLES `t2` WRITE; |
1438 | 3677 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; | 3662 | /*!40000 ALTER TABLE `t2` DISABLE KEYS */; |
1439 | 3678 | /*!40000 ALTER TABLE `t2` ENABLE KEYS */; | 3663 | /*!40000 ALTER TABLE `t2` ENABLE KEYS */; |
1440 | 3679 | UNLOCK TABLES; | 3664 | UNLOCK TABLES; |
1441 | 3680 | DROP TABLE IF EXISTS `t3`; | 3665 | DROP TABLE IF EXISTS `t3`; |
1444 | 3681 | SET @saved_cs_client = @@character_set_client; | 3666 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1445 | 3682 | SET character_set_client = utf8; | 3667 | /*!40101 SET character_set_client = utf8 */; |
1446 | 3683 | CREATE TABLE `t3` ( | 3668 | CREATE TABLE `t3` ( |
1447 | 3684 | `a` int(11) DEFAULT NULL | 3669 | `a` int(11) DEFAULT NULL |
1448 | 3685 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | 3670 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
1450 | 3686 | SET character_set_client = @saved_cs_client; | 3671 | /*!40101 SET character_set_client = @saved_cs_client */; |
1451 | 3687 | 3672 | ||
1452 | 3688 | LOCK TABLES `t3` WRITE; | 3673 | LOCK TABLES `t3` WRITE; |
1453 | 3689 | /*!40000 ALTER TABLE `t3` DISABLE KEYS */; | 3674 | /*!40000 ALTER TABLE `t3` DISABLE KEYS */; |
1454 | @@ -3763,13 +3748,13 @@ | |||
1455 | 3763 | # | 3748 | # |
1456 | 3764 | CREATE TABLE t1 (c1 INT, c2 LONGBLOB); | 3749 | CREATE TABLE t1 (c1 INT, c2 LONGBLOB); |
1457 | 3765 | INSERT INTO t1 SET c1=11, c2=REPEAT('q',509); | 3750 | INSERT INTO t1 SET c1=11, c2=REPEAT('q',509); |
1460 | 3766 | SET @saved_cs_client = @@character_set_client; | 3751 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1461 | 3767 | SET character_set_client = utf8; | 3752 | /*!40101 SET character_set_client = utf8 */; |
1462 | 3768 | CREATE TABLE `t1` ( | 3753 | CREATE TABLE `t1` ( |
1463 | 3769 | `c1` int(11) DEFAULT NULL, | 3754 | `c1` int(11) DEFAULT NULL, |
1464 | 3770 | `c2` longblob | 3755 | `c2` longblob |
1465 | 3771 | ); | 3756 | ); |
1467 | 3772 | SET character_set_client = @saved_cs_client; | 3757 | /*!40101 SET character_set_client = @saved_cs_client */; |
1468 | 3773 | INSERT INTO `t1` VALUES (11,0x7171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171); | 3758 | INSERT INTO `t1` VALUES (11,0x7171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171717171); |
1469 | 3774 | DROP TABLE t1; | 3759 | DROP TABLE t1; |
1470 | 3775 | # | 3760 | # |
1471 | @@ -3846,13 +3831,13 @@ | |||
1472 | 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' */; |
1473 | 3847 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | 3832 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
1474 | 3848 | DROP TABLE IF EXISTS `t1`; | 3833 | DROP TABLE IF EXISTS `t1`; |
1477 | 3849 | SET @saved_cs_client = @@character_set_client; | 3834 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1478 | 3850 | SET character_set_client = utf8; | 3835 | /*!40101 SET character_set_client = utf8 */; |
1479 | 3851 | CREATE TABLE `t1` ( | 3836 | CREATE TABLE `t1` ( |
1480 | 3852 | `a` int(11) DEFAULT NULL, | 3837 | `a` int(11) DEFAULT NULL, |
1481 | 3853 | `b` int(11) DEFAULT NULL | 3838 | `b` int(11) DEFAULT NULL |
1482 | 3854 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3839 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1484 | 3855 | SET character_set_client = @saved_cs_client; | 3840 | /*!40101 SET character_set_client = @saved_cs_client */; |
1485 | 3856 | 3841 | ||
1486 | 3857 | LOCK TABLES `t1` WRITE; | 3842 | LOCK TABLES `t1` WRITE; |
1487 | 3858 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 3843 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1488 | @@ -3941,12 +3926,12 @@ | |||
1489 | 3941 | 3926 | ||
1490 | 3942 | USE `mysqldump_test_db`; | 3927 | USE `mysqldump_test_db`; |
1491 | 3943 | DROP TABLE IF EXISTS `t1`; | 3928 | DROP TABLE IF EXISTS `t1`; |
1494 | 3944 | SET @saved_cs_client = @@character_set_client; | 3929 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1495 | 3945 | SET character_set_client = utf8; | 3930 | /*!40101 SET character_set_client = utf8 */; |
1496 | 3946 | CREATE TABLE `t1` ( | 3931 | CREATE TABLE `t1` ( |
1497 | 3947 | `id` int(11) DEFAULT NULL | 3932 | `id` int(11) DEFAULT NULL |
1498 | 3948 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 3933 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1500 | 3949 | SET character_set_client = @saved_cs_client; | 3934 | /*!40101 SET character_set_client = @saved_cs_client */; |
1501 | 3950 | 3935 | ||
1502 | 3951 | LOCK TABLES `t1` WRITE; | 3936 | LOCK TABLES `t1` WRITE; |
1503 | 3952 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; | 3937 | /*!40000 ALTER TABLE `t1` DISABLE KEYS */; |
1504 | @@ -4046,12 +4031,12 @@ | |||
1505 | 4046 | use `test-database`; | 4031 | use `test-database`; |
1506 | 4047 | create table test (a int); | 4032 | create table test (a int); |
1507 | 4048 | DROP TABLE IF EXISTS `test`; | 4033 | DROP TABLE IF EXISTS `test`; |
1510 | 4049 | SET @saved_cs_client = @@character_set_client; | 4034 | /*!40101 SET @saved_cs_client = @@character_set_client */; |
1511 | 4050 | SET character_set_client = utf8; | 4035 | /*!40101 SET character_set_client = utf8 */; |
1512 | 4051 | CREATE TABLE `test` ( | 4036 | CREATE TABLE `test` ( |
1513 | 4052 | `a` int(11) DEFAULT NULL | 4037 | `a` int(11) DEFAULT NULL |
1514 | 4053 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; | 4038 | ) ENGINE=PBXT DEFAULT CHARSET=latin1; |
1516 | 4054 | SET character_set_client = @saved_cs_client; | 4039 | /*!40101 SET character_set_client = @saved_cs_client */; |
1517 | 4055 | LOCK TABLES `test` WRITE; | 4040 | LOCK TABLES `test` WRITE; |
1518 | 4056 | /*!40000 ALTER TABLE `test` DISABLE KEYS */; | 4041 | /*!40000 ALTER TABLE `test` DISABLE KEYS */; |
1519 | 4057 | /*!40000 ALTER TABLE `test` ENABLE KEYS */; | 4042 | /*!40000 ALTER TABLE `test` ENABLE KEYS */; |
1520 | 4058 | 4043 | ||
1521 | === modified file 'test/mysql-test/r/mysqltest.result' | |||
1522 | --- test/mysql-test/r/mysqltest.result 2008-06-09 12:49:32 +0000 | |||
1523 | +++ test/mysql-test/r/mysqltest.result 2009-06-02 18:38:30 +0000 | |||
1524 | @@ -14,6 +14,7 @@ | |||
1525 | 14 | otto | 14 | otto |
1526 | 15 | 1 | 15 | 1 |
1527 | 16 | mysqltest: At line 1: query 'select otto from (select 1 as otto) as t1' succeeded - should have failed with sqlstate 42S22... | 16 | mysqltest: At line 1: query 'select otto from (select 1 as otto) as t1' succeeded - should have failed with sqlstate 42S22... |
1528 | 17 | mysqltest: At line 1: expecting a SQL-state (00000) from query 'remove_file MYSQLTEST_VARDIR/tmp/test_nonexistent.tmp' which cannot produce one... | ||
1529 | 17 | select friedrich from (select 1 as otto) as t1; | 18 | select friedrich from (select 1 as otto) as t1; |
1530 | 18 | ERROR 42S22: Unknown column 'friedrich' in 'field list' | 19 | ERROR 42S22: Unknown column 'friedrich' in 'field list' |
1531 | 19 | mysqltest: 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... | 20 | mysqltest: 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... |
1532 | @@ -152,8 +153,12 @@ | |||
1533 | 152 | mysqltest: At line 1: End of line junk detected: "sleep 7 | 153 | mysqltest: At line 1: End of line junk detected: "sleep 7 |
1534 | 153 | # Another comment | 154 | # Another comment |
1535 | 154 | " | 155 | " |
1538 | 155 | mysqltest: At line 1: Missing delimiter | 156 | mysqltest: At line 1: Extra argument 'comment |
1539 | 156 | mysqltest: At line 1: Missing delimiter | 157 | # comment 3 |
1540 | 158 | disable_query_log' passed to 'disconnect' | ||
1541 | 159 | mysqltest: At line 1: Extra argument 'comment | ||
1542 | 160 | # comment 3 | ||
1543 | 161 | disable_query_log' passed to 'disconnect' | ||
1544 | 157 | mysqltest: At line 1: End of line junk detected: "disconnect default | 162 | mysqltest: At line 1: End of line junk detected: "disconnect default |
1545 | 158 | 163 | ||
1546 | 159 | # | 164 | # |
1547 | @@ -210,7 +215,6 @@ | |||
1548 | 210 | "MySQL: The world's most popular ;open source database" | 215 | "MySQL: The world's most popular ;open source database" |
1549 | 211 | echo message echo message | 216 | echo message echo message |
1550 | 212 | 217 | ||
1551 | 213 | mysqltest: At line 1: command "false" failed | ||
1552 | 214 | mysqltest: At line 1: Missing argument in exec | 218 | mysqltest: At line 1: Missing argument in exec |
1553 | 215 | MySQL | 219 | MySQL |
1554 | 216 | "MySQL" | 220 | "MySQL" |
1555 | @@ -293,7 +297,7 @@ | |||
1556 | 293 | failing query in let | 297 | failing query in let |
1557 | 294 | mysqltest: 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 | 298 | mysqltest: 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 |
1558 | 295 | mysqltest: At line 1: Missing required argument 'filename' to command 'source' | 299 | mysqltest: At line 1: Missing required argument 'filename' to command 'source' |
1560 | 296 | mysqltest: At line 1: Could not open './non_existingFile' for reading | 300 | mysqltest: At line 1: Could not open './non_existingFile' for reading, errno: 2 |
1561 | 297 | mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql": At line 1: Source directives are nesting too deep | 301 | mysqltest: In included file "MYSQLTEST_VARDIR/tmp/recursive.sql": At line 1: Source directives are nesting too deep |
1562 | 298 | mysqltest: 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 | 302 | mysqltest: 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 |
1563 | 299 | 303 | ||
1564 | @@ -378,7 +382,6 @@ | |||
1565 | 378 | mysqltest: At line 1: End of line junk detected: "1000" | 382 | mysqltest: At line 1: End of line junk detected: "1000" |
1566 | 379 | mysqltest: At line 1: Missing arguments to system, nothing to do! | 383 | mysqltest: At line 1: Missing arguments to system, nothing to do! |
1567 | 380 | mysqltest: At line 1: Missing arguments to system, nothing to do! | 384 | mysqltest: At line 1: Missing arguments to system, nothing to do! |
1568 | 381 | mysqltest: At line 1: system command 'false' failed | ||
1569 | 382 | system command 'NonExistsinfComamdn 2> /dev/null' failed | 385 | system command 'NonExistsinfComamdn 2> /dev/null' failed |
1570 | 383 | test | 386 | test |
1571 | 384 | test2 | 387 | test2 |
1572 | @@ -443,7 +446,7 @@ | |||
1573 | 443 | Output from mysqltest-x.inc | 446 | Output from mysqltest-x.inc |
1574 | 444 | Output from mysqltest-x.inc | 447 | Output from mysqltest-x.inc |
1575 | 445 | Output from mysqltest-x.inc | 448 | Output from mysqltest-x.inc |
1577 | 446 | mysqltest: Could not open './non_existing_file.inc' for reading: errno = 2 | 449 | mysqltest: Could not open './non_existing_file.inc' for reading, errno: 2 |
1578 | 447 | failing_statement; | 450 | failing_statement; |
1579 | 448 | ERROR 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 | 451 | ERROR 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 |
1580 | 449 | failing_statement; | 452 | failing_statement; |
1581 | @@ -486,8 +489,6 @@ | |||
1582 | 486 | insert into t1 values (1); | 489 | insert into t1 values (1); |
1583 | 487 | select 'select-me'; | 490 | select 'select-me'; |
1584 | 488 | insertz '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 | 491 | insertz '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 |
1585 | 489 | |||
1586 | 490 | More results from queries before failure can be found in MYSQLTEST_VARDIR/log/bug11731.log | ||
1587 | 491 | drop table t1; | 492 | drop table t1; |
1588 | 492 | Multi statement using expected error | 493 | Multi statement using expected error |
1589 | 493 | create table t1 (a int primary key); | 494 | create table t1 (a int primary key); |
1590 | @@ -725,4 +726,29 @@ | |||
1591 | 725 | mysqltest: At line 1: change user failed: Unknown database 'inexistent' | 726 | mysqltest: At line 1: change user failed: Unknown database 'inexistent' |
1592 | 726 | mysqltest: At line 1: change user failed: Access denied for user 'inexistent'@'localhost' (using password: NO) | 727 | mysqltest: At line 1: change user failed: Access denied for user 'inexistent'@'localhost' (using password: NO) |
1593 | 727 | mysqltest: At line 1: change user failed: Access denied for user 'root'@'localhost' (using password: YES) | 728 | mysqltest: At line 1: change user failed: Access denied for user 'root'@'localhost' (using password: YES) |
1594 | 729 | file1.txt | ||
1595 | 730 | file1.txt | ||
1596 | 731 | file2.txt | ||
1597 | 732 | SELECT 'c:\\a.txt' AS col; | ||
1598 | 733 | col | ||
1599 | 734 | z | ||
1600 | 735 | hej | ||
1601 | 736 | mysqltest: At line 1: Found junk ' != 143' after $variable in expression | ||
1602 | 737 | select 1; | ||
1603 | 738 | 1 | ||
1604 | 739 | 1 | ||
1605 | 740 | select 1; | ||
1606 | 741 | 1 | ||
1607 | 742 | 1 | ||
1608 | 743 | -- a comment for the server; | ||
1609 | 744 | mysqltest: 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 | ||
1610 | 745 | con1 | ||
1611 | 746 | con2 | ||
1612 | 747 | default | ||
1613 | 748 | con1 | ||
1614 | 749 | con2 | ||
1615 | 750 | con1 | ||
1616 | 751 | con2 | ||
1617 | 752 | con2 | ||
1618 | 753 | -closed_connection- | ||
1619 | 728 | End of tests | 754 | End of tests |
1620 | 729 | 755 | ||
1621 | === modified file 'test/mysql-test/r/null.result' | |||
1622 | --- test/mysql-test/r/null.result 2009-03-27 20:05:34 +0000 | |||
1623 | +++ test/mysql-test/r/null.result 2009-06-02 18:58:34 +0000 | |||
1624 | @@ -93,9 +93,11 @@ | |||
1625 | 93 | Warnings: | 93 | Warnings: |
1626 | 94 | Warning 1265 Data truncated for column 'd' at row 1 | 94 | Warning 1265 Data truncated for column 'd' at row 1 |
1627 | 95 | UPDATE t1 SET d=1/NULL; | 95 | UPDATE t1 SET d=1/NULL; |
1629 | 96 | ERROR 23000: Column 'd' cannot be null | 96 | Warnings: |
1630 | 97 | Warning 1265 Data truncated for column 'd' at row 1 | ||
1631 | 97 | UPDATE t1 SET d=NULL; | 98 | UPDATE t1 SET d=NULL; |
1633 | 98 | ERROR 23000: Column 'd' cannot be null | 99 | Warnings: |
1634 | 100 | Warning 1048 Column 'd' cannot be null | ||
1635 | 99 | INSERT INTO t1 (a) values (null); | 101 | INSERT INTO t1 (a) values (null); |
1636 | 100 | ERROR 23000: Column 'a' cannot be null | 102 | ERROR 23000: Column 'a' cannot be null |
1637 | 101 | INSERT INTO t1 (a) values (1/null); | 103 | INSERT INTO t1 (a) values (1/null); |
1638 | @@ -130,7 +132,7 @@ | |||
1639 | 130 | Warning 1048 Column 'd' cannot be null | 132 | Warning 1048 Column 'd' cannot be null |
1640 | 131 | select * from t1; | 133 | select * from t1; |
1641 | 132 | a b c d | 134 | a b c d |
1643 | 133 | 0 0000-00-00 00:00:00 2003 | 135 | 0 0000-00-00 00:00:00 0 |
1644 | 134 | 0 0000-00-00 00:00:00 0 | 136 | 0 0000-00-00 00:00:00 0 |
1645 | 135 | 0 0000-00-00 00:00:00 0 | 137 | 0 0000-00-00 00:00:00 0 |
1646 | 136 | 0 0000-00-00 00:00:00 0 | 138 | 0 0000-00-00 00:00:00 0 |
1647 | 137 | 139 | ||
1648 | === modified file 'test/mysql-test/r/packet.result' | |||
1649 | --- test/mysql-test/r/packet.result 2008-03-11 16:31:13 +0000 | |||
1650 | +++ test/mysql-test/r/packet.result 2009-06-02 19:02:51 +0000 | |||
1651 | @@ -1,35 +1,29 @@ | |||
1652 | 1 | set @max_allowed_packet=@@global.max_allowed_packet; | ||
1653 | 2 | set @net_buffer_length=@@global.net_buffer_length; | ||
1654 | 1 | set global max_allowed_packet=100; | 3 | set global max_allowed_packet=100; |
1655 | 2 | Warnings: | 4 | Warnings: |
1656 | 3 | Warning 1292 Truncated incorrect max_allowed_packet value: '100' | 5 | Warning 1292 Truncated incorrect max_allowed_packet value: '100' |
1657 | 4 | set max_allowed_packet=100; | ||
1658 | 5 | Warnings: | ||
1659 | 6 | Warning 1292 Truncated incorrect max_allowed_packet value: '100' | ||
1660 | 7 | set global net_buffer_length=100; | 6 | set global net_buffer_length=100; |
1661 | 8 | Warnings: | 7 | Warnings: |
1662 | 9 | Warning 1292 Truncated incorrect net_buffer_length value: '100' | 8 | Warning 1292 Truncated incorrect net_buffer_length value: '100' |
1663 | 10 | set net_buffer_length=100; | ||
1664 | 11 | Warnings: | ||
1665 | 12 | Warning 1292 Truncated incorrect net_buffer_length value: '100' | ||
1666 | 13 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; | 9 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; |
1667 | 14 | len | 10 | len |
1668 | 15 | 1024 | 11 | 1024 |
1669 | 16 | select repeat('a',2000); | 12 | select repeat('a',2000); |
1670 | 17 | repeat('a',2000) | 13 | repeat('a',2000) |
1674 | 18 | NULL | 14 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
1672 | 19 | Warnings: | ||
1673 | 20 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1024) - truncated | ||
1675 | 21 | select @@net_buffer_length, @@max_allowed_packet; | 15 | select @@net_buffer_length, @@max_allowed_packet; |
1676 | 22 | @@net_buffer_length @@max_allowed_packet | 16 | @@net_buffer_length @@max_allowed_packet |
1677 | 23 | 1024 1024 | 17 | 1024 1024 |
1678 | 24 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; | 18 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; |
1679 | 25 | ERROR 08S01: Got a packet bigger than 'max_allowed_packet' bytes | 19 | ERROR 08S01: Got a packet bigger than 'max_allowed_packet' bytes |
1680 | 26 | set global max_allowed_packet=default; | 20 | set global max_allowed_packet=default; |
1681 | 27 | set max_allowed_packet=default; | ||
1682 | 28 | set global net_buffer_length=default; | 21 | set global net_buffer_length=default; |
1683 | 29 | set net_buffer_length=default; | ||
1684 | 30 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; | 22 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; |
1685 | 31 | len | 23 | len |
1686 | 32 | 100 | 24 | 100 |
1687 | 33 | select length(repeat('a',2000)); | 25 | select length(repeat('a',2000)); |
1688 | 34 | length(repeat('a',2000)) | 26 | length(repeat('a',2000)) |
1689 | 35 | 2000 | 27 | 2000 |
1690 | 28 | set global max_allowed_packet=@max_allowed_packet; | ||
1691 | 29 | set global net_buffer_length=@net_buffer_length; | ||
1692 | 36 | 30 | ||
1693 | === modified file 'test/mysql-test/r/partition.result' | |||
1694 | --- test/mysql-test/r/partition.result 2008-09-17 07:41:28 +0000 | |||
1695 | +++ test/mysql-test/r/partition.result 2009-06-02 19:05:33 +0000 | |||
1696 | @@ -76,13 +76,21 @@ | |||
1697 | 76 | Table Create Table | 76 | Table Create Table |
1698 | 77 | t1 CREATE TABLE `t1` ( | 77 | t1 CREATE TABLE `t1` ( |
1699 | 78 | `a` int(11) DEFAULT NULL | 78 | `a` int(11) DEFAULT NULL |
1701 | 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 |
1702 | 80 | /*!50100 PARTITION BY RANGE (a) | ||
1703 | 81 | SUBPARTITION BY KEY (a) | ||
1704 | 82 | (PARTITION p0 VALUES LESS THAN (1) ENGINE = PBXT, | ||
1705 | 83 | PARTITION p1 VALUES LESS THAN (2) ENGINE = PBXT) */ | ||
1706 | 80 | alter table t1 reorganize partition p1 into (partition p1 values less than (3)); | 84 | alter table t1 reorganize partition p1 into (partition p1 values less than (3)); |
1707 | 81 | show create table t1; | 85 | show create table t1; |
1708 | 82 | Table Create Table | 86 | Table Create Table |
1709 | 83 | t1 CREATE TABLE `t1` ( | 87 | t1 CREATE TABLE `t1` ( |
1710 | 84 | `a` int(11) DEFAULT NULL | 88 | `a` int(11) DEFAULT NULL |
1712 | 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 |
1713 | 90 | /*!50100 PARTITION BY RANGE (a) | ||
1714 | 91 | SUBPARTITION BY KEY (a) | ||
1715 | 92 | (PARTITION p0 VALUES LESS THAN (1) ENGINE = PBXT, | ||
1716 | 93 | PARTITION p1 VALUES LESS THAN (3) ENGINE = PBXT) */ | ||
1717 | 86 | drop table t1; | 94 | drop table t1; |
1718 | 87 | CREATE TABLE t1 ( | 95 | CREATE TABLE t1 ( |
1719 | 88 | a int not null, | 96 | a int not null, |
1720 | @@ -100,7 +108,8 @@ | |||
1721 | 100 | `b` int(11) NOT NULL, | 108 | `b` int(11) NOT NULL, |
1722 | 101 | `c` int(11) NOT NULL, | 109 | `c` int(11) NOT NULL, |
1723 | 102 | PRIMARY KEY (`a`,`b`) | 110 | PRIMARY KEY (`a`,`b`) |
1725 | 103 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) */ | 111 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
1726 | 112 | /*!50100 PARTITION BY KEY (a) */ | ||
1727 | 104 | drop table t1; | 113 | drop table t1; |
1728 | 105 | CREATE TABLE t1 ( | 114 | CREATE TABLE t1 ( |
1729 | 106 | a int not null, | 115 | a int not null, |
1730 | @@ -277,7 +286,9 @@ | |||
1731 | 277 | Table Create Table | 286 | Table Create Table |
1732 | 278 | t1 CREATE TABLE `t1` ( | 287 | t1 CREATE TABLE `t1` ( |
1733 | 279 | `a` int(11) DEFAULT NULL | 288 | `a` int(11) DEFAULT NULL |
1735 | 280 | ) ENGINE=MEMORY DEFAULT CHARSET=latin1 /*!50100 PARTITION BY LIST (a) (PARTITION x1 VALUES IN (1) ENGINE = MEMORY) */ | 289 | ) ENGINE=MEMORY DEFAULT CHARSET=latin1 |
1736 | 290 | /*!50100 PARTITION BY LIST (a) | ||
1737 | 291 | (PARTITION x1 VALUES IN (1) ENGINE = MEMORY) */ | ||
1738 | 281 | drop table t1; | 292 | drop table t1; |
1739 | 282 | CREATE TABLE t1 (a int, unique(a)) | 293 | CREATE TABLE t1 (a int, unique(a)) |
1740 | 283 | PARTITION BY LIST (a) | 294 | PARTITION BY LIST (a) |
1741 | @@ -301,7 +312,9 @@ | |||
1742 | 301 | Table Create Table | 312 | Table Create Table |
1743 | 302 | t1 CREATE TABLE `t1` ( | 313 | t1 CREATE TABLE `t1` ( |
1744 | 303 | `a` int(11) DEFAULT NULL | 314 | `a` int(11) DEFAULT NULL |
1746 | 304 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (a) PARTITIONS 5 */ | 315 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
1747 | 316 | /*!50100 PARTITION BY HASH (a) | ||
1748 | 317 | PARTITIONS 5 */ | ||
1749 | 305 | drop table t1; | 318 | drop table t1; |
1750 | 306 | CREATE TABLE t1 (a int) | 319 | CREATE TABLE t1 (a int) |
1751 | 307 | PARTITION BY RANGE (a) | 320 | PARTITION BY RANGE (a) |
1752 | @@ -328,7 +341,11 @@ | |||
1753 | 328 | Table Create Table | 341 | Table Create Table |
1754 | 329 | t1 CREATE TABLE `t1` ( | 342 | t1 CREATE TABLE `t1` ( |
1755 | 330 | `a` int(11) DEFAULT NULL | 343 | `a` int(11) DEFAULT NULL |
1757 | 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 |
1758 | 345 | /*!50100 PARTITION BY RANGE (a) | ||
1759 | 346 | (PARTITION p0 VALUES LESS THAN (10) ENGINE = PBXT, | ||
1760 | 347 | PARTITION p1 VALUES LESS THAN (20) ENGINE = PBXT, | ||
1761 | 348 | PARTITION p2 VALUES LESS THAN (30) ENGINE = PBXT) */ | ||
1762 | 332 | drop table t1; | 349 | drop table t1; |
1763 | 333 | CREATE TABLE t1 (a int, b int) | 350 | CREATE TABLE t1 (a int, b int) |
1764 | 334 | PARTITION BY RANGE (a) | 351 | PARTITION BY RANGE (a) |
1765 | @@ -349,7 +366,16 @@ | |||
1766 | 349 | t1 CREATE TABLE `t1` ( | 366 | t1 CREATE TABLE `t1` ( |
1767 | 350 | `a` int(11) DEFAULT NULL, | 367 | `a` int(11) DEFAULT NULL, |
1768 | 351 | `b` int(11) DEFAULT NULL | 368 | `b` int(11) DEFAULT NULL |
1770 | 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 |
1771 | 370 | /*!50100 PARTITION BY RANGE (a) | ||
1772 | 371 | (PARTITION x1 VALUES LESS THAN (6) ENGINE = PBXT, | ||
1773 | 372 | PARTITION x3 VALUES LESS THAN (8) ENGINE = PBXT, | ||
1774 | 373 | PARTITION x4 VALUES LESS THAN (10) ENGINE = PBXT, | ||
1775 | 374 | PARTITION x5 VALUES LESS THAN (12) ENGINE = PBXT, | ||
1776 | 375 | PARTITION x6 VALUES LESS THAN (14) ENGINE = PBXT, | ||
1777 | 376 | PARTITION x7 VALUES LESS THAN (16) ENGINE = PBXT, | ||
1778 | 377 | PARTITION x8 VALUES LESS THAN (18) ENGINE = PBXT, | ||
1779 | 378 | PARTITION x9 VALUES LESS THAN (20) ENGINE = PBXT) */ | ||
1780 | 353 | drop table t1; | 379 | drop table t1; |
1781 | 354 | create table t1 (a int not null, b int not null) partition by LIST (a+b) ( | 380 | create table t1 (a int not null, b int not null) partition by LIST (a+b) ( |
1782 | 355 | partition p0 values in (12), | 381 | partition p0 values in (12), |
1783 | @@ -403,25 +429,37 @@ | |||
1784 | 403 | Table Create Table | 429 | Table Create Table |
1785 | 404 | t1 CREATE TABLE `t1` ( | 430 | t1 CREATE TABLE `t1` ( |
1786 | 405 | `a` int(11) DEFAULT NULL | 431 | `a` int(11) DEFAULT NULL |
1788 | 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 |
1789 | 433 | /*!50100 PARTITION BY KEY (a) | ||
1790 | 434 | (PARTITION p0 ENGINE = MyISAM, | ||
1791 | 435 | PARTITION p1 ENGINE = MyISAM) */ | ||
1792 | 407 | alter table t1; | 436 | alter table t1; |
1793 | 408 | show create table t1; | 437 | show create table t1; |
1794 | 409 | Table Create Table | 438 | Table Create Table |
1795 | 410 | t1 CREATE TABLE `t1` ( | 439 | t1 CREATE TABLE `t1` ( |
1796 | 411 | `a` int(11) DEFAULT NULL | 440 | `a` int(11) DEFAULT NULL |
1798 | 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 |
1799 | 442 | /*!50100 PARTITION BY KEY (a) | ||
1800 | 443 | (PARTITION p0 ENGINE = MyISAM, | ||
1801 | 444 | PARTITION p1 ENGINE = MyISAM) */ | ||
1802 | 413 | alter table t1 engine=myisam; | 445 | alter table t1 engine=myisam; |
1803 | 414 | show create table t1; | 446 | show create table t1; |
1804 | 415 | Table Create Table | 447 | Table Create Table |
1805 | 416 | t1 CREATE TABLE `t1` ( | 448 | t1 CREATE TABLE `t1` ( |
1806 | 417 | `a` int(11) DEFAULT NULL | 449 | `a` int(11) DEFAULT NULL |
1808 | 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 |
1809 | 451 | /*!50100 PARTITION BY KEY (a) | ||
1810 | 452 | (PARTITION p0 ENGINE = MyISAM, | ||
1811 | 453 | PARTITION p1 ENGINE = MyISAM) */ | ||
1812 | 419 | alter table t1 engine=heap; | 454 | alter table t1 engine=heap; |
1813 | 420 | show create table t1; | 455 | show create table t1; |
1814 | 421 | Table Create Table | 456 | Table Create Table |
1815 | 422 | t1 CREATE TABLE `t1` ( | 457 | t1 CREATE TABLE `t1` ( |
1816 | 423 | `a` int(11) DEFAULT NULL | 458 | `a` int(11) DEFAULT NULL |
1818 | 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 |
1819 | 460 | /*!50100 PARTITION BY KEY (a) | ||
1820 | 461 | (PARTITION p0 ENGINE = MEMORY, | ||
1821 | 462 | PARTITION p1 ENGINE = MEMORY) */ | ||
1822 | 425 | alter table t1 remove partitioning; | 463 | alter table t1 remove partitioning; |
1823 | 426 | show create table t1; | 464 | show create table t1; |
1824 | 427 | Table Create Table | 465 | Table Create Table |
1825 | @@ -438,7 +476,10 @@ | |||
1826 | 438 | Table Create Table | 476 | Table Create Table |
1827 | 439 | t1 CREATE TABLE `t1` ( | 477 | t1 CREATE TABLE `t1` ( |
1828 | 440 | `a` int(11) DEFAULT NULL | 478 | `a` int(11) DEFAULT NULL |
1830 | 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 |
1831 | 480 | /*!50100 PARTITION BY KEY (a) | ||
1832 | 481 | (PARTITION p0 ENGINE = MyISAM, | ||
1833 | 482 | PARTITION p1 ENGINE = MyISAM) */ | ||
1834 | 442 | alter table t1 add column b int remove partitioning; | 483 | alter table t1 add column b int remove partitioning; |
1835 | 443 | show create table t1; | 484 | show create table t1; |
1836 | 444 | Table Create Table | 485 | Table Create Table |
1837 | @@ -455,7 +496,10 @@ | |||
1838 | 455 | t1 CREATE TABLE `t1` ( | 496 | t1 CREATE TABLE `t1` ( |
1839 | 456 | `a` int(11) DEFAULT NULL, | 497 | `a` int(11) DEFAULT NULL, |
1840 | 457 | `b` int(11) DEFAULT NULL | 498 | `b` int(11) DEFAULT NULL |
1842 | 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 |
1843 | 500 | /*!50100 PARTITION BY KEY (a) | ||
1844 | 501 | (PARTITION p0 ENGINE = MyISAM, | ||
1845 | 502 | PARTITION p1 ENGINE = MyISAM) */ | ||
1846 | 459 | alter table t1 | 503 | alter table t1 |
1847 | 460 | engine=heap | 504 | engine=heap |
1848 | 461 | partition by key(a) | 505 | partition by key(a) |
1849 | @@ -465,7 +509,10 @@ | |||
1850 | 465 | t1 CREATE TABLE `t1` ( | 509 | t1 CREATE TABLE `t1` ( |
1851 | 466 | `a` int(11) DEFAULT NULL, | 510 | `a` int(11) DEFAULT NULL, |
1852 | 467 | `b` int(11) DEFAULT NULL | 511 | `b` int(11) DEFAULT NULL |
1854 | 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 |
1855 | 513 | /*!50100 PARTITION BY KEY (a) | ||
1856 | 514 | (PARTITION p0 ENGINE = MEMORY, | ||
1857 | 515 | PARTITION p1 ENGINE = MEMORY) */ | ||
1858 | 469 | alter table t1 engine=myisam, add column c int remove partitioning; | 516 | alter table t1 engine=myisam, add column c int remove partitioning; |
1859 | 470 | show create table t1; | 517 | show create table t1; |
1860 | 471 | Table Create Table | 518 | Table Create Table |
1861 | @@ -484,7 +531,10 @@ | |||
1862 | 484 | `a` int(11) DEFAULT NULL, | 531 | `a` int(11) DEFAULT NULL, |
1863 | 485 | `b` int(11) DEFAULT NULL, | 532 | `b` int(11) DEFAULT NULL, |
1864 | 486 | `c` int(11) DEFAULT NULL | 533 | `c` int(11) DEFAULT NULL |
1866 | 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 |
1867 | 535 | /*!50100 PARTITION BY KEY (a) | ||
1868 | 536 | (PARTITION p0 ENGINE = MEMORY, | ||
1869 | 537 | PARTITION p1 ENGINE = MEMORY) */ | ||
1870 | 488 | alter table t1 | 538 | alter table t1 |
1871 | 489 | partition by key (a) | 539 | partition by key (a) |
1872 | 490 | (partition p0, partition p1); | 540 | (partition p0, partition p1); |
1873 | @@ -494,7 +544,10 @@ | |||
1874 | 494 | `a` int(11) DEFAULT NULL, | 544 | `a` int(11) DEFAULT NULL, |
1875 | 495 | `b` int(11) DEFAULT NULL, | 545 | `b` int(11) DEFAULT NULL, |
1876 | 496 | `c` int(11) DEFAULT NULL | 546 | `c` int(11) DEFAULT NULL |
1878 | 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 |
1879 | 548 | /*!50100 PARTITION BY KEY (a) | ||
1880 | 549 | (PARTITION p0 ENGINE = MEMORY, | ||
1881 | 550 | PARTITION p1 ENGINE = MEMORY) */ | ||
1882 | 498 | alter table t1 | 551 | alter table t1 |
1883 | 499 | engine=heap | 552 | engine=heap |
1884 | 500 | partition by key (a) | 553 | partition by key (a) |
1885 | @@ -505,7 +558,10 @@ | |||
1886 | 505 | `a` int(11) DEFAULT NULL, | 558 | `a` int(11) DEFAULT NULL, |
1887 | 506 | `b` int(11) DEFAULT NULL, | 559 | `b` int(11) DEFAULT NULL, |
1888 | 507 | `c` int(11) DEFAULT NULL | 560 | `c` int(11) DEFAULT NULL |
1890 | 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 |
1891 | 562 | /*!50100 PARTITION BY KEY (a) | ||
1892 | 563 | (PARTITION p0 ENGINE = MEMORY, | ||
1893 | 564 | PARTITION p1 ENGINE = MEMORY) */ | ||
1894 | 509 | alter table t1 | 565 | alter table t1 |
1895 | 510 | partition by key(a) | 566 | partition by key(a) |
1896 | 511 | (partition p0, partition p1 engine=heap); | 567 | (partition p0, partition p1 engine=heap); |
1897 | @@ -648,14 +704,23 @@ | |||
1898 | 648 | Table Create Table | 704 | Table Create Table |
1899 | 649 | t1 CREATE TABLE `t1` ( | 705 | t1 CREATE TABLE `t1` ( |
1900 | 650 | `a` int(11) DEFAULT NULL | 706 | `a` int(11) DEFAULT NULL |
1902 | 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 |
1903 | 708 | /*!50100 PARTITION BY RANGE (a) | ||
1904 | 709 | SUBPARTITION BY HASH (a) | ||
1905 | 710 | (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM) */ | ||
1906 | 652 | alter table t1 add partition (partition p1 values less than (200) | 711 | alter table t1 add partition (partition p1 values less than (200) |
1907 | 653 | (subpartition subpart21)); | 712 | (subpartition subpart21)); |
1908 | 654 | show create table t1; | 713 | show create table t1; |
1909 | 655 | Table Create Table | 714 | Table Create Table |
1910 | 656 | t1 CREATE TABLE `t1` ( | 715 | t1 CREATE TABLE `t1` ( |
1911 | 657 | `a` int(11) DEFAULT NULL | 716 | `a` int(11) DEFAULT NULL |
1913 | 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 |
1914 | 718 | /*!50100 PARTITION BY RANGE (a) | ||
1915 | 719 | SUBPARTITION BY HASH (a) | ||
1916 | 720 | (PARTITION p0 VALUES LESS THAN (100) | ||
1917 | 721 | (SUBPARTITION p0sp0 ENGINE = MyISAM), | ||
1918 | 722 | PARTITION p1 VALUES LESS THAN (200) | ||
1919 | 723 | (SUBPARTITION subpart21 ENGINE = MyISAM)) */ | ||
1920 | 659 | drop table t1; | 724 | drop table t1; |
1921 | 660 | create table t1 (a int) | 725 | create table t1 (a int) |
1922 | 661 | partition by key (a); | 726 | partition by key (a); |
1923 | @@ -663,13 +728,17 @@ | |||
1924 | 663 | Table Create Table | 728 | Table Create Table |
1925 | 664 | t1 CREATE TABLE `t1` ( | 729 | t1 CREATE TABLE `t1` ( |
1926 | 665 | `a` int(11) DEFAULT NULL | 730 | `a` int(11) DEFAULT NULL |
1928 | 666 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) */ | 731 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
1929 | 732 | /*!50100 PARTITION BY KEY (a) */ | ||
1930 | 667 | alter table t1 add partition (partition p1); | 733 | alter table t1 add partition (partition p1); |
1931 | 668 | show create table t1; | 734 | show create table t1; |
1932 | 669 | Table Create Table | 735 | Table Create Table |
1933 | 670 | t1 CREATE TABLE `t1` ( | 736 | t1 CREATE TABLE `t1` ( |
1934 | 671 | `a` int(11) DEFAULT NULL | 737 | `a` int(11) DEFAULT NULL |
1936 | 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 |
1937 | 739 | /*!50100 PARTITION BY KEY (a) | ||
1938 | 740 | (PARTITION p0 ENGINE = MyISAM, | ||
1939 | 741 | PARTITION p1 ENGINE = MyISAM) */ | ||
1940 | 673 | drop table t1; | 742 | drop table t1; |
1941 | 674 | create table t1 (a int, b int) | 743 | create table t1 (a int, b int) |
1942 | 675 | partition by range (a) | 744 | partition by range (a) |
1943 | @@ -746,7 +815,10 @@ | |||
1944 | 746 | t1 CREATE TABLE `t1` ( | 815 | t1 CREATE TABLE `t1` ( |
1945 | 747 | `a` int(11) DEFAULT NULL, | 816 | `a` int(11) DEFAULT NULL, |
1946 | 748 | `b` int(11) DEFAULT NULL | 817 | `b` int(11) DEFAULT NULL |
1948 | 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 |
1949 | 819 | /*!50100 PARTITION BY LIST (a) | ||
1950 | 820 | (PARTITION p1 VALUES IN (1) ENGINE = MyISAM, | ||
1951 | 821 | PARTITION p2 VALUES IN (2) ENGINE = MyISAM) */ | ||
1952 | 750 | drop table t1; | 822 | drop table t1; |
1953 | 751 | create table t1 (a int unsigned not null auto_increment primary key) | 823 | create table t1 (a int unsigned not null auto_increment primary key) |
1954 | 752 | partition by key(a); | 824 | partition by key(a); |
1955 | @@ -757,7 +829,8 @@ | |||
1956 | 757 | `a` int(10) unsigned NOT NULL AUTO_INCREMENT, | 829 | `a` int(10) unsigned NOT NULL AUTO_INCREMENT, |
1957 | 758 | `c` char(10) DEFAULT NULL, | 830 | `c` char(10) DEFAULT NULL, |
1958 | 759 | PRIMARY KEY (`a`) | 831 | PRIMARY KEY (`a`) |
1960 | 760 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment' /*!50100 PARTITION BY KEY (a) */ | 832 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='no comment' |
1961 | 833 | /*!50100 PARTITION BY KEY (a) */ | ||
1962 | 761 | drop table t2; | 834 | drop table t2; |
1963 | 762 | create table t1 (f1 int) partition by hash (f1) as select 1; | 835 | create table t1 (f1 int) partition by hash (f1) as select 1; |
1964 | 763 | drop table t1; | 836 | drop table t1; |
1965 | @@ -954,7 +1027,9 @@ | |||
1966 | 954 | Table Create Table | 1027 | Table Create Table |
1967 | 955 | t1 CREATE TABLE `t1` ( | 1028 | t1 CREATE TABLE `t1` ( |
1968 | 956 | `a` int(11) DEFAULT NULL | 1029 | `a` int(11) DEFAULT NULL |
1970 | 957 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY LIST (a) (PARTITION p0 VALUES IN (NULL) ENGINE = MyISAM) */ | 1030 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
1971 | 1031 | /*!50100 PARTITION BY LIST (a) | ||
1972 | 1032 | (PARTITION p0 VALUES IN (NULL) ENGINE = MyISAM) */ | ||
1973 | 958 | DROP TABLE t1; | 1033 | DROP TABLE t1; |
1974 | 959 | CREATE TABLE t1 (a int) | 1034 | CREATE TABLE t1 (a int) |
1975 | 960 | PARTITION BY RANGE(a) | 1035 | PARTITION BY RANGE(a) |
1976 | @@ -990,7 +1065,9 @@ | |||
1977 | 990 | Table Create Table | 1065 | Table Create Table |
1978 | 991 | t1 CREATE TABLE `t1` ( | 1066 | t1 CREATE TABLE `t1` ( |
1979 | 992 | `a` int(11) DEFAULT NULL | 1067 | `a` int(11) DEFAULT NULL |
1981 | 993 | ) /*!50100 PARTITION BY KEY (a) (PARTITION p0) */ | 1068 | ) |
1982 | 1069 | /*!50100 PARTITION BY KEY (a) | ||
1983 | 1070 | (PARTITION p0) */ | ||
1984 | 994 | set session sql_mode=''; | 1071 | set session sql_mode=''; |
1985 | 995 | drop table t1; | 1072 | drop table t1; |
1986 | 996 | create table t1 (a int) | 1073 | create table t1 (a int) |
1987 | @@ -1004,7 +1081,8 @@ | |||
1988 | 1004 | Table Create Table | 1081 | Table Create Table |
1989 | 1005 | t1 CREATE TABLE `t1` ( | 1082 | t1 CREATE TABLE `t1` ( |
1990 | 1006 | `a` varchar(1) DEFAULT NULL | 1083 | `a` varchar(1) DEFAULT NULL |
1992 | 1007 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) */ | 1084 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
1993 | 1085 | /*!50100 PARTITION BY KEY (a) */ | ||
1994 | 1008 | drop table t1; | 1086 | drop table t1; |
1995 | 1009 | CREATE TABLE t1 (a int) ENGINE = MYISAM PARTITION BY KEY(a); | 1087 | CREATE TABLE t1 (a int) ENGINE = MYISAM PARTITION BY KEY(a); |
1996 | 1010 | INSERT into t1 values (1), (2); | 1088 | INSERT into t1 values (1), (2); |
1997 | @@ -1073,7 +1151,9 @@ | |||
1998 | 1073 | t1 CREATE TABLE `t1` ( | 1151 | t1 CREATE TABLE `t1` ( |
1999 | 1074 | `a` bigint(20) unsigned NOT NULL, | 1152 | `a` bigint(20) unsigned NOT NULL, |
2000 | 1075 | PRIMARY KEY (`a`) | 1153 | PRIMARY KEY (`a`) |
2002 | 1076 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 10 */ | 1154 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
2003 | 1155 | /*!50100 PARTITION BY KEY (a) | ||
2004 | 1156 | PARTITIONS 10 */ | ||
2005 | 1077 | insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), | 1157 | insert into t1 values (18446744073709551615), (0xFFFFFFFFFFFFFFFE), |
2006 | 1078 | (18446744073709551613), (18446744073709551612); | 1158 | (18446744073709551613), (18446744073709551612); |
2007 | 1079 | select * from t1; | 1159 | select * from t1; |
2008 | 1080 | 1160 | ||
2009 | === modified file 'test/mysql-test/r/partition_02myisam.result' | |||
2010 | --- test/mysql-test/r/partition_02myisam.result 2008-06-09 12:49:32 +0000 | |||
2011 | +++ test/mysql-test/r/partition_02myisam.result 2009-06-02 20:12:58 +0000 | |||
2012 | @@ -92,7 +92,9 @@ | |||
2013 | 92 | t1 CREATE TABLE `t1` ( | 92 | t1 CREATE TABLE `t1` ( |
2014 | 93 | `f1` int(11) DEFAULT NULL, | 93 | `f1` int(11) DEFAULT NULL, |
2015 | 94 | `f2` char(20) DEFAULT NULL | 94 | `f2` char(20) DEFAULT NULL |
2017 | 95 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) PARTITIONS 2 */ | 95 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2018 | 96 | /*!50100 PARTITION BY HASH (f1) | ||
2019 | 97 | PARTITIONS 2 */ | ||
2020 | 96 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 98 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2021 | 97 | my_value | 99 | my_value |
2022 | 98 | 1 | 100 | 1 |
2023 | @@ -147,7 +149,10 @@ | |||
2024 | 147 | t1 CREATE TABLE `t1` ( | 149 | t1 CREATE TABLE `t1` ( |
2025 | 148 | `f1` int(11) DEFAULT NULL, | 150 | `f1` int(11) DEFAULT NULL, |
2026 | 149 | `f2` char(20) DEFAULT NULL | 151 | `f2` char(20) DEFAULT NULL |
2028 | 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 |
2029 | 153 | /*!50100 PARTITION BY HASH (f1) | ||
2030 | 154 | (PARTITION part1 ENGINE = PBXT, | ||
2031 | 155 | PARTITION part2 ENGINE = PBXT) */ | ||
2032 | 151 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 156 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2033 | 152 | my_value | 157 | my_value |
2034 | 153 | 1 | 158 | 1 |
2035 | @@ -205,7 +210,15 @@ | |||
2036 | 205 | t1 CREATE TABLE `t1` ( | 210 | t1 CREATE TABLE `t1` ( |
2037 | 206 | `f1` int(11) DEFAULT NULL, | 211 | `f1` int(11) DEFAULT NULL, |
2038 | 207 | `f2` char(20) DEFAULT NULL | 212 | `f2` char(20) DEFAULT NULL |
2040 | 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 |
2041 | 214 | /*!50100 PARTITION BY RANGE (f1) | ||
2042 | 215 | SUBPARTITION BY HASH (f1) | ||
2043 | 216 | (PARTITION part1 VALUES LESS THAN (100) | ||
2044 | 217 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2045 | 218 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2046 | 219 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2047 | 220 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2048 | 221 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2049 | 209 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 222 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2050 | 210 | my_value | 223 | my_value |
2051 | 211 | 1 | 224 | 1 |
2052 | @@ -260,7 +273,10 @@ | |||
2053 | 260 | t1 CREATE TABLE `t1` ( | 273 | t1 CREATE TABLE `t1` ( |
2054 | 261 | `f1` int(11) DEFAULT NULL, | 274 | `f1` int(11) DEFAULT NULL, |
2055 | 262 | `f2` char(20) DEFAULT NULL | 275 | `f2` char(20) DEFAULT NULL |
2057 | 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 |
2058 | 277 | /*!50100 PARTITION BY HASH (f1) | ||
2059 | 278 | (PARTITION part1 ENGINE = PBXT, | ||
2060 | 279 | PARTITION part2 ENGINE = PBXT) */ | ||
2061 | 264 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 280 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2062 | 265 | my_value | 281 | my_value |
2063 | 266 | 1 | 282 | 1 |
2064 | @@ -313,7 +329,10 @@ | |||
2065 | 313 | t1 CREATE TABLE `t1` ( | 329 | t1 CREATE TABLE `t1` ( |
2066 | 314 | `f1` int(11) DEFAULT NULL, | 330 | `f1` int(11) DEFAULT NULL, |
2067 | 315 | `f2` char(20) DEFAULT NULL | 331 | `f2` char(20) DEFAULT NULL |
2069 | 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 |
2070 | 333 | /*!50100 PARTITION BY HASH (f1) | ||
2071 | 334 | (PARTITION part1 ENGINE = PBXT, | ||
2072 | 335 | PARTITION part2 ENGINE = PBXT) */ | ||
2073 | 317 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 336 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2074 | 318 | my_value | 337 | my_value |
2075 | 319 | 1 | 338 | 1 |
2076 | @@ -371,7 +390,15 @@ | |||
2077 | 371 | t1 CREATE TABLE `t1` ( | 390 | t1 CREATE TABLE `t1` ( |
2078 | 372 | `f1` int(11) DEFAULT NULL, | 391 | `f1` int(11) DEFAULT NULL, |
2079 | 373 | `f2` char(20) DEFAULT NULL | 392 | `f2` char(20) DEFAULT NULL |
2081 | 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 |
2082 | 394 | /*!50100 PARTITION BY RANGE (f1) | ||
2083 | 395 | SUBPARTITION BY HASH (f1) | ||
2084 | 396 | (PARTITION part1 VALUES LESS THAN (100) | ||
2085 | 397 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2086 | 398 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2087 | 399 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2088 | 400 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2089 | 401 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2090 | 375 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 402 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2091 | 376 | my_value | 403 | my_value |
2092 | 377 | 1 | 404 | 1 |
2093 | @@ -429,7 +456,15 @@ | |||
2094 | 429 | t1 CREATE TABLE `t1` ( | 456 | t1 CREATE TABLE `t1` ( |
2095 | 430 | `f1` int(11) DEFAULT NULL, | 457 | `f1` int(11) DEFAULT NULL, |
2096 | 431 | `f2` char(20) DEFAULT NULL | 458 | `f2` char(20) DEFAULT NULL |
2098 | 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 |
2099 | 460 | /*!50100 PARTITION BY RANGE (f1) | ||
2100 | 461 | SUBPARTITION BY HASH (f1) | ||
2101 | 462 | (PARTITION part1 VALUES LESS THAN (100) | ||
2102 | 463 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2103 | 464 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2104 | 465 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2105 | 466 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2106 | 467 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2107 | 433 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 468 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2108 | 434 | my_value | 469 | my_value |
2109 | 435 | 1 | 470 | 1 |
2110 | @@ -489,7 +524,15 @@ | |||
2111 | 489 | t1 CREATE TABLE `t1` ( | 524 | t1 CREATE TABLE `t1` ( |
2112 | 490 | `f1` int(11) DEFAULT NULL, | 525 | `f1` int(11) DEFAULT NULL, |
2113 | 491 | `f2` char(20) DEFAULT NULL | 526 | `f2` char(20) DEFAULT NULL |
2115 | 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 |
2116 | 528 | /*!50100 PARTITION BY RANGE (f1) | ||
2117 | 529 | SUBPARTITION BY HASH (f1) | ||
2118 | 530 | (PARTITION part1 VALUES LESS THAN (100) | ||
2119 | 531 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2120 | 532 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2121 | 533 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2122 | 534 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2123 | 535 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2124 | 493 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 536 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2125 | 494 | my_value | 537 | my_value |
2126 | 495 | 1 | 538 | 1 |
2127 | @@ -547,7 +590,15 @@ | |||
2128 | 547 | t1 CREATE TABLE `t1` ( | 590 | t1 CREATE TABLE `t1` ( |
2129 | 548 | `f1` int(11) DEFAULT NULL, | 591 | `f1` int(11) DEFAULT NULL, |
2130 | 549 | `f2` char(20) DEFAULT NULL | 592 | `f2` char(20) DEFAULT NULL |
2132 | 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 |
2133 | 594 | /*!50100 PARTITION BY RANGE (f1) | ||
2134 | 595 | SUBPARTITION BY HASH (f1) | ||
2135 | 596 | (PARTITION part1 VALUES LESS THAN (100) | ||
2136 | 597 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2137 | 598 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2138 | 599 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2139 | 600 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2140 | 601 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2141 | 551 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 602 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2142 | 552 | my_value | 603 | my_value |
2143 | 553 | 1 | 604 | 1 |
2144 | @@ -603,7 +654,10 @@ | |||
2145 | 603 | t1 CREATE TABLE `t1` ( | 654 | t1 CREATE TABLE `t1` ( |
2146 | 604 | `f1` int(11) DEFAULT NULL, | 655 | `f1` int(11) DEFAULT NULL, |
2147 | 605 | `f2` char(20) DEFAULT NULL | 656 | `f2` char(20) DEFAULT NULL |
2149 | 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 |
2150 | 658 | /*!50100 PARTITION BY HASH (f1) | ||
2151 | 659 | (PARTITION part1 ENGINE = PBXT, | ||
2152 | 660 | PARTITION part2 ENGINE = PBXT) */ | ||
2153 | 607 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 661 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2154 | 608 | my_value | 662 | my_value |
2155 | 609 | 1 | 663 | 1 |
2156 | @@ -661,7 +715,15 @@ | |||
2157 | 661 | t1 CREATE TABLE `t1` ( | 715 | t1 CREATE TABLE `t1` ( |
2158 | 662 | `f1` int(11) DEFAULT NULL, | 716 | `f1` int(11) DEFAULT NULL, |
2159 | 663 | `f2` char(20) DEFAULT NULL | 717 | `f2` char(20) DEFAULT NULL |
2161 | 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 |
2162 | 719 | /*!50100 PARTITION BY RANGE (f1) | ||
2163 | 720 | SUBPARTITION BY HASH (f1) | ||
2164 | 721 | (PARTITION part1 VALUES LESS THAN (100) | ||
2165 | 722 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2166 | 723 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2167 | 724 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2168 | 725 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2169 | 726 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2170 | 665 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 727 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2171 | 666 | my_value | 728 | my_value |
2172 | 667 | 1 | 729 | 1 |
2173 | @@ -721,7 +783,15 @@ | |||
2174 | 721 | t1 CREATE TABLE `t1` ( | 783 | t1 CREATE TABLE `t1` ( |
2175 | 722 | `f1` int(11) DEFAULT NULL, | 784 | `f1` int(11) DEFAULT NULL, |
2176 | 723 | `f2` char(20) DEFAULT NULL | 785 | `f2` char(20) DEFAULT NULL |
2178 | 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 |
2179 | 787 | /*!50100 PARTITION BY RANGE (f1) | ||
2180 | 788 | SUBPARTITION BY HASH (f1) | ||
2181 | 789 | (PARTITION part1 VALUES LESS THAN (100) | ||
2182 | 790 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2183 | 791 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2184 | 792 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2185 | 793 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2186 | 794 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2187 | 725 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 795 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2188 | 726 | my_value | 796 | my_value |
2189 | 727 | 1 | 797 | 1 |
2190 | @@ -782,7 +852,8 @@ | |||
2191 | 782 | t1 CREATE TABLE `t1` ( | 852 | t1 CREATE TABLE `t1` ( |
2192 | 783 | `f1` int(11) DEFAULT NULL, | 853 | `f1` int(11) DEFAULT NULL, |
2193 | 784 | `f2` char(20) DEFAULT NULL | 854 | `f2` char(20) DEFAULT NULL |
2195 | 785 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) */ | 855 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2196 | 856 | /*!50100 PARTITION BY HASH (f1) */ | ||
2197 | 786 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 857 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2198 | 787 | my_value | 858 | my_value |
2199 | 788 | 1 | 859 | 1 |
2200 | @@ -833,7 +904,10 @@ | |||
2201 | 833 | t1 CREATE TABLE `t1` ( | 904 | t1 CREATE TABLE `t1` ( |
2202 | 834 | `f1` int(11) DEFAULT NULL, | 905 | `f1` int(11) DEFAULT NULL, |
2203 | 835 | `f2` char(20) DEFAULT NULL | 906 | `f2` char(20) DEFAULT NULL |
2205 | 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 |
2206 | 908 | /*!50100 PARTITION BY HASH (f1) | ||
2207 | 909 | (PARTITION part1 ENGINE = PBXT, | ||
2208 | 910 | PARTITION part2 ENGINE = PBXT) */ | ||
2209 | 837 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 911 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2210 | 838 | my_value | 912 | my_value |
2211 | 839 | 1 | 913 | 1 |
2212 | @@ -891,7 +965,18 @@ | |||
2213 | 891 | t1 CREATE TABLE `t1` ( | 965 | t1 CREATE TABLE `t1` ( |
2214 | 892 | `f1` int(11) DEFAULT NULL, | 966 | `f1` int(11) DEFAULT NULL, |
2215 | 893 | `f2` char(20) DEFAULT NULL | 967 | `f2` char(20) DEFAULT NULL |
2217 | 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 |
2218 | 969 | /*!50100 PARTITION BY RANGE (f1) | ||
2219 | 970 | SUBPARTITION BY HASH (f1) | ||
2220 | 971 | (PARTITION part1 VALUES LESS THAN (100) | ||
2221 | 972 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2222 | 973 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2223 | 974 | PARTITION part2 VALUES LESS THAN (200) | ||
2224 | 975 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2225 | 976 | SUBPARTITION subpart22 ENGINE = PBXT), | ||
2226 | 977 | PARTITION part3 VALUES LESS THAN (2147483647) | ||
2227 | 978 | (SUBPARTITION subpart31 ENGINE = PBXT, | ||
2228 | 979 | SUBPARTITION subpart32 ENGINE = PBXT)) */ | ||
2229 | 895 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 980 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2230 | 896 | my_value | 981 | my_value |
2231 | 897 | 1 | 982 | 1 |
2232 | @@ -944,7 +1029,9 @@ | |||
2233 | 944 | t1 CREATE TABLE `t1` ( | 1029 | t1 CREATE TABLE `t1` ( |
2234 | 945 | `f1` int(11) DEFAULT NULL, | 1030 | `f1` int(11) DEFAULT NULL, |
2235 | 946 | `f2` char(20) DEFAULT NULL | 1031 | `f2` char(20) DEFAULT NULL |
2237 | 947 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) PARTITIONS 2 */ | 1032 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2238 | 1033 | /*!50100 PARTITION BY HASH (f1) | ||
2239 | 1034 | PARTITIONS 2 */ | ||
2240 | 948 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 1035 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2241 | 949 | my_value | 1036 | my_value |
2242 | 950 | 1 | 1037 | 1 |
2243 | @@ -996,7 +1083,12 @@ | |||
2244 | 996 | t1 CREATE TABLE `t1` ( | 1083 | t1 CREATE TABLE `t1` ( |
2245 | 997 | `f1` int(11) DEFAULT NULL, | 1084 | `f1` int(11) DEFAULT NULL, |
2246 | 998 | `f2` char(20) DEFAULT NULL | 1085 | `f2` char(20) DEFAULT NULL |
2248 | 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 |
2249 | 1087 | /*!50100 PARTITION BY RANGE (f1) | ||
2250 | 1088 | SUBPARTITION BY HASH (f1) | ||
2251 | 1089 | SUBPARTITIONS 2 | ||
2252 | 1090 | (PARTITION part1 VALUES LESS THAN (100) ENGINE = PBXT, | ||
2253 | 1091 | PARTITION part2 VALUES LESS THAN (2147483647) ENGINE = PBXT) */ | ||
2254 | 1000 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 1092 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2255 | 1001 | my_value | 1093 | my_value |
2256 | 1002 | 1 | 1094 | 1 |
2257 | @@ -1046,7 +1138,9 @@ | |||
2258 | 1046 | t1 CREATE TABLE `t1` ( | 1138 | t1 CREATE TABLE `t1` ( |
2259 | 1047 | `f1` int(11) DEFAULT NULL, | 1139 | `f1` int(11) DEFAULT NULL, |
2260 | 1048 | `f2` char(20) DEFAULT NULL | 1140 | `f2` char(20) DEFAULT NULL |
2262 | 1049 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) PARTITIONS 1 */ | 1141 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2263 | 1142 | /*!50100 PARTITION BY HASH (f1) | ||
2264 | 1143 | PARTITIONS 1 */ | ||
2265 | 1050 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 1144 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2266 | 1051 | my_value | 1145 | my_value |
2267 | 1052 | 1 | 1146 | 1 |
2268 | @@ -1098,7 +1192,12 @@ | |||
2269 | 1098 | t1 CREATE TABLE `t1` ( | 1192 | t1 CREATE TABLE `t1` ( |
2270 | 1099 | `f1` int(11) DEFAULT NULL, | 1193 | `f1` int(11) DEFAULT NULL, |
2271 | 1100 | `f2` char(20) DEFAULT NULL | 1194 | `f2` char(20) DEFAULT NULL |
2273 | 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 |
2274 | 1196 | /*!50100 PARTITION BY RANGE (f1) | ||
2275 | 1197 | SUBPARTITION BY HASH (f1) | ||
2276 | 1198 | SUBPARTITIONS 1 | ||
2277 | 1199 | (PARTITION part1 VALUES LESS THAN (100) ENGINE = PBXT, | ||
2278 | 1200 | PARTITION part2 VALUES LESS THAN (2147483647) ENGINE = PBXT) */ | ||
2279 | 1102 | SELECT COUNT(*) = 0 AS my_value FROM t1; | 1201 | SELECT COUNT(*) = 0 AS my_value FROM t1; |
2280 | 1103 | my_value | 1202 | my_value |
2281 | 1104 | 1 | 1203 | 1 |
2282 | @@ -1304,7 +1403,10 @@ | |||
2283 | 1304 | t1 CREATE TABLE `t1` ( | 1403 | t1 CREATE TABLE `t1` ( |
2284 | 1305 | `f1` int(11) DEFAULT NULL, | 1404 | `f1` int(11) DEFAULT NULL, |
2285 | 1306 | `f2` char(20) DEFAULT NULL | 1405 | `f2` char(20) DEFAULT NULL |
2287 | 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 |
2288 | 1407 | /*!50100 PARTITION BY HASH (f1) | ||
2289 | 1408 | (PARTITION part1 ENGINE = PBXT, | ||
2290 | 1409 | PARTITION part2 ENGINE = PBXT) */ | ||
2291 | 1308 | DROP TABLE t1; | 1410 | DROP TABLE t1; |
2292 | 1309 | CREATE TABLE t1 ( f1 INTEGER, f2 char(20)) | 1411 | CREATE TABLE t1 ( f1 INTEGER, f2 char(20)) |
2293 | 1310 | PARTITION BY RANGE(f1) PARTITIONS 2 | 1412 | PARTITION BY RANGE(f1) PARTITIONS 2 |
2294 | @@ -1319,7 +1421,15 @@ | |||
2295 | 1319 | t1 CREATE TABLE `t1` ( | 1421 | t1 CREATE TABLE `t1` ( |
2296 | 1320 | `f1` int(11) DEFAULT NULL, | 1422 | `f1` int(11) DEFAULT NULL, |
2297 | 1321 | `f2` char(20) DEFAULT NULL | 1423 | `f2` char(20) DEFAULT NULL |
2299 | 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 |
2300 | 1425 | /*!50100 PARTITION BY RANGE (f1) | ||
2301 | 1426 | SUBPARTITION BY HASH (f1) | ||
2302 | 1427 | (PARTITION part1 VALUES LESS THAN (1000) | ||
2303 | 1428 | (SUBPARTITION subpart11 ENGINE = PBXT, | ||
2304 | 1429 | SUBPARTITION subpart12 ENGINE = PBXT), | ||
2305 | 1430 | PARTITION part2 VALUES LESS THAN (2147483647) | ||
2306 | 1431 | (SUBPARTITION subpart21 ENGINE = PBXT, | ||
2307 | 1432 | SUBPARTITION subpart22 ENGINE = PBXT)) */ | ||
2308 | 1323 | DROP TABLE t1; | 1433 | DROP TABLE t1; |
2309 | 1324 | # 3.3.2 (positive) number of partition/subpartition , | 1434 | # 3.3.2 (positive) number of partition/subpartition , |
2310 | 1325 | # 0 (= no) named partition/subpartition | 1435 | # 0 (= no) named partition/subpartition |
2311 | @@ -1446,7 +1556,8 @@ | |||
2312 | 1446 | t1 CREATE TABLE `t1` ( | 1556 | t1 CREATE TABLE `t1` ( |
2313 | 1447 | `f1` int(11) DEFAULT NULL, | 1557 | `f1` int(11) DEFAULT NULL, |
2314 | 1448 | `f2` char(20) DEFAULT NULL | 1558 | `f2` char(20) DEFAULT NULL |
2316 | 1449 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (f1) */ | 1559 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2317 | 1560 | /*!50100 PARTITION BY HASH (f1) */ | ||
2318 | 1450 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1; | 1561 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1; |
2319 | 1451 | ALTER TABLE t1 ADD PARTITION (PARTITION part1); | 1562 | ALTER TABLE t1 ADD PARTITION (PARTITION part1); |
2320 | 1452 | SHOW CREATE TABLE t1; | 1563 | SHOW CREATE TABLE t1; |
2321 | @@ -1454,7 +1565,10 @@ | |||
2322 | 1454 | t1 CREATE TABLE `t1` ( | 1565 | t1 CREATE TABLE `t1` ( |
2323 | 1455 | `f1` int(11) DEFAULT NULL, | 1566 | `f1` int(11) DEFAULT NULL, |
2324 | 1456 | `f2` char(20) DEFAULT NULL | 1567 | `f2` char(20) DEFAULT NULL |
2326 | 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 |
2327 | 1569 | /*!50100 PARTITION BY HASH (f1) | ||
2328 | 1570 | (PARTITION p0 ENGINE = PBXT, | ||
2329 | 1571 | PARTITION part1 ENGINE = PBXT) */ | ||
2330 | 1458 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; | 1572 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; |
2331 | 1459 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) | 1573 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) |
2332 | 1460 | AS my_value FROM t1; | 1574 | AS my_value FROM t1; |
2333 | @@ -1502,7 +1616,10 @@ | |||
2334 | 1502 | t1 CREATE TABLE `t1` ( | 1616 | t1 CREATE TABLE `t1` ( |
2335 | 1503 | `f1` int(11) DEFAULT NULL, | 1617 | `f1` int(11) DEFAULT NULL, |
2336 | 1504 | `f2` char(20) DEFAULT NULL | 1618 | `f2` char(20) DEFAULT NULL |
2338 | 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 |
2339 | 1620 | /*!50100 PARTITION BY HASH (f1) | ||
2340 | 1621 | (PARTITION part1 ENGINE = PBXT, | ||
2341 | 1622 | PARTITION part3 ENGINE = PBXT) */ | ||
2342 | 1506 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1; | 1623 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1; |
2343 | 1507 | ALTER TABLE t1 ADD PARTITION (PARTITION part0); | 1624 | ALTER TABLE t1 ADD PARTITION (PARTITION part0); |
2344 | 1508 | SHOW CREATE TABLE t1; | 1625 | SHOW CREATE TABLE t1; |
2345 | @@ -1510,7 +1627,11 @@ | |||
2346 | 1510 | t1 CREATE TABLE `t1` ( | 1627 | t1 CREATE TABLE `t1` ( |
2347 | 1511 | `f1` int(11) DEFAULT NULL, | 1628 | `f1` int(11) DEFAULT NULL, |
2348 | 1512 | `f2` char(20) DEFAULT NULL | 1629 | `f2` char(20) DEFAULT NULL |
2350 | 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 |
2351 | 1631 | /*!50100 PARTITION BY HASH (f1) | ||
2352 | 1632 | (PARTITION part1 ENGINE = PBXT, | ||
2353 | 1633 | PARTITION part3 ENGINE = PBXT, | ||
2354 | 1634 | PARTITION part0 ENGINE = PBXT) */ | ||
2355 | 1514 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; | 1635 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; |
2356 | 1515 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) | 1636 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) |
2357 | 1516 | AS my_value FROM t1; | 1637 | AS my_value FROM t1; |
2358 | @@ -1557,7 +1678,12 @@ | |||
2359 | 1557 | t1 CREATE TABLE `t1` ( | 1678 | t1 CREATE TABLE `t1` ( |
2360 | 1558 | `f1` int(11) DEFAULT NULL, | 1679 | `f1` int(11) DEFAULT NULL, |
2361 | 1559 | `f2` char(20) DEFAULT NULL | 1680 | `f2` char(20) DEFAULT NULL |
2363 | 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 |
2364 | 1682 | /*!50100 PARTITION BY HASH (f1) | ||
2365 | 1683 | (PARTITION part1 ENGINE = PBXT, | ||
2366 | 1684 | PARTITION part3 ENGINE = PBXT, | ||
2367 | 1685 | PARTITION part0 ENGINE = PBXT, | ||
2368 | 1686 | PARTITION part2 ENGINE = PBXT) */ | ||
2369 | 1561 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; | 1687 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; |
2370 | 1562 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) | 1688 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) |
2371 | 1563 | AS my_value FROM t1; | 1689 | AS my_value FROM t1; |
2372 | @@ -1603,7 +1729,12 @@ | |||
2373 | 1603 | t1 CREATE TABLE `t1` ( | 1729 | t1 CREATE TABLE `t1` ( |
2374 | 1604 | `f1` int(11) DEFAULT NULL, | 1730 | `f1` int(11) DEFAULT NULL, |
2375 | 1605 | `f2` char(20) DEFAULT NULL | 1731 | `f2` char(20) DEFAULT NULL |
2377 | 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 |
2378 | 1733 | /*!50100 PARTITION BY HASH (f1) | ||
2379 | 1734 | (PARTITION part1 ENGINE = PBXT, | ||
2380 | 1735 | PARTITION part3 ENGINE = PBXT, | ||
2381 | 1736 | PARTITION part0 ENGINE = PBXT, | ||
2382 | 1737 | PARTITION part2 ENGINE = PBXT) */ | ||
2383 | 1607 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; | 1738 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; |
2384 | 1608 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) | 1739 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) |
2385 | 1609 | AS my_value FROM t1; | 1740 | AS my_value FROM t1; |
2386 | @@ -1651,14 +1782,20 @@ | |||
2387 | 1651 | t1 CREATE TABLE `t1` ( | 1782 | t1 CREATE TABLE `t1` ( |
2388 | 1652 | `f1` int(11) DEFAULT NULL, | 1783 | `f1` int(11) DEFAULT NULL, |
2389 | 1653 | `f2` char(20) DEFAULT NULL | 1784 | `f2` char(20) DEFAULT NULL |
2391 | 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 |
2392 | 1786 | /*!50100 PARTITION BY HASH (f1) | ||
2393 | 1787 | (PARTITION part1 ENGINE = PBXT, | ||
2394 | 1788 | PARTITION part3 ENGINE = PBXT) */ | ||
2395 | 1655 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1; | 1789 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 1 AND 100 - 1; |
2396 | 1656 | SHOW CREATE TABLE t1; | 1790 | SHOW CREATE TABLE t1; |
2397 | 1657 | Table Create Table | 1791 | Table Create Table |
2398 | 1658 | t1 CREATE TABLE `t1` ( | 1792 | t1 CREATE TABLE `t1` ( |
2399 | 1659 | `f1` int(11) DEFAULT NULL, | 1793 | `f1` int(11) DEFAULT NULL, |
2400 | 1660 | `f2` char(20) DEFAULT NULL | 1794 | `f2` char(20) DEFAULT NULL |
2402 | 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 |
2403 | 1796 | /*!50100 PARTITION BY HASH (f1) | ||
2404 | 1797 | (PARTITION part1 ENGINE = PBXT, | ||
2405 | 1798 | PARTITION part3 ENGINE = PBXT) */ | ||
2406 | 1662 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; | 1799 | INSERT INTO t1 SELECT * FROM t0_template WHERE f1 BETWEEN 100 AND 200; |
2407 | 1663 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) | 1800 | SELECT (COUNT(*) = 200) AND (MIN(f1) = 1) AND (MAX(f1) = 200) |
2408 | 1664 | AS my_value FROM t1; | 1801 | AS my_value FROM t1; |
2409 | 1665 | 1802 | ||
2410 | === modified file 'test/mysql-test/r/partition_mgm.result' | |||
2411 | --- test/mysql-test/r/partition_mgm.result 2008-09-30 15:10:36 +0000 | |||
2412 | +++ test/mysql-test/r/partition_mgm.result 2009-06-02 20:12:58 +0000 | |||
2413 | @@ -17,7 +17,9 @@ | |||
2414 | 17 | t1 CREATE TABLE `t1` ( | 17 | t1 CREATE TABLE `t1` ( |
2415 | 18 | `f_date` date DEFAULT NULL, | 18 | `f_date` date DEFAULT NULL, |
2416 | 19 | `f_varchar` varchar(30) DEFAULT NULL | 19 | `f_varchar` varchar(30) DEFAULT NULL |
2418 | 20 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 2 */ | 20 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2419 | 21 | /*!50100 PARTITION BY HASH (YEAR(f_date)) | ||
2420 | 22 | PARTITIONS 2 */ | ||
2421 | 21 | hello/master-data/test/t1#P#p0-1.xtr | 23 | hello/master-data/test/t1#P#p0-1.xtr |
2422 | 22 | hello/master-data/test/t1#P#p0.xtd | 24 | hello/master-data/test/t1#P#p0.xtd |
2423 | 23 | hello/master-data/test/t1#P#p0.xti | 25 | hello/master-data/test/t1#P#p0.xti |
2424 | @@ -32,7 +34,9 @@ | |||
2425 | 32 | t1 CREATE TABLE `t1` ( | 34 | t1 CREATE TABLE `t1` ( |
2426 | 33 | `f_date` date DEFAULT NULL, | 35 | `f_date` date DEFAULT NULL, |
2427 | 34 | `f_varchar` varchar(30) DEFAULT NULL | 36 | `f_varchar` varchar(30) DEFAULT NULL |
2429 | 35 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY HASH (YEAR(f_date)) PARTITIONS 1 */ | 37 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2430 | 38 | /*!50100 PARTITION BY HASH (YEAR(f_date)) | ||
2431 | 39 | PARTITIONS 1 */ | ||
2432 | 36 | hello/master-data/test/t1#P#p0-3.xtr | 40 | hello/master-data/test/t1#P#p0-3.xtr |
2433 | 37 | hello/master-data/test/t1#P#p0.xtd | 41 | hello/master-data/test/t1#P#p0.xtd |
2434 | 38 | hello/master-data/test/t1#P#p0.xti | 42 | hello/master-data/test/t1#P#p0.xti |
2435 | 39 | 43 | ||
2436 | === modified file 'test/mysql-test/r/partition_mgm_err.result' | |||
2437 | --- test/mysql-test/r/partition_mgm_err.result 2006-10-23 09:14:04 +0000 | |||
2438 | +++ test/mysql-test/r/partition_mgm_err.result 2009-06-02 20:12:58 +0000 | |||
2439 | @@ -25,13 +25,13 @@ | |||
2440 | 25 | ERROR HY000: Error in list of partitions to DROP | 25 | ERROR HY000: Error in list of partitions to DROP |
2441 | 26 | ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO | 26 | ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO |
2442 | 27 | (PARTITION x11 VALUES LESS THAN (22)); | 27 | (PARTITION x11 VALUES LESS THAN (22)); |
2444 | 28 | ERROR HY000: More partitions to reorganise than there are partitions | 28 | ERROR HY000: More partitions to reorganize than there are partitions |
2445 | 29 | ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO | 29 | ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO |
2446 | 30 | (PARTITION x3 VALUES LESS THAN (6)); | 30 | (PARTITION x3 VALUES LESS THAN (6)); |
2447 | 31 | ERROR HY000: Duplicate partition name x3 | 31 | ERROR HY000: Duplicate partition name x3 |
2448 | 32 | ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO | 32 | ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO |
2449 | 33 | (PARTITION x11 VALUES LESS THAN (2)); | 33 | (PARTITION x11 VALUES LESS THAN (2)); |
2451 | 34 | ERROR HY000: When reorganising a set of partitions they must be in consecutive order | 34 | ERROR HY000: When reorganizing a set of partitions they must be in consecutive order |
2452 | 35 | ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO | 35 | ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO |
2453 | 36 | (PARTITION x11 VALUES LESS THAN (4)); | 36 | (PARTITION x11 VALUES LESS THAN (4)); |
2454 | 37 | ERROR HY000: Error in list of partitions to REORGANIZE | 37 | ERROR HY000: Error in list of partitions to REORGANIZE |
2455 | @@ -136,7 +136,9 @@ | |||
2456 | 136 | Table Create Table | 136 | Table Create Table |
2457 | 137 | t1 CREATE TABLE `t1` ( | 137 | t1 CREATE TABLE `t1` ( |
2458 | 138 | `a` int(11) DEFAULT NULL | 138 | `a` int(11) DEFAULT NULL |
2460 | 139 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 /*!50100 PARTITION BY KEY (a) PARTITIONS 2 */ | 139 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2461 | 140 | /*!50100 PARTITION BY KEY (a) | ||
2462 | 141 | PARTITIONS 2 */ | ||
2463 | 140 | DROP TABLE t1; | 142 | DROP TABLE t1; |
2464 | 141 | CREATE TABLE t1 (a INT) PARTITION BY HASH(a); | 143 | CREATE TABLE t1 (a INT) PARTITION BY HASH(a); |
2465 | 142 | ALTER TABLE t1 ADD PARTITION PARTITIONS 4; | 144 | ALTER TABLE t1 ADD PARTITION PARTITIONS 4; |
2466 | 143 | 145 | ||
2467 | === modified file 'test/mysql-test/r/partition_range.result' | |||
2468 | --- test/mysql-test/r/partition_range.result 2008-09-17 07:41:28 +0000 | |||
2469 | +++ test/mysql-test/r/partition_range.result 2009-06-02 20:12:58 +0000 | |||
2470 | @@ -104,7 +104,11 @@ | |||
2471 | 104 | `b` int(11) NOT NULL, | 104 | `b` int(11) NOT NULL, |
2472 | 105 | `c` int(11) NOT NULL, | 105 | `c` int(11) NOT NULL, |
2473 | 106 | PRIMARY KEY (`a`,`b`) | 106 | PRIMARY KEY (`a`,`b`) |
2475 | 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 |
2476 | 108 | /*!50100 PARTITION BY RANGE (a) | ||
2477 | 109 | (PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = PBXT, | ||
2478 | 110 | PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = PBXT, | ||
2479 | 111 | PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = PBXT) */ | ||
2480 | 108 | ALTER TABLE t1 | 112 | ALTER TABLE t1 |
2481 | 109 | partition by range (a) | 113 | partition by range (a) |
2482 | 110 | partitions 3 | 114 | partitions 3 |
2483 | @@ -124,7 +128,11 @@ | |||
2484 | 124 | `b` int(11) NOT NULL, | 128 | `b` int(11) NOT NULL, |
2485 | 125 | `c` int(11) NOT NULL, | 129 | `c` int(11) NOT NULL, |
2486 | 126 | PRIMARY KEY (`a`,`b`) | 130 | PRIMARY KEY (`a`,`b`) |
2488 | 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 |
2489 | 132 | /*!50100 PARTITION BY RANGE (a) | ||
2490 | 133 | (PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = PBXT, | ||
2491 | 134 | PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = PBXT, | ||
2492 | 135 | PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = PBXT) */ | ||
2493 | 128 | drop table if exists t1; | 136 | drop table if exists t1; |
2494 | 129 | CREATE TABLE t1 ( | 137 | CREATE TABLE t1 ( |
2495 | 130 | a int not null, | 138 | a int not null, |
2496 | @@ -221,7 +229,15 @@ | |||
2497 | 221 | `b` int(11) NOT NULL, | 229 | `b` int(11) NOT NULL, |
2498 | 222 | `c` int(11) NOT NULL, | 230 | `c` int(11) NOT NULL, |
2499 | 223 | PRIMARY KEY (`a`,`b`) | 231 | PRIMARY KEY (`a`,`b`) |
2501 | 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 |
2502 | 233 | /*!50100 PARTITION BY RANGE (a) | ||
2503 | 234 | SUBPARTITION BY HASH (a+b) | ||
2504 | 235 | (PARTITION x1 VALUES LESS THAN (1) | ||
2505 | 236 | (SUBPARTITION x11 ENGINE = PBXT, | ||
2506 | 237 | SUBPARTITION x12 ENGINE = PBXT), | ||
2507 | 238 | PARTITION x2 VALUES LESS THAN (5) | ||
2508 | 239 | (SUBPARTITION x21 ENGINE = PBXT, | ||
2509 | 240 | SUBPARTITION x22 ENGINE = PBXT)) */ | ||
2510 | 225 | ALTER TABLE t1 ADD COLUMN d int; | 241 | ALTER TABLE t1 ADD COLUMN d int; |
2511 | 226 | show create table t1; | 242 | show create table t1; |
2512 | 227 | Table Create Table | 243 | Table Create Table |
2513 | @@ -231,7 +247,15 @@ | |||
2514 | 231 | `c` int(11) NOT NULL, | 247 | `c` int(11) NOT NULL, |
2515 | 232 | `d` int(11) DEFAULT NULL, | 248 | `d` int(11) DEFAULT NULL, |
2516 | 233 | PRIMARY KEY (`a`,`b`) | 249 | PRIMARY KEY (`a`,`b`) |
2518 | 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 |
2519 | 251 | /*!50100 PARTITION BY RANGE (a) | ||
2520 | 252 | SUBPARTITION BY HASH (a+b) | ||
2521 | 253 | (PARTITION x1 VALUES LESS THAN (1) | ||
2522 | 254 | (SUBPARTITION x11 ENGINE = PBXT, | ||
2523 | 255 | SUBPARTITION x12 ENGINE = PBXT), | ||
2524 | 256 | PARTITION x2 VALUES LESS THAN (5) | ||
2525 | 257 | (SUBPARTITION x21 ENGINE = PBXT, | ||
2526 | 258 | SUBPARTITION x22 ENGINE = PBXT)) */ | ||
2527 | 235 | drop table t1; | 259 | drop table t1; |
2528 | 236 | CREATE TABLE t1 ( | 260 | CREATE TABLE t1 ( |
2529 | 237 | a int not null, | 261 | a int not null, |
2530 | @@ -454,7 +478,10 @@ | |||
2531 | 454 | Table Create Table | 478 | Table Create Table |
2532 | 455 | t1 CREATE TABLE `t1` ( | 479 | t1 CREATE TABLE `t1` ( |
2533 | 456 | `a` bigint(20) unsigned DEFAULT NULL | 480 | `a` bigint(20) unsigned DEFAULT NULL |
2535 | 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 |
2536 | 482 | /*!50100 PARTITION BY RANGE (a) | ||
2537 | 483 | (PARTITION p0 VALUES LESS THAN (0) ENGINE = PBXT, | ||
2538 | 484 | PARTITION p1 VALUES LESS THAN (10) ENGINE = PBXT) */ | ||
2539 | 458 | drop table t1; | 485 | drop table t1; |
2540 | 459 | create table t1 (a bigint unsigned) | 486 | create table t1 (a bigint unsigned) |
2541 | 460 | partition by range (a) | 487 | partition by range (a) |
2542 | @@ -464,7 +491,10 @@ | |||
2543 | 464 | Table Create Table | 491 | Table Create Table |
2544 | 465 | t1 CREATE TABLE `t1` ( | 492 | t1 CREATE TABLE `t1` ( |
2545 | 466 | `a` bigint(20) unsigned DEFAULT NULL | 493 | `a` bigint(20) unsigned DEFAULT NULL |
2547 | 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 |
2548 | 495 | /*!50100 PARTITION BY RANGE (a) | ||
2549 | 496 | (PARTITION p0 VALUES LESS THAN (2) ENGINE = PBXT, | ||
2550 | 497 | PARTITION p1 VALUES LESS THAN (10) ENGINE = PBXT) */ | ||
2551 | 468 | insert into t1 values (0xFFFFFFFFFFFFFFFF); | 498 | insert into t1 values (0xFFFFFFFFFFFFFFFF); |
2552 | 469 | ERROR HY000: Table has no partition for value 18446744073709551615 | 499 | ERROR HY000: Table has no partition for value 18446744073709551615 |
2553 | 470 | drop table t1; | 500 | drop table t1; |
2554 | 471 | 501 | ||
2555 | === modified file 'test/mysql-test/r/preload.result' | |||
2556 | --- test/mysql-test/r/preload.result 2008-03-10 11:36:34 +0000 | |||
2557 | +++ test/mysql-test/r/preload.result 2009-06-02 20:14:05 +0000 | |||
2558 | @@ -144,7 +144,7 @@ | |||
2559 | 144 | load index into cache t3, t2 key (primary,b) ; | 144 | load index into cache t3, t2 key (primary,b) ; |
2560 | 145 | Table Op Msg_type Msg_text | 145 | Table Op Msg_type Msg_text |
2561 | 146 | test.t3 preload_keys Error Table 'test.t3' doesn't exist | 146 | test.t3 preload_keys Error Table 'test.t3' doesn't exist |
2563 | 147 | test.t3 preload_keys error Corrupt | 147 | test.t3 preload_keys status Operation failed |
2564 | 148 | test.t2 preload_keys note The storage engine for the table doesn't support preload_keys | 148 | test.t2 preload_keys note The storage engine for the table doesn't support preload_keys |
2565 | 149 | show status like "key_read%"; | 149 | show status like "key_read%"; |
2566 | 150 | Variable_name Value | 150 | Variable_name Value |
2567 | @@ -159,7 +159,7 @@ | |||
2568 | 159 | load index into cache t3 key (b), t2 key (c) ; | 159 | load index into cache t3 key (b), t2 key (c) ; |
2569 | 160 | Table Op Msg_type Msg_text | 160 | Table Op Msg_type Msg_text |
2570 | 161 | test.t3 preload_keys Error Table 'test.t3' doesn't exist | 161 | test.t3 preload_keys Error Table 'test.t3' doesn't exist |
2572 | 162 | test.t3 preload_keys error Corrupt | 162 | test.t3 preload_keys status Operation failed |
2573 | 163 | test.t2 preload_keys note The storage engine for the table doesn't support preload_keys | 163 | test.t2 preload_keys note The storage engine for the table doesn't support preload_keys |
2574 | 164 | show status like "key_read%"; | 164 | show status like "key_read%"; |
2575 | 165 | Variable_name Value | 165 | Variable_name Value |
2576 | 166 | 166 | ||
2577 | === modified file 'test/mysql-test/r/ps.result' | |||
2578 | --- test/mysql-test/r/ps.result 2008-12-11 01:07:22 +0000 | |||
2579 | +++ test/mysql-test/r/ps.result 2009-06-02 20:19:18 +0000 | |||
2580 | @@ -803,6 +803,8 @@ | |||
2581 | 803 | @@max_prepared_stmt_count | 803 | @@max_prepared_stmt_count |
2582 | 804 | 16382 | 804 | 16382 |
2583 | 805 | set global max_prepared_stmt_count=-1; | 805 | set global max_prepared_stmt_count=-1; |
2584 | 806 | Warnings: | ||
2585 | 807 | Warning 1292 Truncated incorrect max_prepared_stmt_count value: '-1' | ||
2586 | 806 | select @@max_prepared_stmt_count; | 808 | select @@max_prepared_stmt_count; |
2587 | 807 | @@max_prepared_stmt_count | 809 | @@max_prepared_stmt_count |
2588 | 808 | 0 | 810 | 0 |
2589 | @@ -1406,7 +1408,7 @@ | |||
2590 | 1406 | test.t1 repair note Table does not support optimize, doing recreate + analyze instead | 1408 | test.t1 repair note Table does not support optimize, doing recreate + analyze instead |
2591 | 1407 | test.t1 repair status OK | 1409 | test.t1 repair status OK |
2592 | 1408 | test.t4 repair Error Table 'test.t4' doesn't exist | 1410 | test.t4 repair Error Table 'test.t4' doesn't exist |
2594 | 1409 | test.t4 repair error Corrupt | 1411 | test.t4 repair status Operation failed |
2595 | 1410 | test.t3 repair note Table does not support optimize, doing recreate + analyze instead | 1412 | test.t3 repair note Table does not support optimize, doing recreate + analyze instead |
2596 | 1411 | test.t3 repair status OK | 1413 | test.t3 repair status OK |
2597 | 1412 | execute stmt; | 1414 | execute stmt; |
2598 | @@ -1414,7 +1416,7 @@ | |||
2599 | 1414 | test.t1 repair note Table does not support optimize, doing recreate + analyze instead | 1416 | test.t1 repair note Table does not support optimize, doing recreate + analyze instead |
2600 | 1415 | test.t1 repair status OK | 1417 | test.t1 repair status OK |
2601 | 1416 | test.t4 repair Error Table 'test.t4' doesn't exist | 1418 | test.t4 repair Error Table 'test.t4' doesn't exist |
2603 | 1417 | test.t4 repair error Corrupt | 1419 | test.t4 repair status Operation failed |
2604 | 1418 | test.t3 repair note Table does not support optimize, doing recreate + analyze instead | 1420 | test.t3 repair note Table does not support optimize, doing recreate + analyze instead |
2605 | 1419 | test.t3 repair status OK | 1421 | test.t3 repair status OK |
2606 | 1420 | prepare stmt from "optimize table t1, t3, t4"; | 1422 | prepare stmt from "optimize table t1, t3, t4"; |
2607 | @@ -1425,7 +1427,7 @@ | |||
2608 | 1425 | test.t3 optimize note Table does not support optimize, doing recreate + analyze instead | 1427 | test.t3 optimize note Table does not support optimize, doing recreate + analyze instead |
2609 | 1426 | test.t3 optimize status OK | 1428 | test.t3 optimize status OK |
2610 | 1427 | test.t4 optimize Error Table 'test.t4' doesn't exist | 1429 | test.t4 optimize Error Table 'test.t4' doesn't exist |
2612 | 1428 | test.t4 optimize error Corrupt | 1430 | test.t4 optimize status Operation failed |
2613 | 1429 | execute stmt; | 1431 | execute stmt; |
2614 | 1430 | Table Op Msg_type Msg_text | 1432 | Table Op Msg_type Msg_text |
2615 | 1431 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead | 1433 | test.t1 optimize note Table does not support optimize, doing recreate + analyze instead |
2616 | @@ -1433,17 +1435,17 @@ | |||
2617 | 1433 | test.t3 optimize note Table does not support optimize, doing recreate + analyze instead | 1435 | test.t3 optimize note Table does not support optimize, doing recreate + analyze instead |
2618 | 1434 | test.t3 optimize status OK | 1436 | test.t3 optimize status OK |
2619 | 1435 | test.t4 optimize Error Table 'test.t4' doesn't exist | 1437 | test.t4 optimize Error Table 'test.t4' doesn't exist |
2621 | 1436 | test.t4 optimize error Corrupt | 1438 | test.t4 optimize status Operation failed |
2622 | 1437 | prepare stmt from "analyze table t4, t1"; | 1439 | prepare stmt from "analyze table t4, t1"; |
2623 | 1438 | execute stmt; | 1440 | execute stmt; |
2624 | 1439 | Table Op Msg_type Msg_text | 1441 | Table Op Msg_type Msg_text |
2625 | 1440 | test.t4 analyze Error Table 'test.t4' doesn't exist | 1442 | test.t4 analyze Error Table 'test.t4' doesn't exist |
2627 | 1441 | test.t4 analyze error Corrupt | 1443 | test.t4 analyze status Operation failed |
2628 | 1442 | test.t1 analyze status OK | 1444 | test.t1 analyze status OK |
2629 | 1443 | execute stmt; | 1445 | execute stmt; |
2630 | 1444 | Table Op Msg_type Msg_text | 1446 | Table Op Msg_type Msg_text |
2631 | 1445 | test.t4 analyze Error Table 'test.t4' doesn't exist | 1447 | test.t4 analyze Error Table 'test.t4' doesn't exist |
2633 | 1446 | test.t4 analyze error Corrupt | 1448 | test.t4 analyze status Operation failed |
2634 | 1447 | test.t1 analyze status OK | 1449 | test.t1 analyze status OK |
2635 | 1448 | deallocate prepare stmt; | 1450 | deallocate prepare stmt; |
2636 | 1449 | drop table t1, t2, t3; | 1451 | drop table t1, t2, t3; |
2637 | 1450 | 1452 | ||
2638 | === modified file 'test/mysql-test/r/ps_2myisam.result' | |||
2639 | --- test/mysql-test/r/ps_2myisam.result 2008-09-17 07:41:28 +0000 | |||
2640 | +++ test/mysql-test/r/ps_2myisam.result 2009-06-02 20:26:05 +0000 | |||
2641 | @@ -1304,11 +1304,12 @@ | |||
2642 | 1304 | set @arg00=NULL; | 1304 | set @arg00=NULL; |
2643 | 1305 | set @arg01=2; | 1305 | set @arg01=2; |
2644 | 1306 | execute stmt1 using @arg00, @arg01; | 1306 | execute stmt1 using @arg00, @arg01; |
2646 | 1307 | ERROR 23000: Column 'a' cannot be null | 1307 | Warnings: |
2647 | 1308 | Warning 1048 Column 'a' cannot be null | ||
2648 | 1308 | select a,b from t1 order by a; | 1309 | select a,b from t1 order by a; |
2649 | 1309 | a b | 1310 | a b |
2650 | 1311 | 0 two | ||
2651 | 1310 | 1 one | 1312 | 1 one |
2652 | 1311 | 2 two | ||
2653 | 1312 | 3 three | 1313 | 3 three |
2654 | 1313 | 4 four | 1314 | 4 four |
2655 | 1314 | set @arg00=0; | 1315 | set @arg00=0; |
2656 | 1315 | 1316 | ||
2657 | === modified file 'test/mysql-test/r/ps_4heap.result' | |||
2658 | --- test/mysql-test/r/ps_4heap.result 2008-09-17 07:41:28 +0000 | |||
2659 | +++ test/mysql-test/r/ps_4heap.result 2009-06-02 20:26:05 +0000 | |||
2660 | @@ -1288,11 +1288,12 @@ | |||
2661 | 1288 | set @arg00=NULL; | 1288 | set @arg00=NULL; |
2662 | 1289 | set @arg01=2; | 1289 | set @arg01=2; |
2663 | 1290 | execute stmt1 using @arg00, @arg01; | 1290 | execute stmt1 using @arg00, @arg01; |
2665 | 1291 | ERROR 23000: Column 'a' cannot be null | 1291 | Warnings: |
2666 | 1292 | Warning 1048 Column 'a' cannot be null | ||
2667 | 1292 | select a,b from t1 order by a; | 1293 | select a,b from t1 order by a; |
2668 | 1293 | a b | 1294 | a b |
2669 | 1295 | 0 two | ||
2670 | 1294 | 1 one | 1296 | 1 one |
2671 | 1295 | 2 two | ||
2672 | 1296 | 3 three | 1297 | 3 three |
2673 | 1297 | 4 four | 1298 | 4 four |
2674 | 1298 | set @arg00=0; | 1299 | set @arg00=0; |
2675 | 1299 | 1300 | ||
2676 | === modified file 'test/mysql-test/r/ps_5merge.result' | |||
2677 | --- test/mysql-test/r/ps_5merge.result 2008-09-17 07:41:28 +0000 | |||
2678 | +++ test/mysql-test/r/ps_5merge.result 2009-06-02 20:26:05 +0000 | |||
2679 | @@ -1330,11 +1330,12 @@ | |||
2680 | 1330 | set @arg00=NULL; | 1330 | set @arg00=NULL; |
2681 | 1331 | set @arg01=2; | 1331 | set @arg01=2; |
2682 | 1332 | execute stmt1 using @arg00, @arg01; | 1332 | execute stmt1 using @arg00, @arg01; |
2684 | 1333 | ERROR 23000: Column 'a' cannot be null | 1333 | Warnings: |
2685 | 1334 | Warning 1048 Column 'a' cannot be null | ||
2686 | 1334 | select a,b from t1 order by a; | 1335 | select a,b from t1 order by a; |
2687 | 1335 | a b | 1336 | a b |
2688 | 1337 | 0 two | ||
2689 | 1336 | 1 one | 1338 | 1 one |
2690 | 1337 | 2 two | ||
2691 | 1338 | 3 three | 1339 | 3 three |
2692 | 1339 | 4 four | 1340 | 4 four |
2693 | 1340 | set @arg00=0; | 1341 | set @arg00=0; |
2694 | @@ -4343,11 +4344,12 @@ | |||
2695 | 4343 | set @arg00=NULL; | 4344 | set @arg00=NULL; |
2696 | 4344 | set @arg01=2; | 4345 | set @arg01=2; |
2697 | 4345 | execute stmt1 using @arg00, @arg01; | 4346 | execute stmt1 using @arg00, @arg01; |
2699 | 4346 | ERROR 23000: Column 'a' cannot be null | 4347 | Warnings: |
2700 | 4348 | Warning 1048 Column 'a' cannot be null | ||
2701 | 4347 | select a,b from t1 order by a; | 4349 | select a,b from t1 order by a; |
2702 | 4348 | a b | 4350 | a b |
2703 | 4351 | 0 two | ||
2704 | 4349 | 1 one | 4352 | 1 one |
2705 | 4350 | 2 two | ||
2706 | 4351 | 3 three | 4353 | 3 three |
2707 | 4352 | 4 four | 4354 | 4 four |
2708 | 4353 | set @arg00=0; | 4355 | set @arg00=0; |
2709 | 4354 | 4356 | ||
2710 | === modified file 'test/mysql-test/r/repair.result' | |||
2711 | --- test/mysql-test/r/repair.result 2009-04-03 19:39:12 +0000 | |||
2712 | +++ test/mysql-test/r/repair.result 2009-06-02 20:26:51 +0000 | |||
2713 | @@ -27,7 +27,7 @@ | |||
2714 | 27 | repair table t1 use_frm; | 27 | repair table t1 use_frm; |
2715 | 28 | Table Op Msg_type Msg_text | 28 | Table Op Msg_type Msg_text |
2716 | 29 | test.t1 repair Error Table 'test.t1' doesn't exist | 29 | test.t1 repair Error Table 'test.t1' doesn't exist |
2718 | 30 | test.t1 repair error Corrupt | 30 | test.t1 repair status Operation failed |
2719 | 31 | create table t1 engine=myisam SELECT 1,"table 1"; | 31 | create table t1 engine=myisam SELECT 1,"table 1"; |
2720 | 32 | flush tables; | 32 | flush tables; |
2721 | 33 | repair table t1; | 33 | repair table t1; |
2722 | 34 | 34 | ||
2723 | === modified file 'test/mysql-test/r/schema.result' | |||
2724 | --- test/mysql-test/r/schema.result 2008-03-28 09:30:34 +0000 | |||
2725 | +++ test/mysql-test/r/schema.result 2009-06-02 22:12:20 +0000 | |||
2726 | @@ -3,6 +3,7 @@ | |||
2727 | 3 | show create schema foo; | 3 | show create schema foo; |
2728 | 4 | Database Create Database | 4 | Database Create Database |
2729 | 5 | foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */ | 5 | foo CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET latin1 */ |
2730 | 6 | create table t1 (id int) engine=pbxt; | ||
2731 | 6 | show schemas; | 7 | show schemas; |
2732 | 7 | Database | 8 | Database |
2733 | 8 | information_schema | 9 | information_schema |
2734 | 9 | 10 | ||
2735 | === modified file 'test/mysql-test/r/select.result' | |||
2736 | --- test/mysql-test/r/select.result 2009-04-03 19:39:12 +0000 | |||
2737 | +++ test/mysql-test/r/select.result 2009-06-02 20:38:55 +0000 | |||
2738 | @@ -2792,26 +2792,26 @@ | |||
2739 | 2792 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away | 2792 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away |
2740 | 2793 | select max(key1) from t1 where key1 <= 0.6158; | 2793 | select max(key1) from t1 where key1 <= 0.6158; |
2741 | 2794 | max(key1) | 2794 | max(key1) |
2743 | 2795 | 0.61580002307892 | 2795 | 0.615800023078918 |
2744 | 2796 | select max(key2) from t2 where key2 <= 1.6158; | 2796 | select max(key2) from t2 where key2 <= 1.6158; |
2745 | 2797 | max(key2) | 2797 | max(key2) |
2747 | 2798 | 1.6158000230789 | 2798 | 1.61580002307892 |
2748 | 2799 | select min(key1) from t1 where key1 >= 0.3762; | 2799 | select min(key1) from t1 where key1 >= 0.3762; |
2749 | 2800 | min(key1) | 2800 | min(key1) |
2751 | 2801 | 0.37619999051094 | 2801 | 0.376199990510941 |
2752 | 2802 | select min(key2) from t2 where key2 >= 1.3762; | 2802 | select min(key2) from t2 where key2 >= 1.3762; |
2753 | 2803 | min(key2) | 2803 | min(key2) |
2755 | 2804 | 1.3761999607086 | 2804 | 1.37619996070862 |
2756 | 2805 | select max(key1), min(key2) from t1, t2 | 2805 | select max(key1), min(key2) from t1, t2 |
2757 | 2806 | where key1 <= 0.6158 and key2 >= 1.3762; | 2806 | where key1 <= 0.6158 and key2 >= 1.3762; |
2758 | 2807 | max(key1) min(key2) | 2807 | max(key1) min(key2) |
2760 | 2808 | 0.61580002307892 1.3761999607086 | 2808 | 0.615800023078918 1.37619996070862 |
2761 | 2809 | select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5; | 2809 | select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5; |
2762 | 2810 | max(key1) | 2810 | max(key1) |
2764 | 2811 | 0.61580002307892 | 2811 | 0.615800023078918 |
2765 | 2812 | select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5; | 2812 | select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5; |
2766 | 2813 | min(key1) | 2813 | min(key1) |
2768 | 2814 | 0.37619999051094 | 2814 | 0.376199990510941 |
2769 | 2815 | DROP TABLE t1,t2; | 2815 | DROP TABLE t1,t2; |
2770 | 2816 | CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL); | 2816 | CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL); |
2771 | 2817 | INSERT INTO t1 VALUES (10); | 2817 | INSERT INTO t1 VALUES (10); |
2772 | 2818 | 2818 | ||
2773 | === modified file 'test/mysql-test/r/sp.result' | |||
2774 | --- test/mysql-test/r/sp.result 2008-10-01 07:54:39 +0000 | |||
2775 | +++ test/mysql-test/r/sp.result 2009-06-02 20:41:49 +0000 | |||
2776 | @@ -577,7 +577,7 @@ | |||
2777 | 577 | set @e = e()| | 577 | set @e = e()| |
2778 | 578 | select e(), @e| | 578 | select e(), @e| |
2779 | 579 | e() @e | 579 | e() @e |
2781 | 580 | 2.718281828459 2.718281828459 | 580 | 2.71828182845905 2.71828182845905 |
2782 | 581 | drop function if exists inc| | 581 | drop function if exists inc| |
2783 | 582 | create function inc(i int) returns int | 582 | create function inc(i int) returns int |
2784 | 583 | return i+1| | 583 | return i+1| |
2785 | @@ -614,7 +614,7 @@ | |||
2786 | 614 | return mul(inc(i), fac(u)) / e()| | 614 | return mul(inc(i), fac(u)) / e()| |
2787 | 615 | select fun(2.3, 3, 5)| | 615 | select fun(2.3, 3, 5)| |
2788 | 616 | fun(2.3, 3, 5) | 616 | fun(2.3, 3, 5) |
2790 | 617 | 176.58213176229 | 617 | 176.582131762292 |
2791 | 618 | insert into t2 values (append("xxx", "yyy"), mul(4,3), e())| | 618 | insert into t2 values (append("xxx", "yyy"), mul(4,3), e())| |
2792 | 619 | insert into t2 values (append("a", "b"), mul(2,mul(3,4)), fun(1.7, 4, 6))| | 619 | insert into t2 values (append("a", "b"), mul(2,mul(3,4)), fun(1.7, 4, 6))| |
2793 | 620 | select * from t2 where s = append("a", "b")| | 620 | select * from t2 where s = append("a", "b")| |
2794 | @@ -2472,7 +2472,7 @@ | |||
2795 | 2472 | Alter Tables To alter the table | 2472 | Alter Tables To alter the table |
2796 | 2473 | Alter routine Functions,Procedures To alter or drop stored functions/procedures | 2473 | Alter routine Functions,Procedures To alter or drop stored functions/procedures |
2797 | 2474 | Create Databases,Tables,Indexes To create new databases and tables | 2474 | Create Databases,Tables,Indexes To create new databases and tables |
2799 | 2475 | Create routine Functions,Procedures To use CREATE FUNCTION/PROCEDURE | 2475 | Create routine Databases To use CREATE FUNCTION/PROCEDURE |
2800 | 2476 | Create temporary tables Databases To use CREATE TEMPORARY TABLE | 2476 | Create temporary tables Databases To use CREATE TEMPORARY TABLE |
2801 | 2477 | Create view Tables To create new views | 2477 | Create view Tables To create new views |
2802 | 2478 | Create user Server Admin To create new users | 2478 | Create user Server Admin To create new users |
2803 | @@ -2526,7 +2526,7 @@ | |||
2804 | 2526 | Alter Tables To alter the table | 2526 | Alter Tables To alter the table |
2805 | 2527 | Alter routine Functions,Procedures To alter or drop stored functions/procedures | 2527 | Alter routine Functions,Procedures To alter or drop stored functions/procedures |
2806 | 2528 | Create Databases,Tables,Indexes To create new databases and tables | 2528 | Create Databases,Tables,Indexes To create new databases and tables |
2808 | 2529 | Create routine Functions,Procedures To use CREATE FUNCTION/PROCEDURE | 2529 | Create routine Databases To use CREATE FUNCTION/PROCEDURE |
2809 | 2530 | Create temporary tables Databases To use CREATE TEMPORARY TABLE | 2530 | Create temporary tables Databases To use CREATE TEMPORARY TABLE |
2810 | 2531 | Create view Tables To create new views | 2531 | Create view Tables To create new views |
2811 | 2532 | Create user Server Admin To create new users | 2532 | Create user Server Admin To create new users |
2812 | @@ -4406,10 +4406,10 @@ | |||
2813 | 4406 | Table Op Msg_type Msg_text | 4406 | Table Op Msg_type Msg_text |
2814 | 4407 | test.t1 repair status OK | 4407 | test.t1 repair status OK |
2815 | 4408 | Table Op Msg_type Msg_text | 4408 | Table Op Msg_type Msg_text |
2817 | 4409 | test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead | 4409 | test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead |
2818 | 4410 | test.t1 backup status OK | 4410 | test.t1 backup status OK |
2819 | 4411 | Table Op Msg_type Msg_text | 4411 | Table Op Msg_type Msg_text |
2821 | 4412 | test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead | 4412 | test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead |
2822 | 4413 | test.t1 restore status OK | 4413 | test.t1 restore status OK |
2823 | 4414 | drop procedure bug13012| | 4414 | drop procedure bug13012| |
2824 | 4415 | create view v1 as select * from t1| | 4415 | create view v1 as select * from t1| |
2825 | 4416 | 4416 | ||
2826 | === modified file 'test/mysql-test/r/symlink.result' | |||
2827 | --- test/mysql-test/r/symlink.result 2008-06-09 12:49:32 +0000 | |||
2828 | +++ test/mysql-test/r/symlink.result 2009-06-02 20:43:23 +0000 | |||
2829 | @@ -83,7 +83,7 @@ | |||
2830 | 83 | create table t1 (a int not null) engine=myisam; | 83 | create table t1 (a int not null) engine=myisam; |
2831 | 84 | alter table t1 data directory="MYSQLTEST_VARDIR/tmp"; | 84 | alter table t1 data directory="MYSQLTEST_VARDIR/tmp"; |
2832 | 85 | Warnings: | 85 | Warnings: |
2834 | 86 | Warning 0 DATA DIRECTORY option ignored | 86 | Warning 1618 <DATA DIRECTORY> option ignored |
2835 | 87 | show create table t1; | 87 | show create table t1; |
2836 | 88 | Table Create Table | 88 | Table Create Table |
2837 | 89 | t1 CREATE TABLE `t1` ( | 89 | t1 CREATE TABLE `t1` ( |
2838 | @@ -92,7 +92,7 @@ | |||
2839 | 92 | alter table t1 add b int; | 92 | alter table t1 add b int; |
2840 | 93 | alter table t1 data directory="MYSQLTEST_VARDIR/log"; | 93 | alter table t1 data directory="MYSQLTEST_VARDIR/log"; |
2841 | 94 | Warnings: | 94 | Warnings: |
2843 | 95 | Warning 0 DATA DIRECTORY option ignored | 95 | Warning 1618 <DATA DIRECTORY> option ignored |
2844 | 96 | show create table t1; | 96 | show create table t1; |
2845 | 97 | Table Create Table | 97 | Table Create Table |
2846 | 98 | t1 CREATE TABLE `t1` ( | 98 | t1 CREATE TABLE `t1` ( |
2847 | @@ -101,7 +101,7 @@ | |||
2848 | 101 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 | 101 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
2849 | 102 | alter table t1 index directory="MYSQLTEST_VARDIR/log"; | 102 | alter table t1 index directory="MYSQLTEST_VARDIR/log"; |
2850 | 103 | Warnings: | 103 | Warnings: |
2852 | 104 | Warning 0 INDEX DIRECTORY option ignored | 104 | Warning 1618 <INDEX DIRECTORY> option ignored |
2853 | 105 | show create table t1; | 105 | show create table t1; |
2854 | 106 | Table Create Table | 106 | Table Create Table |
2855 | 107 | t1 CREATE TABLE `t1` ( | 107 | t1 CREATE TABLE `t1` ( |
2856 | @@ -168,8 +168,8 @@ | |||
2857 | 168 | SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE='NO_DIR_IN_CREATE'; | 168 | SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE='NO_DIR_IN_CREATE'; |
2858 | 169 | CREATE TABLE t1(a INT) DATA DIRECTORY='MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY='MYSQLTEST_VARDIR/tmp'; | 169 | CREATE TABLE t1(a INT) DATA DIRECTORY='MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY='MYSQLTEST_VARDIR/tmp'; |
2859 | 170 | Warnings: | 170 | Warnings: |
2862 | 171 | Warning 0 DATA DIRECTORY option ignored | 171 | Warning 1618 <DATA DIRECTORY> option ignored |
2863 | 172 | Warning 0 INDEX DIRECTORY option ignored | 172 | Warning 1618 <INDEX DIRECTORY> option ignored |
2864 | 173 | DROP TABLE t1; | 173 | DROP TABLE t1; |
2865 | 174 | SET @@SQL_MODE=@OLD_SQL_MODE; | 174 | SET @@SQL_MODE=@OLD_SQL_MODE; |
2866 | 175 | End of 5.1 tests | 175 | End of 5.1 tests |
2867 | 176 | 176 | ||
2868 | === modified file 'test/mysql-test/r/timezone2.result' | |||
2869 | --- test/mysql-test/r/timezone2.result 2007-01-29 15:04:29 +0000 | |||
2870 | +++ test/mysql-test/r/timezone2.result 2009-06-02 20:45:58 +0000 | |||
2871 | @@ -110,7 +110,7 @@ | |||
2872 | 110 | 362793610 1981-07-01 04:00:00 | 110 | 362793610 1981-07-01 04:00:00 |
2873 | 111 | select from_unixtime(362793609); | 111 | select from_unixtime(362793609); |
2874 | 112 | from_unixtime(362793609) | 112 | from_unixtime(362793609) |
2876 | 113 | 1981-07-01 03:59:60 | 113 | 1981-07-01 03:59:59 |
2877 | 114 | drop table t1; | 114 | drop table t1; |
2878 | 115 | create table t1 (ts timestamp); | 115 | create table t1 (ts timestamp); |
2879 | 116 | set time_zone='UTC'; | 116 | set time_zone='UTC'; |
2880 | 117 | 117 | ||
2881 | === modified file 'test/mysql-test/r/type_timestamp.result' | |||
2882 | --- test/mysql-test/r/type_timestamp.result 2008-03-11 16:31:13 +0000 | |||
2883 | +++ test/mysql-test/r/type_timestamp.result 2009-06-02 20:47:35 +0000 | |||
2884 | @@ -101,13 +101,13 @@ | |||
2885 | 101 | t8 timestamp(8), t10 timestamp(10), t12 timestamp(12), | 101 | t8 timestamp(8), t10 timestamp(10), t12 timestamp(12), |
2886 | 102 | t14 timestamp(14)); | 102 | t14 timestamp(14)); |
2887 | 103 | Warnings: | 103 | Warnings: |
2895 | 104 | Warning 1287 The syntax 'TIMESTAMP(2)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead | 104 | Warning 1287 The syntax 'TIMESTAMP(2)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead |
2896 | 105 | Warning 1287 The syntax 'TIMESTAMP(4)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead | 105 | Warning 1287 The syntax 'TIMESTAMP(4)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead |
2897 | 106 | Warning 1287 The syntax 'TIMESTAMP(6)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead | 106 | Warning 1287 The syntax 'TIMESTAMP(6)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead |
2898 | 107 | Warning 1287 The syntax 'TIMESTAMP(8)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead | 107 | Warning 1287 The syntax 'TIMESTAMP(8)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead |
2899 | 108 | Warning 1287 The syntax 'TIMESTAMP(10)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead | 108 | Warning 1287 The syntax 'TIMESTAMP(10)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead |
2900 | 109 | Warning 1287 The syntax 'TIMESTAMP(12)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead | 109 | Warning 1287 The syntax 'TIMESTAMP(12)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead |
2901 | 110 | Warning 1287 The syntax 'TIMESTAMP(14)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead | 110 | Warning 1287 The syntax 'TIMESTAMP(14)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead |
2902 | 111 | insert t1 values (0,0,0,0,0,0,0), | 111 | insert t1 values (0,0,0,0,0,0,0), |
2903 | 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", |
2904 | 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", |
2905 | 114 | 114 | ||
2906 | === modified file 'test/mysql-test/r/union.result' | |||
2907 | --- test/mysql-test/r/union.result 2008-12-11 01:07:22 +0000 | |||
2908 | +++ test/mysql-test/r/union.result 2009-06-02 20:52:31 +0000 | |||
2909 | @@ -1301,10 +1301,10 @@ | |||
2910 | 1301 | `left(a,100000000)` longtext | 1301 | `left(a,100000000)` longtext |
2911 | 1302 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 | 1302 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2912 | 1303 | drop tables t1,t2,t3; | 1303 | drop tables t1,t2,t3; |
2915 | 1304 | SELECT @tmp_max:= @@max_allowed_packet; | 1304 | SELECT @tmp_max:= @@global.max_allowed_packet; |
2916 | 1305 | @tmp_max:= @@max_allowed_packet | 1305 | @tmp_max:= @@global.max_allowed_packet |
2917 | 1306 | 1048576 | 1306 | 1048576 |
2919 | 1307 | SET max_allowed_packet=25000000; | 1307 | SET @@global.max_allowed_packet=25000000; |
2920 | 1308 | CREATE TABLE t1 (a mediumtext); | 1308 | CREATE TABLE t1 (a mediumtext); |
2921 | 1309 | CREATE TABLE t2 (b varchar(20)); | 1309 | CREATE TABLE t2 (b varchar(20)); |
2922 | 1310 | INSERT INTO t1 VALUES ('a'); | 1310 | INSERT INTO t1 VALUES ('a'); |
2923 | @@ -1342,7 +1342,7 @@ | |||
2924 | 1342 | `a` varbinary(510) DEFAULT NULL | 1342 | `a` varbinary(510) DEFAULT NULL |
2925 | 1343 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 | 1343 | ) ENGINE=PBXT DEFAULT CHARSET=latin1 |
2926 | 1344 | DROP TABLES t1,t2,t3; | 1344 | DROP TABLES t1,t2,t3; |
2928 | 1345 | SET max_allowed_packet:= @tmp_max; | 1345 | SET @@global.max_allowed_packet:= @tmp_max; |
2929 | 1346 | create table t1 ( id int not null auto_increment, primary key (id), col1 int); | 1346 | create table t1 ( id int not null auto_increment, primary key (id), col1 int); |
2930 | 1347 | insert into t1 (col1) values (2),(3),(4),(5),(6); | 1347 | insert into t1 (col1) values (2),(3),(4),(5),(6); |
2931 | 1348 | select 99 union all select id from t1 order by 1; | 1348 | select 99 union all select id from t1 order by 1; |
2932 | 1349 | 1349 | ||
2933 | === modified file 'test/mysql-test/r/user_var-binlog.result' | |||
2934 | --- test/mysql-test/r/user_var-binlog.result 2008-11-05 15:56:49 +0000 | |||
2935 | +++ test/mysql-test/r/user_var-binlog.result 2009-06-02 21:26:33 +0000 | |||
2936 | @@ -24,7 +24,7 @@ | |||
2937 | 24 | use test/*!*/; | 24 | use test/*!*/; |
2938 | 25 | SET TIMESTAMP=10000/*!*/; | 25 | SET TIMESTAMP=10000/*!*/; |
2939 | 26 | SET @@session.pseudo_thread_id=999999999/*!*/; | 26 | SET @@session.pseudo_thread_id=999999999/*!*/; |
2941 | 27 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/; | 27 | SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1, @@session.autocommit=1/*!*/; |
2942 | 28 | SET @@session.sql_mode=0/*!*/; | 28 | SET @@session.sql_mode=0/*!*/; |
2943 | 29 | SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/; | 29 | SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/; |
2944 | 30 | /*!\C latin1 *//*!*/; | 30 | /*!\C latin1 *//*!*/; |
2945 | 31 | 31 | ||
2946 | === modified file 'test/mysql-test/r/varbinary.result' | |||
2947 | --- test/mysql-test/r/varbinary.result 2008-03-10 11:36:34 +0000 | |||
2948 | +++ test/mysql-test/r/varbinary.result 2009-06-02 21:27:45 +0000 | |||
2949 | @@ -38,7 +38,7 @@ | |||
2950 | 38 | 255 3 | 38 | 255 3 |
2951 | 39 | CHECK TABLE t1 FOR UPGRADE; | 39 | CHECK TABLE t1 FOR UPGRADE; |
2952 | 40 | Table Op Msg_type Msg_text | 40 | Table Op Msg_type Msg_text |
2954 | 41 | test.t1 check error Table upgrade required. Please do "REPAIR TABLE `t1`" to fix it! | 41 | test.t1 check error Table upgrade required. Please do "REPAIR TABLE `t1`" or dump/reload to fix it! |
2955 | 42 | REPAIR TABLE t1; | 42 | REPAIR TABLE t1; |
2956 | 43 | Table Op Msg_type Msg_text | 43 | Table Op Msg_type Msg_text |
2957 | 44 | test.t1 repair status OK | 44 | test.t1 repair status OK |
2958 | 45 | 45 | ||
2959 | === modified file 'test/mysql-test/r/variables.result' | |||
2960 | --- test/mysql-test/r/variables.result 2008-11-01 14:40:10 +0000 | |||
2961 | +++ test/mysql-test/r/variables.result 2009-06-02 21:30:51 +0000 | |||
2962 | @@ -9,13 +9,13 @@ | |||
2963 | 9 | set @my_max_binlog_cache_size =@@global.max_binlog_cache_size; | 9 | set @my_max_binlog_cache_size =@@global.max_binlog_cache_size; |
2964 | 10 | set @my_max_binlog_size =@@global.max_binlog_size; | 10 | set @my_max_binlog_size =@@global.max_binlog_size; |
2965 | 11 | set @my_max_connect_errors =@@global.max_connect_errors; | 11 | set @my_max_connect_errors =@@global.max_connect_errors; |
2966 | 12 | set @my_max_connections =@@global.max_connections; | ||
2967 | 12 | set @my_max_delayed_threads =@@global.max_delayed_threads; | 13 | set @my_max_delayed_threads =@@global.max_delayed_threads; |
2968 | 13 | set @my_max_heap_table_size =@@global.max_heap_table_size; | 14 | set @my_max_heap_table_size =@@global.max_heap_table_size; |
2969 | 14 | set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads; | 15 | set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads; |
2970 | 15 | set @my_max_join_size =@@global.max_join_size; | 16 | set @my_max_join_size =@@global.max_join_size; |
2971 | 16 | set @my_max_user_connections =@@global.max_user_connections; | ||
2972 | 17 | set @my_max_write_lock_count =@@global.max_write_lock_count; | ||
2973 | 18 | set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size; | 17 | set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size; |
2974 | 18 | set @my_myisam_max_sort_file_size =@@global.myisam_max_sort_file_size; | ||
2975 | 19 | set @my_net_buffer_length =@@global.net_buffer_length; | 19 | set @my_net_buffer_length =@@global.net_buffer_length; |
2976 | 20 | set @my_net_write_timeout =@@global.net_write_timeout; | 20 | set @my_net_write_timeout =@@global.net_write_timeout; |
2977 | 21 | set @my_net_read_timeout =@@global.net_read_timeout; | 21 | set @my_net_read_timeout =@@global.net_read_timeout; |
2978 | @@ -26,6 +26,8 @@ | |||
2979 | 26 | set @my_slow_launch_time =@@global.slow_launch_time; | 26 | set @my_slow_launch_time =@@global.slow_launch_time; |
2980 | 27 | set @my_storage_engine =@@global.storage_engine; | 27 | set @my_storage_engine =@@global.storage_engine; |
2981 | 28 | set @my_thread_cache_size =@@global.thread_cache_size; | 28 | set @my_thread_cache_size =@@global.thread_cache_size; |
2982 | 29 | set @my_max_allowed_packet =@@global.max_allowed_packet; | ||
2983 | 30 | set @my_join_buffer_size =@@global.join_buffer_size; | ||
2984 | 29 | set @`test`=1; | 31 | set @`test`=1; |
2985 | 30 | select @test, @`test`, @TEST, @`TEST`, @"teSt"; | 32 | select @test, @`test`, @TEST, @`TEST`, @"teSt"; |
2986 | 31 | @test @`test` @TEST @`TEST` @"teSt" | 33 | @test @`test` @TEST @`TEST` @"teSt" |
2987 | @@ -158,7 +160,7 @@ | |||
2988 | 158 | id select_type table type possible_keys key key_len ref rows filtered Extra | 160 | id select_type table type possible_keys key key_len ref rows filtered Extra |
2989 | 159 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used | 161 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used |
2990 | 160 | Warnings: | 162 | Warnings: |
2992 | 161 | Note 1003 select 345 AS `@@IDENTITY`,last_insert_id() AS `last_insert_id()`,345 AS `@@identity` | 163 | Note 1003 select @@IDENTITY AS `@@IDENTITY`,last_insert_id() AS `last_insert_id()`,@@identity AS `@@identity` |
2993 | 162 | set big_tables=OFF, big_tables=ON, big_tables=0, big_tables=1, big_tables="OFF", big_tables="ON"; | 164 | set big_tables=OFF, big_tables=ON, big_tables=0, big_tables=1, big_tables="OFF", big_tables="ON"; |
2994 | 163 | set global concurrent_insert=2; | 165 | set global concurrent_insert=2; |
2995 | 164 | show variables like 'concurrent_insert'; | 166 | show variables like 'concurrent_insert'; |
2996 | @@ -221,22 +223,21 @@ | |||
2997 | 221 | VARIABLE_NAME VARIABLE_VALUE | 223 | VARIABLE_NAME VARIABLE_VALUE |
2998 | 222 | MYISAM_MAX_SORT_FILE_SIZE 1048576 | 224 | MYISAM_MAX_SORT_FILE_SIZE 1048576 |
2999 | 223 | set GLOBAL myisam_max_sort_file_size=default; | 225 | set GLOBAL myisam_max_sort_file_size=default; |
3001 | 224 | show variables like 'myisam_max_sort_file_size'; | 226 | show global variables like 'myisam_max_sort_file_size'; |
3002 | 225 | Variable_name Value | 227 | Variable_name Value |
3003 | 226 | myisam_max_sort_file_size FILE_SIZE | 228 | myisam_max_sort_file_size FILE_SIZE |
3005 | 227 | select * from information_schema.session_variables where variable_name like 'myisam_max_sort_file_size'; | 229 | select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size'; |
3006 | 228 | VARIABLE_NAME VARIABLE_VALUE | 230 | VARIABLE_NAME VARIABLE_VALUE |
3007 | 229 | MYISAM_MAX_SORT_FILE_SIZE FILE_SIZE | 231 | MYISAM_MAX_SORT_FILE_SIZE FILE_SIZE |
3008 | 230 | set global net_retry_count=10, session net_retry_count=10; | 232 | set global net_retry_count=10, session net_retry_count=10; |
3009 | 231 | set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300; | 233 | set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300; |
3010 | 232 | set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600; | ||
3011 | 233 | show global variables like 'net_%'; | 234 | show global variables like 'net_%'; |
3012 | 234 | Variable_name Value | 235 | Variable_name Value |
3013 | 235 | net_buffer_length 1024 | 236 | net_buffer_length 1024 |
3014 | 236 | net_read_timeout 300 | 237 | net_read_timeout 300 |
3015 | 237 | net_retry_count 10 | 238 | net_retry_count 10 |
3016 | 238 | net_write_timeout 200 | 239 | net_write_timeout 200 |
3018 | 239 | select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name; | 240 | select * from information_schema.global_variables where variable_name like 'net_%' order by 1; |
3019 | 240 | VARIABLE_NAME VARIABLE_VALUE | 241 | VARIABLE_NAME VARIABLE_VALUE |
3020 | 241 | NET_BUFFER_LENGTH 1024 | 242 | NET_BUFFER_LENGTH 1024 |
3021 | 242 | NET_READ_TIMEOUT 300 | 243 | NET_READ_TIMEOUT 300 |
3022 | @@ -244,57 +245,45 @@ | |||
3023 | 244 | NET_WRITE_TIMEOUT 200 | 245 | NET_WRITE_TIMEOUT 200 |
3024 | 245 | show session variables like 'net_%'; | 246 | show session variables like 'net_%'; |
3025 | 246 | Variable_name Value | 247 | Variable_name Value |
3028 | 247 | net_buffer_length 2048 | 248 | net_buffer_length 16384 |
3029 | 248 | net_read_timeout 600 | 249 | net_read_timeout 30 |
3030 | 249 | net_retry_count 10 | 250 | net_retry_count 10 |
3033 | 250 | net_write_timeout 500 | 251 | net_write_timeout 60 |
3034 | 251 | select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name; | 252 | select * from information_schema.session_variables where variable_name like 'net_%' order by 1; |
3035 | 252 | VARIABLE_NAME VARIABLE_VALUE | 253 | VARIABLE_NAME VARIABLE_VALUE |
3038 | 253 | NET_BUFFER_LENGTH 2048 | 254 | NET_BUFFER_LENGTH 16384 |
3039 | 254 | NET_READ_TIMEOUT 600 | 255 | NET_READ_TIMEOUT 30 |
3040 | 255 | NET_RETRY_COUNT 10 | 256 | NET_RETRY_COUNT 10 |
3043 | 256 | NET_WRITE_TIMEOUT 500 | 257 | NET_WRITE_TIMEOUT 60 |
3044 | 257 | set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000; | 258 | set global net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000; |
3045 | 258 | show global variables like 'net_%'; | 259 | show global variables like 'net_%'; |
3046 | 259 | Variable_name Value | 260 | Variable_name Value |
3048 | 260 | net_buffer_length 1024 | 261 | net_buffer_length 7168 |
3049 | 261 | net_read_timeout 900 | 262 | net_read_timeout 900 |
3050 | 262 | net_retry_count 10 | 263 | net_retry_count 10 |
3051 | 263 | net_write_timeout 1000 | 264 | net_write_timeout 1000 |
3053 | 264 | select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name; | 265 | select * from information_schema.global_variables where variable_name like 'net_%' order by 1; |
3054 | 265 | VARIABLE_NAME VARIABLE_VALUE | 266 | VARIABLE_NAME VARIABLE_VALUE |
3056 | 266 | NET_BUFFER_LENGTH 1024 | 267 | NET_BUFFER_LENGTH 7168 |
3057 | 267 | NET_READ_TIMEOUT 900 | 268 | NET_READ_TIMEOUT 900 |
3058 | 268 | NET_RETRY_COUNT 10 | 269 | NET_RETRY_COUNT 10 |
3059 | 269 | NET_WRITE_TIMEOUT 1000 | 270 | NET_WRITE_TIMEOUT 1000 |
3073 | 270 | show session variables like 'net_%'; | 271 | set global net_buffer_length=1; |
3061 | 271 | Variable_name Value | ||
3062 | 272 | net_buffer_length 7168 | ||
3063 | 273 | net_read_timeout 600 | ||
3064 | 274 | net_retry_count 10 | ||
3065 | 275 | net_write_timeout 500 | ||
3066 | 276 | select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name; | ||
3067 | 277 | VARIABLE_NAME VARIABLE_VALUE | ||
3068 | 278 | NET_BUFFER_LENGTH 7168 | ||
3069 | 279 | NET_READ_TIMEOUT 600 | ||
3070 | 280 | NET_RETRY_COUNT 10 | ||
3071 | 281 | NET_WRITE_TIMEOUT 500 | ||
3072 | 282 | set net_buffer_length=1; | ||
3074 | 283 | Warnings: | 272 | Warnings: |
3075 | 284 | Warning 1292 Truncated incorrect net_buffer_length value: '1' | 273 | Warning 1292 Truncated incorrect net_buffer_length value: '1' |
3077 | 285 | show variables like 'net_buffer_length'; | 274 | show global variables like 'net_buffer_length'; |
3078 | 286 | Variable_name Value | 275 | Variable_name Value |
3079 | 287 | net_buffer_length 1024 | 276 | net_buffer_length 1024 |
3081 | 288 | select * from information_schema.session_variables where variable_name like 'net_buffer_length'; | 277 | select * from information_schema.global_variables where variable_name like 'net_buffer_length'; |
3082 | 289 | VARIABLE_NAME VARIABLE_VALUE | 278 | VARIABLE_NAME VARIABLE_VALUE |
3083 | 290 | NET_BUFFER_LENGTH 1024 | 279 | NET_BUFFER_LENGTH 1024 |
3085 | 291 | set net_buffer_length=2000000000; | 280 | set global net_buffer_length=2000000000; |
3086 | 292 | Warnings: | 281 | Warnings: |
3087 | 293 | Warning 1292 Truncated incorrect net_buffer_length value: '2000000000' | 282 | Warning 1292 Truncated incorrect net_buffer_length value: '2000000000' |
3089 | 294 | show variables like 'net_buffer_length'; | 283 | show global variables like 'net_buffer_length'; |
3090 | 295 | Variable_name Value | 284 | Variable_name Value |
3091 | 296 | net_buffer_length 1048576 | 285 | net_buffer_length 1048576 |
3093 | 297 | select * from information_schema.session_variables where variable_name like 'net_buffer_length'; | 286 | select * from information_schema.global_variables where variable_name like 'net_buffer_length'; |
3094 | 298 | VARIABLE_NAME VARIABLE_VALUE | 287 | VARIABLE_NAME VARIABLE_VALUE |
3095 | 299 | NET_BUFFER_LENGTH 1048576 | 288 | NET_BUFFER_LENGTH 1048576 |
3096 | 300 | set character set cp1251_koi8; | 289 | set character set cp1251_koi8; |
3097 | @@ -311,59 +300,107 @@ | |||
3098 | 311 | select ROUND(RAND(),5); | 300 | select ROUND(RAND(),5); |
3099 | 312 | ROUND(RAND(),5) | 301 | ROUND(RAND(),5) |
3100 | 313 | 0.02887 | 302 | 0.02887 |
3102 | 314 | show variables like '%alloc%'; | 303 | |
3103 | 304 | ==+ Testing %alloc% system variables +== | ||
3104 | 305 | ==+ NOTE: These values *must* be a multiple of 1024 +== | ||
3105 | 306 | ==+ Other values will be rounded down to nearest multiple +== | ||
3106 | 307 | |||
3107 | 308 | ==+ Show initial values +== | ||
3108 | 309 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', | ||
3109 | 310 | 'query_alloc_block_size', 'query_prealloc_size', | ||
3110 | 311 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
3111 | 315 | Variable_name Value | 312 | Variable_name Value |
3112 | 316 | query_alloc_block_size 8192 | 313 | query_alloc_block_size 8192 |
3113 | 317 | query_prealloc_size 8192 | 314 | query_prealloc_size 8192 |
3114 | 318 | range_alloc_block_size 4096 | 315 | range_alloc_block_size 4096 |
3115 | 319 | transaction_alloc_block_size 8192 | 316 | transaction_alloc_block_size 8192 |
3116 | 320 | transaction_prealloc_size 4096 | 317 | transaction_prealloc_size 4096 |
3118 | 321 | select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name; | 318 | ==+ information_schema data +== |
3119 | 319 | SELECT * FROM information_schema.session_variables | ||
3120 | 320 | WHERE variable_name IN ('range_alloc_block_size', | ||
3121 | 321 | 'query_alloc_block_size', 'query_prealloc_size', | ||
3122 | 322 | 'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1; | ||
3123 | 322 | VARIABLE_NAME VARIABLE_VALUE | 323 | VARIABLE_NAME VARIABLE_VALUE |
3124 | 323 | QUERY_ALLOC_BLOCK_SIZE 8192 | 324 | QUERY_ALLOC_BLOCK_SIZE 8192 |
3125 | 324 | QUERY_PREALLOC_SIZE 8192 | 325 | QUERY_PREALLOC_SIZE 8192 |
3126 | 325 | RANGE_ALLOC_BLOCK_SIZE 4096 | 326 | RANGE_ALLOC_BLOCK_SIZE 4096 |
3127 | 326 | TRANSACTION_ALLOC_BLOCK_SIZE 8192 | 327 | TRANSACTION_ALLOC_BLOCK_SIZE 8192 |
3128 | 327 | TRANSACTION_PREALLOC_SIZE 4096 | 328 | TRANSACTION_PREALLOC_SIZE 4096 |
3130 | 328 | set @@range_alloc_block_size=1024*16; | 329 | Testing values that are multiples of 1024 |
3131 | 330 | set @@range_alloc_block_size=1024*15+1024; | ||
3132 | 331 | set @@query_alloc_block_size=1024*15+1024*2; | ||
3133 | 332 | set @@query_prealloc_size=1024*18-1024; | ||
3134 | 333 | set @@transaction_alloc_block_size=1024*21-1024*1; | ||
3135 | 334 | set @@transaction_prealloc_size=1024*21-2048; | ||
3136 | 335 | ==+ Check manipulated values ==+ | ||
3137 | 336 | select @@query_alloc_block_size; | ||
3138 | 337 | @@query_alloc_block_size | ||
3139 | 338 | 17408 | ||
3140 | 339 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', | ||
3141 | 340 | 'query_alloc_block_size', 'query_prealloc_size', | ||
3142 | 341 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
3143 | 342 | Variable_name Value | ||
3144 | 343 | query_alloc_block_size 17408 | ||
3145 | 344 | query_prealloc_size 17408 | ||
3146 | 345 | range_alloc_block_size 16384 | ||
3147 | 346 | transaction_alloc_block_size 20480 | ||
3148 | 347 | transaction_prealloc_size 19456 | ||
3149 | 348 | ==+ information_schema data +== | ||
3150 | 349 | SELECT * FROM information_schema.session_variables | ||
3151 | 350 | WHERE variable_name IN ('range_alloc_block_size', | ||
3152 | 351 | 'query_alloc_block_size', 'query_prealloc_size', | ||
3153 | 352 | 'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1; | ||
3154 | 353 | VARIABLE_NAME VARIABLE_VALUE | ||
3155 | 354 | QUERY_ALLOC_BLOCK_SIZE 17408 | ||
3156 | 355 | QUERY_PREALLOC_SIZE 17408 | ||
3157 | 356 | RANGE_ALLOC_BLOCK_SIZE 16384 | ||
3158 | 357 | TRANSACTION_ALLOC_BLOCK_SIZE 20480 | ||
3159 | 358 | TRANSACTION_PREALLOC_SIZE 19456 | ||
3160 | 359 | ==+ Manipulate variable values +== | ||
3161 | 360 | Testing values that are not 1024 multiples | ||
3162 | 361 | set @@range_alloc_block_size=1024*16+1023; | ||
3163 | 329 | set @@query_alloc_block_size=1024*17+2; | 362 | set @@query_alloc_block_size=1024*17+2; |
3165 | 330 | set @@query_prealloc_size=1024*18; | 363 | set @@query_prealloc_size=1024*18-1023; |
3166 | 331 | set @@transaction_alloc_block_size=1024*20-1; | 364 | set @@transaction_alloc_block_size=1024*20-1; |
3167 | 332 | set @@transaction_prealloc_size=1024*21-1; | 365 | set @@transaction_prealloc_size=1024*21-1; |
3168 | 333 | select @@query_alloc_block_size; | 366 | select @@query_alloc_block_size; |
3169 | 334 | @@query_alloc_block_size | 367 | @@query_alloc_block_size |
3170 | 335 | 17408 | 368 | 17408 |
3172 | 336 | show variables like '%alloc%'; | 369 | ==+ Check manipulated values ==+ |
3173 | 370 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', | ||
3174 | 371 | 'query_alloc_block_size', 'query_prealloc_size', | ||
3175 | 372 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
3176 | 337 | Variable_name Value | 373 | Variable_name Value |
3177 | 338 | query_alloc_block_size 17408 | 374 | query_alloc_block_size 17408 |
3179 | 339 | query_prealloc_size 18432 | 375 | query_prealloc_size 17408 |
3180 | 340 | range_alloc_block_size 16384 | 376 | range_alloc_block_size 16384 |
3181 | 341 | transaction_alloc_block_size 19456 | 377 | transaction_alloc_block_size 19456 |
3182 | 342 | transaction_prealloc_size 20480 | 378 | transaction_prealloc_size 20480 |
3184 | 343 | select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name; | 379 | ==+ information_schema data +== |
3185 | 380 | SELECT * FROM information_schema.session_variables | ||
3186 | 381 | WHERE variable_name IN ('range_alloc_block_size', | ||
3187 | 382 | 'query_alloc_block_size', 'query_prealloc_size', | ||
3188 | 383 | 'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1; | ||
3189 | 344 | VARIABLE_NAME VARIABLE_VALUE | 384 | VARIABLE_NAME VARIABLE_VALUE |
3190 | 345 | QUERY_ALLOC_BLOCK_SIZE 17408 | 385 | QUERY_ALLOC_BLOCK_SIZE 17408 |
3192 | 346 | QUERY_PREALLOC_SIZE 18432 | 386 | QUERY_PREALLOC_SIZE 17408 |
3193 | 347 | RANGE_ALLOC_BLOCK_SIZE 16384 | 387 | RANGE_ALLOC_BLOCK_SIZE 16384 |
3194 | 348 | TRANSACTION_ALLOC_BLOCK_SIZE 19456 | 388 | TRANSACTION_ALLOC_BLOCK_SIZE 19456 |
3195 | 349 | TRANSACTION_PREALLOC_SIZE 20480 | 389 | TRANSACTION_PREALLOC_SIZE 20480 |
3196 | 390 | ==+ Set values back to the default values +== | ||
3197 | 350 | set @@range_alloc_block_size=default; | 391 | set @@range_alloc_block_size=default; |
3198 | 351 | set @@query_alloc_block_size=default, @@query_prealloc_size=default; | 392 | set @@query_alloc_block_size=default, @@query_prealloc_size=default; |
3199 | 352 | set transaction_alloc_block_size=default, @@transaction_prealloc_size=default; | 393 | set transaction_alloc_block_size=default, @@transaction_prealloc_size=default; |
3201 | 353 | show variables like '%alloc%'; | 394 | ==+ Check the values now that they are reset +== |
3202 | 395 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', | ||
3203 | 396 | 'query_alloc_block_size', 'query_prealloc_size', | ||
3204 | 397 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
3205 | 354 | Variable_name Value | 398 | Variable_name Value |
3206 | 355 | query_alloc_block_size 8192 | 399 | query_alloc_block_size 8192 |
3207 | 356 | query_prealloc_size 8192 | 400 | query_prealloc_size 8192 |
3208 | 357 | range_alloc_block_size 4096 | 401 | range_alloc_block_size 4096 |
3209 | 358 | transaction_alloc_block_size 8192 | 402 | transaction_alloc_block_size 8192 |
3210 | 359 | transaction_prealloc_size 4096 | 403 | transaction_prealloc_size 4096 |
3211 | 360 | select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name; | ||
3212 | 361 | VARIABLE_NAME VARIABLE_VALUE | ||
3213 | 362 | QUERY_ALLOC_BLOCK_SIZE 8192 | ||
3214 | 363 | QUERY_PREALLOC_SIZE 8192 | ||
3215 | 364 | RANGE_ALLOC_BLOCK_SIZE 4096 | ||
3216 | 365 | TRANSACTION_ALLOC_BLOCK_SIZE 8192 | ||
3217 | 366 | TRANSACTION_PREALLOC_SIZE 4096 | ||
3218 | 367 | SELECT @@version LIKE 'non-existent'; | 404 | SELECT @@version LIKE 'non-existent'; |
3219 | 368 | @@version LIKE 'non-existent' | 405 | @@version LIKE 'non-existent' |
3220 | 369 | 0 | 406 | 0 |
3221 | @@ -453,9 +490,16 @@ | |||
3222 | 453 | Warning 1292 Truncated incorrect join_buffer_size value: '100' | 490 | Warning 1292 Truncated incorrect join_buffer_size value: '100' |
3223 | 454 | set last_insert_id=1; | 491 | set last_insert_id=1; |
3224 | 455 | set global local_infile=1; | 492 | set global local_infile=1; |
3226 | 456 | set long_query_time=100; | 493 | set long_query_time=0.000001; |
3227 | 494 | select @@long_query_time; | ||
3228 | 495 | @@long_query_time | ||
3229 | 496 | 0.000001 | ||
3230 | 497 | set long_query_time=100.000001; | ||
3231 | 498 | select @@long_query_time; | ||
3232 | 499 | @@long_query_time | ||
3233 | 500 | 100.000001 | ||
3234 | 457 | set low_priority_updates=1; | 501 | set low_priority_updates=1; |
3236 | 458 | set max_allowed_packet=100; | 502 | set global max_allowed_packet=100; |
3237 | 459 | Warnings: | 503 | Warnings: |
3238 | 460 | Warning 1292 Truncated incorrect max_allowed_packet value: '100' | 504 | Warning 1292 Truncated incorrect max_allowed_packet value: '100' |
3239 | 461 | set global max_binlog_cache_size=100; | 505 | set global max_binlog_cache_size=100; |
3240 | @@ -479,7 +523,7 @@ | |||
3241 | 479 | 100 | 523 | 100 |
3242 | 480 | set global max_write_lock_count=100; | 524 | set global max_write_lock_count=100; |
3243 | 481 | set myisam_sort_buffer_size=100; | 525 | set myisam_sort_buffer_size=100; |
3245 | 482 | set net_buffer_length=100; | 526 | set global net_buffer_length=100; |
3246 | 483 | Warnings: | 527 | Warnings: |
3247 | 484 | Warning 1292 Truncated incorrect net_buffer_length value: '100' | 528 | Warning 1292 Truncated incorrect net_buffer_length value: '100' |
3248 | 485 | set net_read_timeout=100; | 529 | set net_read_timeout=100; |
3249 | @@ -543,6 +587,7 @@ | |||
3250 | 543 | set tx_isolation="READ-COMMITTED"; | 587 | set tx_isolation="READ-COMMITTED"; |
3251 | 544 | set wait_timeout=100; | 588 | set wait_timeout=100; |
3252 | 545 | set log_warnings=1; | 589 | set log_warnings=1; |
3253 | 590 | set global log_warnings=1; | ||
3254 | 546 | select @@session.insert_id; | 591 | select @@session.insert_id; |
3255 | 547 | @@session.insert_id | 592 | @@session.insert_id |
3256 | 548 | 1 | 593 | 1 |
3257 | @@ -709,7 +754,7 @@ | |||
3258 | 709 | MYISAM_DATA_POINTER_SIZE 7 | 754 | MYISAM_DATA_POINTER_SIZE 7 |
3259 | 710 | SET GLOBAL table_open_cache=-1; | 755 | SET GLOBAL table_open_cache=-1; |
3260 | 711 | Warnings: | 756 | Warnings: |
3262 | 712 | Warning 1292 Truncated incorrect table_open_cache value: '0' | 757 | Warning 1292 Truncated incorrect table_open_cache value: '-1' |
3263 | 713 | SHOW VARIABLES LIKE 'table_open_cache'; | 758 | SHOW VARIABLES LIKE 'table_open_cache'; |
3264 | 714 | Variable_name Value | 759 | Variable_name Value |
3265 | 715 | table_open_cache 1 | 760 | table_open_cache 1 |
3266 | @@ -782,11 +827,45 @@ | |||
3267 | 782 | select @@lc_time_names; | 827 | select @@lc_time_names; |
3268 | 783 | @@lc_time_names | 828 | @@lc_time_names |
3269 | 784 | en_US | 829 | en_US |
3270 | 830 | select @@global.lc_time_names, @@lc_time_names; | ||
3271 | 831 | @@global.lc_time_names @@lc_time_names | ||
3272 | 832 | en_US en_US | ||
3273 | 833 | set @@global.lc_time_names=fr_FR; | ||
3274 | 834 | select @@global.lc_time_names, @@lc_time_names; | ||
3275 | 835 | @@global.lc_time_names @@lc_time_names | ||
3276 | 836 | fr_FR en_US | ||
3277 | 837 | New connection | ||
3278 | 838 | select @@global.lc_time_names, @@lc_time_names; | ||
3279 | 839 | @@global.lc_time_names @@lc_time_names | ||
3280 | 840 | fr_FR fr_FR | ||
3281 | 841 | set @@lc_time_names=ru_RU; | ||
3282 | 842 | select @@global.lc_time_names, @@lc_time_names; | ||
3283 | 843 | @@global.lc_time_names @@lc_time_names | ||
3284 | 844 | fr_FR ru_RU | ||
3285 | 845 | Returnung to default connection | ||
3286 | 846 | select @@global.lc_time_names, @@lc_time_names; | ||
3287 | 847 | @@global.lc_time_names @@lc_time_names | ||
3288 | 848 | fr_FR en_US | ||
3289 | 849 | set lc_time_names=default; | ||
3290 | 850 | select @@global.lc_time_names, @@lc_time_names; | ||
3291 | 851 | @@global.lc_time_names @@lc_time_names | ||
3292 | 852 | fr_FR fr_FR | ||
3293 | 853 | set @@global.lc_time_names=default; | ||
3294 | 854 | select @@global.lc_time_names, @@lc_time_names; | ||
3295 | 855 | @@global.lc_time_names @@lc_time_names | ||
3296 | 856 | en_US fr_FR | ||
3297 | 857 | set @@lc_time_names=default; | ||
3298 | 858 | select @@global.lc_time_names, @@lc_time_names; | ||
3299 | 859 | @@global.lc_time_names @@lc_time_names | ||
3300 | 860 | en_US en_US | ||
3301 | 785 | set @test = @@query_prealloc_size; | 861 | set @test = @@query_prealloc_size; |
3302 | 786 | set @@query_prealloc_size = @test; | 862 | set @@query_prealloc_size = @test; |
3303 | 787 | select @@query_prealloc_size = @test; | 863 | select @@query_prealloc_size = @test; |
3304 | 788 | @@query_prealloc_size = @test | 864 | @@query_prealloc_size = @test |
3305 | 789 | 1 | 865 | 1 |
3306 | 866 | set global sql_mode=repeat('a',80); | ||
3307 | 867 | ERROR 42000: Variable 'sql_mode' can't be set to the value of 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' | ||
3308 | 868 | End of 4.1 tests | ||
3309 | 790 | create table t1 (a int); | 869 | create table t1 (a int); |
3310 | 791 | select a into @x from t1; | 870 | select a into @x from t1; |
3311 | 792 | Warnings: | 871 | Warnings: |
3312 | @@ -909,7 +988,7 @@ | |||
3313 | 909 | ssl_cert # | 988 | ssl_cert # |
3314 | 910 | ssl_cipher # | 989 | ssl_cipher # |
3315 | 911 | ssl_key # | 990 | ssl_key # |
3317 | 912 | select * from information_schema.session_variables where variable_name like 'ssl%' order by variable_name; | 991 | select * from information_schema.session_variables where variable_name like 'ssl%' order by 1; |
3318 | 913 | VARIABLE_NAME VARIABLE_VALUE | 992 | VARIABLE_NAME VARIABLE_VALUE |
3319 | 914 | SSL_CA # | 993 | SSL_CA # |
3320 | 915 | SSL_CAPATH # | 994 | SSL_CAPATH # |
3321 | @@ -931,7 +1010,20 @@ | |||
3322 | 931 | ERROR 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 | 1010 | ERROR 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 |
3323 | 932 | select @@@; | 1011 | select @@@; |
3324 | 933 | ERROR 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 | 1012 | ERROR 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 |
3325 | 1013 | select @@hostname; | ||
3326 | 1014 | @@hostname | ||
3327 | 1015 | # | ||
3328 | 1016 | set @@hostname= "anothername"; | ||
3329 | 1017 | ERROR HY000: Variable 'hostname' is a read only variable | ||
3330 | 1018 | show variables like 'hostname'; | ||
3331 | 1019 | Variable_name Value | ||
3332 | 1020 | hostname # | ||
3333 | 934 | End of 5.0 tests | 1021 | End of 5.0 tests |
3334 | 1022 | set join_buffer_size=1; | ||
3335 | 1023 | Warnings: | ||
3336 | 1024 | Warning 1292 Truncated incorrect join_buffer_size value: '1' | ||
3337 | 1025 | set @save_join_buffer_size=@@join_buffer_size; | ||
3338 | 1026 | set join_buffer_size=@save_join_buffer_size; | ||
3339 | 935 | set global binlog_cache_size =@my_binlog_cache_size; | 1027 | set global binlog_cache_size =@my_binlog_cache_size; |
3340 | 936 | set global connect_timeout =@my_connect_timeout; | 1028 | set global connect_timeout =@my_connect_timeout; |
3341 | 937 | set global delayed_insert_timeout =@my_delayed_insert_timeout; | 1029 | set global delayed_insert_timeout =@my_delayed_insert_timeout; |
3342 | @@ -939,16 +1031,18 @@ | |||
3343 | 939 | set global flush =@my_flush; | 1031 | set global flush =@my_flush; |
3344 | 940 | set global flush_time =@my_flush_time; | 1032 | set global flush_time =@my_flush_time; |
3345 | 941 | set global key_buffer_size =@my_key_buffer_size; | 1033 | set global key_buffer_size =@my_key_buffer_size; |
3347 | 942 | set global max_binlog_cache_size =default; | 1034 | set global max_binlog_cache_size =@my_max_binlog_cache_size; |
3348 | 943 | set global max_binlog_size =@my_max_binlog_size; | 1035 | set global max_binlog_size =@my_max_binlog_size; |
3349 | 944 | set global max_connect_errors =@my_max_connect_errors; | 1036 | set global max_connect_errors =@my_max_connect_errors; |
3350 | 1037 | set global max_connections =@my_max_connections; | ||
3351 | 945 | set global max_delayed_threads =@my_max_delayed_threads; | 1038 | set global max_delayed_threads =@my_max_delayed_threads; |
3352 | 946 | set global max_heap_table_size =@my_max_heap_table_size; | 1039 | set global max_heap_table_size =@my_max_heap_table_size; |
3353 | 947 | set global max_insert_delayed_threads=@my_max_insert_delayed_threads; | 1040 | set global max_insert_delayed_threads=@my_max_insert_delayed_threads; |
3354 | 948 | set global max_join_size =@my_max_join_size; | 1041 | set global max_join_size =@my_max_join_size; |
3357 | 949 | set global max_user_connections =@my_max_user_connections; | 1042 | set global max_user_connections =default; |
3358 | 950 | set global max_write_lock_count =@my_max_write_lock_count; | 1043 | set global max_write_lock_count =default; |
3359 | 951 | set global myisam_data_pointer_size =@my_myisam_data_pointer_size; | 1044 | set global myisam_data_pointer_size =@my_myisam_data_pointer_size; |
3360 | 1045 | set global myisam_max_sort_file_size =@my_myisam_max_sort_file_size; | ||
3361 | 952 | set global net_buffer_length =@my_net_buffer_length; | 1046 | set global net_buffer_length =@my_net_buffer_length; |
3362 | 953 | set global net_write_timeout =@my_net_write_timeout; | 1047 | set global net_write_timeout =@my_net_write_timeout; |
3363 | 954 | set global net_read_timeout =@my_net_read_timeout; | 1048 | set global net_read_timeout =@my_net_read_timeout; |
3364 | @@ -959,3 +1053,418 @@ | |||
3365 | 959 | set global slow_launch_time =@my_slow_launch_time; | 1053 | set global slow_launch_time =@my_slow_launch_time; |
3366 | 960 | set global storage_engine =@my_storage_engine; | 1054 | set global storage_engine =@my_storage_engine; |
3367 | 961 | set global thread_cache_size =@my_thread_cache_size; | 1055 | set global thread_cache_size =@my_thread_cache_size; |
3368 | 1056 | set global max_allowed_packet =@my_max_allowed_packet; | ||
3369 | 1057 | set global join_buffer_size =@my_join_buffer_size; | ||
3370 | 1058 | show global variables where Variable_name='table_definition_cache' or | ||
3371 | 1059 | Variable_name='table_lock_wait_timeout'; | ||
3372 | 1060 | Variable_name Value | ||
3373 | 1061 | table_definition_cache # | ||
3374 | 1062 | table_lock_wait_timeout # | ||
3375 | 1063 | |||
3376 | 1064 | # -- | ||
3377 | 1065 | # -- Bug#34820: log_output can be set to illegal value. | ||
3378 | 1066 | # -- | ||
3379 | 1067 | SET GLOBAL log_output = ''; | ||
3380 | 1068 | ERROR 42000: Variable 'log_output' can't be set to the value of '' | ||
3381 | 1069 | SET GLOBAL log_output = 0; | ||
3382 | 1070 | ERROR 42000: Variable 'log_output' can't be set to the value of '0' | ||
3383 | 1071 | |||
3384 | 1072 | # -- End of Bug#34820. | ||
3385 | 1073 | |||
3386 | 1074 | # | ||
3387 | 1075 | SHOW VARIABLES like 'ft_max_word_len'; | ||
3388 | 1076 | Variable_name Value | ||
3389 | 1077 | ft_max_word_len 84 | ||
3390 | 1078 | SELECT @@session.ft_max_word_len; | ||
3391 | 1079 | ERROR HY000: Variable 'ft_max_word_len' is a GLOBAL variable | ||
3392 | 1080 | SELECT @@global.ft_max_word_len; | ||
3393 | 1081 | @@global.ft_max_word_len | ||
3394 | 1082 | 84 | ||
3395 | 1083 | SET @@session.ft_max_word_len= 7; | ||
3396 | 1084 | ERROR HY000: Variable 'ft_max_word_len' is a read only variable | ||
3397 | 1085 | SET @@global.ft_max_word_len= 7; | ||
3398 | 1086 | ERROR HY000: Variable 'ft_max_word_len' is a read only variable | ||
3399 | 1087 | # | ||
3400 | 1088 | SHOW VARIABLES like 'ft_min_word_len'; | ||
3401 | 1089 | Variable_name Value | ||
3402 | 1090 | ft_min_word_len 4 | ||
3403 | 1091 | SELECT @@session.ft_min_word_len; | ||
3404 | 1092 | ERROR HY000: Variable 'ft_min_word_len' is a GLOBAL variable | ||
3405 | 1093 | SELECT @@global.ft_min_word_len; | ||
3406 | 1094 | @@global.ft_min_word_len | ||
3407 | 1095 | 4 | ||
3408 | 1096 | SET @@session.ft_min_word_len= 7; | ||
3409 | 1097 | ERROR HY000: Variable 'ft_min_word_len' is a read only variable | ||
3410 | 1098 | SET @@global.ft_min_word_len= 7; | ||
3411 | 1099 | ERROR HY000: Variable 'ft_min_word_len' is a read only variable | ||
3412 | 1100 | # | ||
3413 | 1101 | SHOW VARIABLES like 'ft_query_expansion_limit'; | ||
3414 | 1102 | Variable_name Value | ||
3415 | 1103 | ft_query_expansion_limit 20 | ||
3416 | 1104 | SELECT @@session.ft_query_expansion_limit; | ||
3417 | 1105 | ERROR HY000: Variable 'ft_query_expansion_limit' is a GLOBAL variable | ||
3418 | 1106 | SELECT @@global.ft_query_expansion_limit; | ||
3419 | 1107 | @@global.ft_query_expansion_limit | ||
3420 | 1108 | 20 | ||
3421 | 1109 | SET @@session.ft_query_expansion_limit= 7; | ||
3422 | 1110 | ERROR HY000: Variable 'ft_query_expansion_limit' is a read only variable | ||
3423 | 1111 | SET @@global.ft_query_expansion_limit= 7; | ||
3424 | 1112 | ERROR HY000: Variable 'ft_query_expansion_limit' is a read only variable | ||
3425 | 1113 | # | ||
3426 | 1114 | SHOW VARIABLES like 'ft_stopword_file'; | ||
3427 | 1115 | Variable_name Value | ||
3428 | 1116 | ft_stopword_file (built-in) | ||
3429 | 1117 | SELECT @@session.ft_stopword_file; | ||
3430 | 1118 | ERROR HY000: Variable 'ft_stopword_file' is a GLOBAL variable | ||
3431 | 1119 | SELECT @@global.ft_stopword_file; | ||
3432 | 1120 | @@global.ft_stopword_file | ||
3433 | 1121 | (built-in) | ||
3434 | 1122 | SET @@session.ft_stopword_file= 'x'; | ||
3435 | 1123 | ERROR HY000: Variable 'ft_stopword_file' is a read only variable | ||
3436 | 1124 | SET @@global.ft_stopword_file= 'x'; | ||
3437 | 1125 | ERROR HY000: Variable 'ft_stopword_file' is a read only variable | ||
3438 | 1126 | # | ||
3439 | 1127 | SHOW VARIABLES like 'back_log'; | ||
3440 | 1128 | Variable_name Value | ||
3441 | 1129 | back_log 50 | ||
3442 | 1130 | SELECT @@session.back_log; | ||
3443 | 1131 | ERROR HY000: Variable 'back_log' is a GLOBAL variable | ||
3444 | 1132 | SELECT @@global.back_log; | ||
3445 | 1133 | @@global.back_log | ||
3446 | 1134 | 50 | ||
3447 | 1135 | SET @@session.back_log= 7; | ||
3448 | 1136 | ERROR HY000: Variable 'back_log' is a read only variable | ||
3449 | 1137 | SET @@global.back_log= 7; | ||
3450 | 1138 | ERROR HY000: Variable 'back_log' is a read only variable | ||
3451 | 1139 | # | ||
3452 | 1140 | SHOW VARIABLES like 'large_files_support'; | ||
3453 | 1141 | Variable_name Value | ||
3454 | 1142 | large_files_support # | ||
3455 | 1143 | SELECT @@session.large_files_support; | ||
3456 | 1144 | ERROR HY000: Variable 'large_files_support' is a GLOBAL variable | ||
3457 | 1145 | SELECT @@global.large_files_support; | ||
3458 | 1146 | @@global.large_files_support | ||
3459 | 1147 | # | ||
3460 | 1148 | SET @@session.large_files_support= true; | ||
3461 | 1149 | ERROR HY000: Variable 'large_files_support' is a read only variable | ||
3462 | 1150 | SET @@global.large_files_support= true; | ||
3463 | 1151 | ERROR HY000: Variable 'large_files_support' is a read only variable | ||
3464 | 1152 | # | ||
3465 | 1153 | SHOW VARIABLES like 'character_sets_dir'; | ||
3466 | 1154 | Variable_name Value | ||
3467 | 1155 | character_sets_dir # | ||
3468 | 1156 | SELECT @@session.character_sets_dir; | ||
3469 | 1157 | ERROR HY000: Variable 'character_sets_dir' is a GLOBAL variable | ||
3470 | 1158 | SELECT @@global.character_sets_dir; | ||
3471 | 1159 | @@global.character_sets_dir | ||
3472 | 1160 | # | ||
3473 | 1161 | SET @@session.character_sets_dir= 'x'; | ||
3474 | 1162 | ERROR HY000: Variable 'character_sets_dir' is a read only variable | ||
3475 | 1163 | SET @@global.character_sets_dir= 'x'; | ||
3476 | 1164 | ERROR HY000: Variable 'character_sets_dir' is a read only variable | ||
3477 | 1165 | # | ||
3478 | 1166 | SHOW VARIABLES like 'init_file'; | ||
3479 | 1167 | Variable_name Value | ||
3480 | 1168 | init_file # | ||
3481 | 1169 | SELECT @@session.init_file; | ||
3482 | 1170 | ERROR HY000: Variable 'init_file' is a GLOBAL variable | ||
3483 | 1171 | SELECT @@global.init_file; | ||
3484 | 1172 | @@global.init_file | ||
3485 | 1173 | # | ||
3486 | 1174 | SET @@session.init_file= 'x'; | ||
3487 | 1175 | ERROR HY000: Variable 'init_file' is a read only variable | ||
3488 | 1176 | SET @@global.init_file= 'x'; | ||
3489 | 1177 | ERROR HY000: Variable 'init_file' is a read only variable | ||
3490 | 1178 | # | ||
3491 | 1179 | SHOW VARIABLES like 'language'; | ||
3492 | 1180 | Variable_name Value | ||
3493 | 1181 | language # | ||
3494 | 1182 | SELECT @@session.language; | ||
3495 | 1183 | ERROR HY000: Variable 'language' is a GLOBAL variable | ||
3496 | 1184 | SELECT @@global.language; | ||
3497 | 1185 | @@global.language | ||
3498 | 1186 | # | ||
3499 | 1187 | SET @@session.language= 'x'; | ||
3500 | 1188 | ERROR HY000: Variable 'language' is a read only variable | ||
3501 | 1189 | SET @@global.language= 'x'; | ||
3502 | 1190 | ERROR HY000: Variable 'language' is a read only variable | ||
3503 | 1191 | # | ||
3504 | 1192 | SHOW VARIABLES like 'large_page_size'; | ||
3505 | 1193 | Variable_name Value | ||
3506 | 1194 | large_page_size # | ||
3507 | 1195 | SELECT @@session.large_page_size; | ||
3508 | 1196 | ERROR HY000: Variable 'large_page_size' is a GLOBAL variable | ||
3509 | 1197 | SELECT @@global.large_page_size; | ||
3510 | 1198 | @@global.large_page_size | ||
3511 | 1199 | # | ||
3512 | 1200 | SET @@session.large_page_size= 7; | ||
3513 | 1201 | ERROR HY000: Variable 'large_page_size' is a read only variable | ||
3514 | 1202 | SET @@global.large_page_size= 7; | ||
3515 | 1203 | ERROR HY000: Variable 'large_page_size' is a read only variable | ||
3516 | 1204 | # | ||
3517 | 1205 | SHOW VARIABLES like 'large_pages'; | ||
3518 | 1206 | Variable_name Value | ||
3519 | 1207 | large_pages # | ||
3520 | 1208 | SELECT @@session.large_pages; | ||
3521 | 1209 | ERROR HY000: Variable 'large_pages' is a GLOBAL variable | ||
3522 | 1210 | SELECT @@global.large_pages; | ||
3523 | 1211 | @@global.large_pages | ||
3524 | 1212 | # | ||
3525 | 1213 | SET @@session.large_pages= true; | ||
3526 | 1214 | ERROR HY000: Variable 'large_pages' is a read only variable | ||
3527 | 1215 | SET @@global.large_pages= true; | ||
3528 | 1216 | ERROR HY000: Variable 'large_pages' is a read only variable | ||
3529 | 1217 | # | ||
3530 | 1218 | SHOW VARIABLES like 'log_bin'; | ||
3531 | 1219 | Variable_name Value | ||
3532 | 1220 | log_bin OFF | ||
3533 | 1221 | SELECT @@session.log_bin; | ||
3534 | 1222 | ERROR HY000: Variable 'log_bin' is a GLOBAL variable | ||
3535 | 1223 | SELECT @@global.log_bin; | ||
3536 | 1224 | @@global.log_bin | ||
3537 | 1225 | 0 | ||
3538 | 1226 | SET @@session.log_bin= true; | ||
3539 | 1227 | ERROR HY000: Variable 'log_bin' is a read only variable | ||
3540 | 1228 | SET @@global.log_bin= true; | ||
3541 | 1229 | ERROR HY000: Variable 'log_bin' is a read only variable | ||
3542 | 1230 | # | ||
3543 | 1231 | SHOW VARIABLES like 'log_error'; | ||
3544 | 1232 | Variable_name Value | ||
3545 | 1233 | log_error # | ||
3546 | 1234 | SELECT @@session.log_error; | ||
3547 | 1235 | ERROR HY000: Variable 'log_error' is a GLOBAL variable | ||
3548 | 1236 | SELECT @@global.log_error; | ||
3549 | 1237 | @@global.log_error | ||
3550 | 1238 | # | ||
3551 | 1239 | SET @@session.log_error= 'x'; | ||
3552 | 1240 | ERROR HY000: Variable 'log_error' is a read only variable | ||
3553 | 1241 | SET @@global.log_error= 'x'; | ||
3554 | 1242 | ERROR HY000: Variable 'log_error' is a read only variable | ||
3555 | 1243 | # | ||
3556 | 1244 | SHOW VARIABLES like 'lower_case_file_system'; | ||
3557 | 1245 | Variable_name Value | ||
3558 | 1246 | lower_case_file_system # | ||
3559 | 1247 | SELECT @@session.lower_case_file_system; | ||
3560 | 1248 | ERROR HY000: Variable 'lower_case_file_system' is a GLOBAL variable | ||
3561 | 1249 | SELECT @@global.lower_case_file_system; | ||
3562 | 1250 | @@global.lower_case_file_system | ||
3563 | 1251 | # | ||
3564 | 1252 | SET @@session.lower_case_file_system= true; | ||
3565 | 1253 | ERROR HY000: Variable 'lower_case_file_system' is a read only variable | ||
3566 | 1254 | SET @@global.lower_case_file_system= true; | ||
3567 | 1255 | ERROR HY000: Variable 'lower_case_file_system' is a read only variable | ||
3568 | 1256 | # | ||
3569 | 1257 | SHOW VARIABLES like 'lower_case_table_names'; | ||
3570 | 1258 | Variable_name Value | ||
3571 | 1259 | lower_case_table_names # | ||
3572 | 1260 | SELECT @@session.lower_case_table_names; | ||
3573 | 1261 | ERROR HY000: Variable 'lower_case_table_names' is a GLOBAL variable | ||
3574 | 1262 | SELECT @@global.lower_case_table_names; | ||
3575 | 1263 | @@global.lower_case_table_names | ||
3576 | 1264 | # | ||
3577 | 1265 | SET @@session.lower_case_table_names= 7; | ||
3578 | 1266 | ERROR HY000: Variable 'lower_case_table_names' is a read only variable | ||
3579 | 1267 | SET @@global.lower_case_table_names= 7; | ||
3580 | 1268 | ERROR HY000: Variable 'lower_case_table_names' is a read only variable | ||
3581 | 1269 | # | ||
3582 | 1270 | SHOW VARIABLES like 'myisam_recover_options'; | ||
3583 | 1271 | Variable_name Value | ||
3584 | 1272 | myisam_recover_options OFF | ||
3585 | 1273 | SELECT @@session.myisam_recover_options; | ||
3586 | 1274 | ERROR HY000: Variable 'myisam_recover_options' is a GLOBAL variable | ||
3587 | 1275 | SELECT @@global.myisam_recover_options; | ||
3588 | 1276 | @@global.myisam_recover_options | ||
3589 | 1277 | OFF | ||
3590 | 1278 | SET @@session.myisam_recover_options= 'x'; | ||
3591 | 1279 | ERROR HY000: Variable 'myisam_recover_options' is a read only variable | ||
3592 | 1280 | SET @@global.myisam_recover_options= 'x'; | ||
3593 | 1281 | ERROR HY000: Variable 'myisam_recover_options' is a read only variable | ||
3594 | 1282 | # | ||
3595 | 1283 | SHOW VARIABLES like 'open_files_limit'; | ||
3596 | 1284 | Variable_name Value | ||
3597 | 1285 | open_files_limit # | ||
3598 | 1286 | SELECT @@session.open_files_limit; | ||
3599 | 1287 | ERROR HY000: Variable 'open_files_limit' is a GLOBAL variable | ||
3600 | 1288 | SELECT @@global.open_files_limit; | ||
3601 | 1289 | @@global.open_files_limit | ||
3602 | 1290 | # | ||
3603 | 1291 | SET @@session.open_files_limit= 7; | ||
3604 | 1292 | ERROR HY000: Variable 'open_files_limit' is a read only variable | ||
3605 | 1293 | SET @@global.open_files_limit= 7; | ||
3606 | 1294 | ERROR HY000: Variable 'open_files_limit' is a read only variable | ||
3607 | 1295 | # | ||
3608 | 1296 | SHOW VARIABLES like 'pid_file'; | ||
3609 | 1297 | Variable_name Value | ||
3610 | 1298 | pid_file # | ||
3611 | 1299 | SELECT @@session.pid_file; | ||
3612 | 1300 | ERROR HY000: Variable 'pid_file' is a GLOBAL variable | ||
3613 | 1301 | SELECT @@global.pid_file; | ||
3614 | 1302 | @@global.pid_file | ||
3615 | 1303 | # | ||
3616 | 1304 | SET @@session.pid_file= 'x'; | ||
3617 | 1305 | ERROR HY000: Variable 'pid_file' is a read only variable | ||
3618 | 1306 | SET @@global.pid_file= 'x'; | ||
3619 | 1307 | ERROR HY000: Variable 'pid_file' is a read only variable | ||
3620 | 1308 | # | ||
3621 | 1309 | SHOW VARIABLES like 'plugin_dir'; | ||
3622 | 1310 | Variable_name Value | ||
3623 | 1311 | plugin_dir # | ||
3624 | 1312 | SELECT @@session.plugin_dir; | ||
3625 | 1313 | ERROR HY000: Variable 'plugin_dir' is a GLOBAL variable | ||
3626 | 1314 | SELECT @@global.plugin_dir; | ||
3627 | 1315 | @@global.plugin_dir | ||
3628 | 1316 | # | ||
3629 | 1317 | SET @@session.plugin_dir= 'x'; | ||
3630 | 1318 | ERROR HY000: Variable 'plugin_dir' is a read only variable | ||
3631 | 1319 | SET @@global.plugin_dir= 'x'; | ||
3632 | 1320 | ERROR HY000: Variable 'plugin_dir' is a read only variable | ||
3633 | 1321 | # | ||
3634 | 1322 | SHOW VARIABLES like 'port'; | ||
3635 | 1323 | Variable_name Value | ||
3636 | 1324 | port # | ||
3637 | 1325 | SELECT @@session.port; | ||
3638 | 1326 | ERROR HY000: Variable 'port' is a GLOBAL variable | ||
3639 | 1327 | SELECT @@global.port; | ||
3640 | 1328 | @@global.port | ||
3641 | 1329 | # | ||
3642 | 1330 | SET @@session.port= 7; | ||
3643 | 1331 | ERROR HY000: Variable 'port' is a read only variable | ||
3644 | 1332 | SET @@global.port= 7; | ||
3645 | 1333 | ERROR HY000: Variable 'port' is a read only variable | ||
3646 | 1334 | # | ||
3647 | 1335 | SHOW VARIABLES like 'protocol_version'; | ||
3648 | 1336 | Variable_name Value | ||
3649 | 1337 | protocol_version 10 | ||
3650 | 1338 | SELECT @@session.protocol_version; | ||
3651 | 1339 | ERROR HY000: Variable 'protocol_version' is a GLOBAL variable | ||
3652 | 1340 | SELECT @@global.protocol_version; | ||
3653 | 1341 | @@global.protocol_version | ||
3654 | 1342 | 10 | ||
3655 | 1343 | SET @@session.protocol_version= 7; | ||
3656 | 1344 | ERROR HY000: Variable 'protocol_version' is a read only variable | ||
3657 | 1345 | SET @@global.protocol_version= 7; | ||
3658 | 1346 | ERROR HY000: Variable 'protocol_version' is a read only variable | ||
3659 | 1347 | # | ||
3660 | 1348 | SHOW VARIABLES like 'skip_external_locking'; | ||
3661 | 1349 | Variable_name Value | ||
3662 | 1350 | skip_external_locking ON | ||
3663 | 1351 | SELECT @@session.skip_external_locking; | ||
3664 | 1352 | ERROR HY000: Variable 'skip_external_locking' is a GLOBAL variable | ||
3665 | 1353 | SELECT @@global.skip_external_locking; | ||
3666 | 1354 | @@global.skip_external_locking | ||
3667 | 1355 | 1 | ||
3668 | 1356 | SET @@session.skip_external_locking= true; | ||
3669 | 1357 | ERROR HY000: Variable 'skip_external_locking' is a read only variable | ||
3670 | 1358 | SET @@global.skip_external_locking= true; | ||
3671 | 1359 | ERROR HY000: Variable 'skip_external_locking' is a read only variable | ||
3672 | 1360 | # | ||
3673 | 1361 | SHOW VARIABLES like 'skip_networking'; | ||
3674 | 1362 | Variable_name Value | ||
3675 | 1363 | skip_networking OFF | ||
3676 | 1364 | SELECT @@session.skip_networking; | ||
3677 | 1365 | ERROR HY000: Variable 'skip_networking' is a GLOBAL variable | ||
3678 | 1366 | SELECT @@global.skip_networking; | ||
3679 | 1367 | @@global.skip_networking | ||
3680 | 1368 | 0 | ||
3681 | 1369 | SET @@session.skip_networking= true; | ||
3682 | 1370 | ERROR HY000: Variable 'skip_networking' is a read only variable | ||
3683 | 1371 | SET @@global.skip_networking= true; | ||
3684 | 1372 | ERROR HY000: Variable 'skip_networking' is a read only variable | ||
3685 | 1373 | # | ||
3686 | 1374 | SHOW VARIABLES like 'skip_show_database'; | ||
3687 | 1375 | Variable_name Value | ||
3688 | 1376 | skip_show_database OFF | ||
3689 | 1377 | SELECT @@session.skip_show_database; | ||
3690 | 1378 | ERROR HY000: Variable 'skip_show_database' is a GLOBAL variable | ||
3691 | 1379 | SELECT @@global.skip_show_database; | ||
3692 | 1380 | @@global.skip_show_database | ||
3693 | 1381 | 0 | ||
3694 | 1382 | SET @@session.skip_show_database= true; | ||
3695 | 1383 | ERROR HY000: Variable 'skip_show_database' is a read only variable | ||
3696 | 1384 | SET @@global.skip_show_database= true; | ||
3697 | 1385 | ERROR HY000: Variable 'skip_show_database' is a read only variable | ||
3698 | 1386 | # | ||
3699 | 1387 | SHOW VARIABLES like 'thread_stack'; | ||
3700 | 1388 | Variable_name Value | ||
3701 | 1389 | thread_stack # | ||
3702 | 1390 | SELECT @@session.thread_stack; | ||
3703 | 1391 | ERROR HY000: Variable 'thread_stack' is a GLOBAL variable | ||
3704 | 1392 | SELECT @@global.thread_stack; | ||
3705 | 1393 | @@global.thread_stack | ||
3706 | 1394 | # | ||
3707 | 1395 | SET @@session.thread_stack= 7; | ||
3708 | 1396 | ERROR HY000: Variable 'thread_stack' is a read only variable | ||
3709 | 1397 | SET @@global.thread_stack= 7; | ||
3710 | 1398 | ERROR HY000: Variable 'thread_stack' is a read only variable | ||
3711 | 1399 | SELECT @@global.expire_logs_days INTO @old_eld; | ||
3712 | 1400 | SET GLOBAL expire_logs_days = -1; | ||
3713 | 1401 | Warnings: | ||
3714 | 1402 | Warning 1292 Truncated incorrect expire_logs_days value: '-1' | ||
3715 | 1403 | needs to've been adjusted (0) | ||
3716 | 1404 | SELECT @@global.expire_logs_days; | ||
3717 | 1405 | @@global.expire_logs_days | ||
3718 | 1406 | 0 | ||
3719 | 1407 | SET GLOBAL expire_logs_days = 11; | ||
3720 | 1408 | SET @old_mode=@@sql_mode; | ||
3721 | 1409 | SET SESSION sql_mode = 'TRADITIONAL'; | ||
3722 | 1410 | SET GLOBAL expire_logs_days = 100; | ||
3723 | 1411 | ERROR 42000: Variable 'expire_logs_days' can't be set to the value of '100' | ||
3724 | 1412 | needs to be unchanged (11) | ||
3725 | 1413 | SELECT @@global.expire_logs_days; | ||
3726 | 1414 | @@global.expire_logs_days | ||
3727 | 1415 | 11 | ||
3728 | 1416 | SET SESSION sql_mode = @old_mode; | ||
3729 | 1417 | SET GLOBAL expire_logs_days = 100; | ||
3730 | 1418 | Warnings: | ||
3731 | 1419 | Warning 1292 Truncated incorrect expire_logs_days value: '100' | ||
3732 | 1420 | needs to've been adjusted (99) | ||
3733 | 1421 | SELECT @@global.expire_logs_days; | ||
3734 | 1422 | @@global.expire_logs_days | ||
3735 | 1423 | 99 | ||
3736 | 1424 | SET GLOBAL expire_logs_days = 11; | ||
3737 | 1425 | SET GLOBAL expire_logs_days = 99; | ||
3738 | 1426 | needs to pass with no warnings (99) | ||
3739 | 1427 | SELECT @@global.expire_logs_days; | ||
3740 | 1428 | @@global.expire_logs_days | ||
3741 | 1429 | 99 | ||
3742 | 1430 | SET GLOBAL expire_logs_days = @old_eld; | ||
3743 | 1431 | SET GLOBAL auto_increment_offset=-1; | ||
3744 | 1432 | Warnings: | ||
3745 | 1433 | Warning 1292 Truncated incorrect auto_increment_offset value: '-1' | ||
3746 | 1434 | SET GLOBAL auto_increment_offset=0; | ||
3747 | 1435 | Warnings: | ||
3748 | 1436 | Warning 1292 Truncated incorrect auto_increment_offset value: '0' | ||
3749 | 1437 | select @@storage_engine; | ||
3750 | 1438 | Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr | ||
3751 | 1439 | def @@storage_engine 253 6 6 N 1 31 8 | ||
3752 | 1440 | @@storage_engine | ||
3753 | 1441 | MyISAM | ||
3754 | 1442 | SET @old_server_id = @@GLOBAL.server_id; | ||
3755 | 1443 | SET GLOBAL server_id = (1 << 32) - 1; | ||
3756 | 1444 | SELECT @@GLOBAL.server_id; | ||
3757 | 1445 | @@GLOBAL.server_id | ||
3758 | 1446 | 4294967295 | ||
3759 | 1447 | SET GLOBAL server_id = (1 << 32); | ||
3760 | 1448 | Warnings: | ||
3761 | 1449 | Warning 1292 Truncated incorrect server_id value: '4294967296' | ||
3762 | 1450 | SELECT @@GLOBAL.server_id; | ||
3763 | 1451 | @@GLOBAL.server_id | ||
3764 | 1452 | 4294967295 | ||
3765 | 1453 | SET GLOBAL server_id = (1 << 60); | ||
3766 | 1454 | Warnings: | ||
3767 | 1455 | Warning 1292 Truncated incorrect server_id value: '1152921504606846976' | ||
3768 | 1456 | SELECT @@GLOBAL.server_id; | ||
3769 | 1457 | @@GLOBAL.server_id | ||
3770 | 1458 | 4294967295 | ||
3771 | 1459 | SET GLOBAL server_id = 0; | ||
3772 | 1460 | SELECT @@GLOBAL.server_id; | ||
3773 | 1461 | @@GLOBAL.server_id | ||
3774 | 1462 | 0 | ||
3775 | 1463 | SET GLOBAL server_id = -1; | ||
3776 | 1464 | Warnings: | ||
3777 | 1465 | Warning 1292 Truncated incorrect server_id value: '-1' | ||
3778 | 1466 | SELECT @@GLOBAL.server_id; | ||
3779 | 1467 | @@GLOBAL.server_id | ||
3780 | 1468 | 0 | ||
3781 | 1469 | SET GLOBAL server_id = @old_server_id; | ||
3782 | 1470 | End of 5.1 tests | ||
3783 | 962 | 1471 | ||
3784 | === modified file 'test/mysql-test/r/view_grant.result' | |||
3785 | --- test/mysql-test/r/view_grant.result 2008-07-16 08:46:49 +0000 | |||
3786 | +++ test/mysql-test/r/view_grant.result 2009-06-02 21:32:52 +0000 | |||
3787 | @@ -28,7 +28,7 @@ | |||
3788 | 28 | ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table 't2' | 28 | ERROR 42000: ANY command denied to user 'mysqltest_1'@'localhost' for table 't2' |
3789 | 29 | show create view v1; | 29 | show create view v1; |
3790 | 30 | View Create View character_set_client collation_connection | 30 | View Create View character_set_client collation_connection |
3792 | 31 | v1 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_ci | 31 | v1 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 |
3793 | 32 | grant create view,drop,select on test.* to mysqltest_1@localhost; | 32 | grant create view,drop,select on test.* to mysqltest_1@localhost; |
3794 | 33 | use test; | 33 | use test; |
3795 | 34 | alter view v1 as select * from mysqltest.t1; | 34 | alter view v1 as select * from mysqltest.t1; |
3796 | @@ -309,7 +309,7 @@ | |||
3797 | 309 | create view v1 as select * from mysqltest.t1; | 309 | create view v1 as select * from mysqltest.t1; |
3798 | 310 | show create view v1; | 310 | show create view v1; |
3799 | 311 | View Create View character_set_client collation_connection | 311 | View Create View character_set_client collation_connection |
3801 | 312 | v1 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_ci | 312 | v1 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 |
3802 | 313 | revoke select on mysqltest.t1 from mysqltest_1@localhost; | 313 | revoke select on mysqltest.t1 from mysqltest_1@localhost; |
3803 | 314 | select * from v1; | 314 | select * from v1; |
3804 | 315 | ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them | 315 | ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them |
3805 | 316 | 316 | ||
3806 | === modified file 'test/mysql-test/r/warnings.result' | |||
3807 | --- test/mysql-test/r/warnings.result 2008-11-05 12:01:29 +0000 | |||
3808 | +++ test/mysql-test/r/warnings.result 2009-06-02 21:34:42 +0000 | |||
3809 | @@ -98,10 +98,11 @@ | |||
3810 | 98 | Warning 1265 Data truncated for column 'c' at row 2 | 98 | Warning 1265 Data truncated for column 'c' at row 2 |
3811 | 99 | alter table t1 add d char(2); | 99 | alter table t1 add d char(2); |
3812 | 100 | update t1 set a=NULL where a=10; | 100 | update t1 set a=NULL where a=10; |
3814 | 101 | ERROR 23000: Column 'a' cannot be null | 101 | Warnings: |
3815 | 102 | Warning 1048 Column 'a' cannot be null | ||
3816 | 102 | update t1 set c='mysql ab' where c='test'; | 103 | update t1 set c='mysql ab' where c='test'; |
3817 | 103 | Warnings: | 104 | Warnings: |
3819 | 104 | Warning 1265 Data truncated for column 'c' at row 4 | 105 | Warning 1265 Data truncated for column 'c' at row 3 |
3820 | 105 | update t1 set d=c; | 106 | update t1 set d=c; |
3821 | 106 | Warnings: | 107 | Warnings: |
3822 | 107 | Warning 1265 Data truncated for column 'd' at row 1 | 108 | Warning 1265 Data truncated for column 'd' at row 1 |
3823 | @@ -167,7 +168,7 @@ | |||
3824 | 167 | drop table t1; | 168 | drop table t1; |
3825 | 168 | set table_type=MYISAM; | 169 | set table_type=MYISAM; |
3826 | 169 | Warnings: | 170 | Warnings: |
3828 | 170 | Warning 1287 The syntax '@@table_type' is deprecated and will be removed in MySQL 5.2. Please use '@@storage_engine' instead | 171 | Warning 1287 The syntax '@@table_type' is deprecated and will be removed in MySQL 6.0. Please use '@@storage_engine' instead |
3829 | 171 | create table t1 (a int); | 172 | create table t1 (a int); |
3830 | 172 | insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10); | 173 | insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10); |
3831 | 173 | update t1 set a='abc'; | 174 | update t1 set a='abc'; |
3832 | 174 | 175 | ||
3833 | === modified file 'test/mysql-test/t/auto_increment.test' | |||
3834 | --- test/mysql-test/t/auto_increment.test 2009-04-02 20:28:52 +0000 | |||
3835 | +++ test/mysql-test/t/auto_increment.test 2009-06-02 00:08:42 +0000 | |||
3836 | @@ -150,7 +150,6 @@ | |||
3837 | 150 | update t1 set a=0 where b=5; | 150 | update t1 set a=0 where b=5; |
3838 | 151 | select * from t1 order by b; | 151 | select * from t1 order by b; |
3839 | 152 | delete from t1 where a=0; | 152 | delete from t1 where a=0; |
3840 | 153 | --error 1048 | ||
3841 | 154 | update t1 set a=NULL where b=6; | 153 | update t1 set a=NULL where b=6; |
3842 | 155 | update t1 set a=300 where b=7; | 154 | update t1 set a=300 where b=7; |
3843 | 156 | SET SQL_MODE=''; | 155 | SET SQL_MODE=''; |
3844 | @@ -166,7 +165,6 @@ | |||
3845 | 166 | update t1 set a=0 where b=12; | 165 | update t1 set a=0 where b=12; |
3846 | 167 | select * from t1 order by b; | 166 | select * from t1 order by b; |
3847 | 168 | delete from t1 where a=0; | 167 | delete from t1 where a=0; |
3848 | 169 | --error 1048 | ||
3849 | 170 | update t1 set a=NULL where b=13; | 168 | update t1 set a=NULL where b=13; |
3850 | 171 | update t1 set a=500 where b=14; | 169 | update t1 set a=500 where b=14; |
3851 | 172 | select * from t1 order by b; | 170 | select * from t1 order by b; |
3852 | 173 | 171 | ||
3853 | === modified file 'test/mysql-test/t/func_compress.test' | |||
3854 | --- test/mysql-test/t/func_compress.test 2007-01-29 15:04:29 +0000 | |||
3855 | +++ test/mysql-test/t/func_compress.test 2009-06-02 00:20:29 +0000 | |||
3856 | @@ -43,9 +43,15 @@ | |||
3857 | 43 | # note that when LOW_MEMORY is set the "test" below is meaningless | 43 | # note that when LOW_MEMORY is set the "test" below is meaningless |
3858 | 44 | # | 44 | # |
3859 | 45 | 45 | ||
3861 | 46 | set @@max_allowed_packet=1048576*100; | 46 | set @@global.max_allowed_packet=1048576*100; |
3862 | 47 | --replace_result "''" XXX "'1'" XXX | 47 | --replace_result "''" XXX "'1'" XXX |
3863 | 48 | |||
3864 | 49 | # reconnect to make the new max packet size take effect | ||
3865 | 50 | --connect (newconn, localhost, root,,) | ||
3866 | 48 | eval select compress(repeat('aaaaaaaaaa', IF('$LOW_MEMORY', 10, 10000000))) is null; | 51 | eval select compress(repeat('aaaaaaaaaa', IF('$LOW_MEMORY', 10, 10000000))) is null; |
3867 | 52 | disconnect newconn; | ||
3868 | 53 | connection default; | ||
3869 | 54 | set @@global.max_allowed_packet=default; | ||
3870 | 49 | 55 | ||
3871 | 50 | # | 56 | # |
3872 | 51 | # Bug #18643: problem with null values | 57 | # Bug #18643: problem with null values |
3873 | 52 | 58 | ||
3874 | === modified file 'test/mysql-test/t/myisam-blob.test' | |||
3875 | --- test/mysql-test/t/myisam-blob.test 2007-03-13 19:06:47 +0000 | |||
3876 | +++ test/mysql-test/t/myisam-blob.test 2009-06-02 17:54:03 +0000 | |||
3877 | @@ -6,7 +6,9 @@ | |||
3878 | 6 | drop table if exists t1; | 6 | drop table if exists t1; |
3879 | 7 | --enable_warnings | 7 | --enable_warnings |
3880 | 8 | 8 | ||
3882 | 9 | set @@max_allowed_packet=20*1024*1024; # PBXT avoid overflow | 9 | # Set packet size and reconnect |
3883 | 10 | SET global max_allowed_packet=20*1024*1024; | ||
3884 | 11 | --connect (newconn, localhost, root,,) | ||
3885 | 10 | 12 | ||
3886 | 11 | # Bug #2159 (Problem with update of blob to > 16M) | 13 | # Bug #2159 (Problem with update of blob to > 16M) |
3887 | 12 | 14 | ||
3888 | 13 | 15 | ||
3889 | === modified file 'test/mysql-test/t/myisam.test' | |||
3890 | --- test/mysql-test/t/myisam.test 2008-05-30 12:31:39 +0000 | |||
3891 | +++ test/mysql-test/t/myisam.test 2009-06-02 17:55:55 +0000 | |||
3892 | @@ -749,7 +749,7 @@ | |||
3893 | 749 | # | 749 | # |
3894 | 750 | CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=pbxt; | 750 | CREATE TABLE t1(a CHAR(9), b VARCHAR(7)) ENGINE=pbxt; |
3895 | 751 | INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx'); | 751 | INSERT INTO t1(a) VALUES('xxxxxxxxx'),('xxxxxxxxx'); |
3897 | 752 | -- This is a PBXT bug: | 752 | # This is a PBXT bug: |
3898 | 753 | -- error 1020 | 753 | -- error 1020 |
3899 | 754 | UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb'; | 754 | UPDATE t1 AS ta1,t1 AS ta2 SET ta1.b='aaaaaa',ta2.b='bbbbbb'; |
3900 | 755 | SELECT * FROM t1; | 755 | SELECT * FROM t1; |
3901 | 756 | 756 | ||
3902 | === modified file 'test/mysql-test/t/mysql_client_test.test' | |||
3903 | --- test/mysql-test/t/mysql_client_test.test 2006-10-23 09:14:04 +0000 | |||
3904 | +++ test/mysql-test/t/mysql_client_test.test 2009-06-02 18:07:21 +0000 | |||
3905 | @@ -1,6 +1,8 @@ | |||
3906 | 1 | # This test should work in embedded server after we fix mysqltest | 1 | # This test should work in embedded server after we fix mysqltest |
3907 | 2 | -- source include/not_embedded.inc | 2 | -- source include/not_embedded.inc |
3908 | 3 | 3 | ||
3909 | 4 | SET @old_general_log= @@global.general_log; | ||
3910 | 5 | |||
3911 | 4 | # We run with different binaries for normal and --embedded-server | 6 | # We run with different binaries for normal and --embedded-server |
3912 | 5 | # | 7 | # |
3913 | 6 | # If this test fails with "command "$MYSQL_CLIENT_TEST" failed", | 8 | # If this test fails with "command "$MYSQL_CLIENT_TEST" failed", |
3914 | @@ -8,9 +10,10 @@ | |||
3915 | 8 | # server or run mysql-test-run --debug mysql_client_test and check | 10 | # server or run mysql-test-run --debug mysql_client_test and check |
3916 | 9 | # var/log/mysql_client_test.trace | 11 | # var/log/mysql_client_test.trace |
3917 | 10 | 12 | ||
3920 | 11 | --exec echo "$MYSQL_CLIENT_TEST" > $MYSQLTEST_VARDIR/log/mysql_client_test.log 2>&1 | 13 | --exec echo "$MYSQL_CLIENT_TEST" > $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1 |
3921 | 12 | --exec $MYSQL_CLIENT_TEST --getopt-ll-test=25600M >> $MYSQLTEST_VARDIR/log/mysql_client_test.log 2>&1 | 14 | --exec $MYSQL_CLIENT_TEST --getopt-ll-test=25600M >> $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1 |
3922 | 13 | 15 | ||
3923 | 14 | # End of 4.1 tests | 16 | # End of 4.1 tests |
3924 | 15 | echo ok; | 17 | echo ok; |
3925 | 16 | 18 | ||
3926 | 19 | SET @@global.general_log= @old_general_log; | ||
3927 | 17 | 20 | ||
3928 | === modified file 'test/mysql-test/t/mysqltest.test' | |||
3929 | --- test/mysql-test/t/mysqltest.test 2008-03-11 16:31:13 +0000 | |||
3930 | +++ test/mysql-test/t/mysqltest.test 2009-06-02 18:38:30 +0000 | |||
3931 | @@ -6,6 +6,9 @@ | |||
3932 | 6 | # This test uses chmod, can't be run with root permissions | 6 | # This test uses chmod, can't be run with root permissions |
3933 | 7 | -- source include/not_as_root.inc | 7 | -- source include/not_as_root.inc |
3934 | 8 | 8 | ||
3935 | 9 | # Save the initial number of concurrent sessions | ||
3936 | 10 | --source include/count_sessions.inc | ||
3937 | 11 | |||
3938 | 9 | # ============================================================================ | 12 | # ============================================================================ |
3939 | 10 | # | 13 | # |
3940 | 11 | # Test of mysqltest itself | 14 | # Test of mysqltest itself |
3941 | @@ -50,7 +53,7 @@ | |||
3942 | 50 | 53 | ||
3943 | 51 | # ---------------------------------------------------------------------------- | 54 | # ---------------------------------------------------------------------------- |
3944 | 52 | # Negative case(statement): | 55 | # Negative case(statement): |
3946 | 53 | # The derived table t1 does not contain a column named 'friedrich' . | 56 | # The derived table t1 does not contain a column named 'friedrich' . |
3947 | 54 | # --> ERROR 42S22: Unknown column 'friedrich' in 'field list and | 57 | # --> ERROR 42S22: Unknown column 'friedrich' in 'field list and |
3948 | 55 | # --> 1054: Unknown column 'friedrich' in 'field list' | 58 | # --> 1054: Unknown column 'friedrich' in 'field list' |
3949 | 56 | # ---------------------------------------------------------------------------- | 59 | # ---------------------------------------------------------------------------- |
3950 | @@ -62,7 +65,8 @@ | |||
3951 | 62 | --exec echo "select friedrich from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&1 | 65 | --exec echo "select friedrich from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&1 |
3952 | 63 | 66 | ||
3953 | 64 | # expectation = response | 67 | # expectation = response |
3955 | 65 | --error 1054 | 68 | --error ER_BAD_FIELD_ERROR |
3956 | 69 | |||
3957 | 66 | select friedrich from (select 1 as otto) as t1; | 70 | select friedrich from (select 1 as otto) as t1; |
3958 | 67 | 71 | ||
3959 | 68 | # The following unmasked unsuccessful statement must give | 72 | # The following unmasked unsuccessful statement must give |
3960 | @@ -91,6 +95,10 @@ | |||
3961 | 91 | --error 1 | 95 | --error 1 |
3962 | 92 | --exec echo "error S42S22; select otto from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&1 | 96 | --exec echo "error S42S22; select otto from (select 1 as otto) as t1;" | $MYSQL_TEST 2>&1 |
3963 | 93 | 97 | ||
3964 | 98 | # expecting a SQL-state for a command that can't give one should fail | ||
3965 | 99 | --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR | ||
3966 | 100 | --error 1 | ||
3967 | 101 | --exec echo "error S00000; remove_file $MYSQLTEST_VARDIR/tmp/test_nonexistent.tmp;" | $MYSQL_TEST 2>&1 | ||
3968 | 94 | 102 | ||
3969 | 95 | 103 | ||
3970 | 96 | # ---------------------------------------------------------------------------- | 104 | # ---------------------------------------------------------------------------- |
3971 | @@ -116,7 +124,7 @@ | |||
3972 | 116 | # $mysql_errno is a builtin variable of mysqltest and contains the return code | 124 | # $mysql_errno is a builtin variable of mysqltest and contains the return code |
3973 | 117 | # of the last command sent to the server. | 125 | # of the last command sent to the server. |
3974 | 118 | # | 126 | # |
3976 | 119 | # The following test cases often initialize $mysql_errno to 1064 by | 127 | # The following test cases often initialize $mysql_errno to 1064 by |
3977 | 120 | # a command with wrong syntax. | 128 | # a command with wrong syntax. |
3978 | 121 | # Example: --error 1064 To prevent the abort after the error. | 129 | # Example: --error 1064 To prevent the abort after the error. |
3979 | 122 | # garbage ; | 130 | # garbage ; |
3980 | @@ -131,14 +139,16 @@ | |||
3981 | 131 | #---------------------------------------------------------------------------- | 139 | #---------------------------------------------------------------------------- |
3982 | 132 | # check mysql_errno = 1064 after statement with wrong syntax | 140 | # check mysql_errno = 1064 after statement with wrong syntax |
3983 | 133 | # ---------------------------------------------------------------------------- | 141 | # ---------------------------------------------------------------------------- |
3985 | 134 | --error 1064 | 142 | --error ER_PARSE_ERROR |
3986 | 143 | |||
3987 | 135 | garbage ; | 144 | garbage ; |
3988 | 136 | eval select $mysql_errno as "after_wrong_syntax_errno" ; | 145 | eval select $mysql_errno as "after_wrong_syntax_errno" ; |
3989 | 137 | 146 | ||
3990 | 138 | # ---------------------------------------------------------------------------- | 147 | # ---------------------------------------------------------------------------- |
3991 | 139 | # check if let $my_var= 'abc' ; affects $mysql_errno | 148 | # check if let $my_var= 'abc' ; affects $mysql_errno |
3992 | 140 | # ---------------------------------------------------------------------------- | 149 | # ---------------------------------------------------------------------------- |
3994 | 141 | --error 1064 | 150 | --error ER_PARSE_ERROR |
3995 | 151 | |||
3996 | 142 | garbage ; | 152 | garbage ; |
3997 | 143 | let $my_var= 'abc' ; | 153 | let $my_var= 'abc' ; |
3998 | 144 | eval select $mysql_errno as "after_let_var_equal_value" ; | 154 | eval select $mysql_errno as "after_let_var_equal_value" ; |
3999 | @@ -146,7 +156,8 @@ | |||
4000 | 146 | # ---------------------------------------------------------------------------- | 156 | # ---------------------------------------------------------------------------- |
4001 | 147 | # check if set @my_var= 'abc' ; affects $mysql_errno | 157 | # check if set @my_var= 'abc' ; affects $mysql_errno |
4002 | 148 | # ---------------------------------------------------------------------------- | 158 | # ---------------------------------------------------------------------------- |
4004 | 149 | --error 1064 | 159 | --error ER_PARSE_ERROR |
4005 | 160 | |||
4006 | 150 | garbage ; | 161 | garbage ; |
4007 | 151 | set @my_var= 'abc' ; | 162 | set @my_var= 'abc' ; |
4008 | 152 | eval select $mysql_errno as "after_set_var_equal_value" ; | 163 | eval select $mysql_errno as "after_set_var_equal_value" ; |
4009 | @@ -155,7 +166,8 @@ | |||
4010 | 155 | # check if the setting of --disable-warnings itself affects $mysql_errno | 166 | # check if the setting of --disable-warnings itself affects $mysql_errno |
4011 | 156 | # (May be --<whatever> modifies $mysql_errno.) | 167 | # (May be --<whatever> modifies $mysql_errno.) |
4012 | 157 | # ---------------------------------------------------------------------------- | 168 | # ---------------------------------------------------------------------------- |
4014 | 158 | --error 1064 | 169 | --error ER_PARSE_ERROR |
4015 | 170 | |||
4016 | 159 | garbage ; | 171 | garbage ; |
4017 | 160 | --disable_warnings | 172 | --disable_warnings |
4018 | 161 | eval select $mysql_errno as "after_disable_warnings_command" ; | 173 | eval select $mysql_errno as "after_disable_warnings_command" ; |
4019 | @@ -166,7 +178,8 @@ | |||
4020 | 166 | # (May be disabled warnings affect $mysql_errno.) | 178 | # (May be disabled warnings affect $mysql_errno.) |
4021 | 167 | # ---------------------------------------------------------------------------- | 179 | # ---------------------------------------------------------------------------- |
4022 | 168 | drop table if exists t1 ; | 180 | drop table if exists t1 ; |
4024 | 169 | --error 1064 | 181 | --error ER_PARSE_ERROR |
4025 | 182 | |||
4026 | 170 | garbage ; | 183 | garbage ; |
4027 | 171 | drop table if exists t1 ; | 184 | drop table if exists t1 ; |
4028 | 172 | eval select $mysql_errno as "after_disable_warnings" ; | 185 | eval select $mysql_errno as "after_disable_warnings" ; |
4029 | @@ -175,21 +188,26 @@ | |||
4030 | 175 | # ---------------------------------------------------------------------------- | 188 | # ---------------------------------------------------------------------------- |
4031 | 176 | # check if masked errors affect $mysql_errno | 189 | # check if masked errors affect $mysql_errno |
4032 | 177 | # ---------------------------------------------------------------------------- | 190 | # ---------------------------------------------------------------------------- |
4034 | 178 | --error 1064 | 191 | --error ER_PARSE_ERROR |
4035 | 192 | |||
4036 | 179 | garbage ; | 193 | garbage ; |
4038 | 180 | --error 1146 | 194 | --error ER_NO_SUCH_TABLE |
4039 | 195 | |||
4040 | 181 | select 3 from t1 ; | 196 | select 3 from t1 ; |
4041 | 182 | eval select $mysql_errno as "after_minus_masked" ; | 197 | eval select $mysql_errno as "after_minus_masked" ; |
4043 | 183 | --error 1064 | 198 | --error ER_PARSE_ERROR |
4044 | 199 | |||
4045 | 184 | garbage ; | 200 | garbage ; |
4047 | 185 | --error 1146 | 201 | --error ER_NO_SUCH_TABLE |
4048 | 202 | |||
4049 | 186 | select 3 from t1 ; | 203 | select 3 from t1 ; |
4050 | 187 | eval select $mysql_errno as "after_!_masked" ; | 204 | eval select $mysql_errno as "after_!_masked" ; |
4051 | 188 | 205 | ||
4052 | 189 | # ---------------------------------------------------------------------------- | 206 | # ---------------------------------------------------------------------------- |
4053 | 190 | # Will manipulations of $mysql_errno be possible and visible ? | 207 | # Will manipulations of $mysql_errno be possible and visible ? |
4054 | 191 | # ---------------------------------------------------------------------------- | 208 | # ---------------------------------------------------------------------------- |
4056 | 192 | --error 1064 | 209 | --error ER_PARSE_ERROR |
4057 | 210 | |||
4058 | 193 | garbage ; | 211 | garbage ; |
4059 | 194 | let $mysql_errno= -1; | 212 | let $mysql_errno= -1; |
4060 | 195 | eval select $mysql_errno as "after_let_errno_equal_value" ; | 213 | eval select $mysql_errno as "after_let_errno_equal_value" ; |
4061 | @@ -198,50 +216,61 @@ | |||
4062 | 198 | # How affect actions on prepared statements $mysql_errno ? | 216 | # How affect actions on prepared statements $mysql_errno ? |
4063 | 199 | # ---------------------------------------------------------------------------- | 217 | # ---------------------------------------------------------------------------- |
4064 | 200 | # failing prepare | 218 | # failing prepare |
4066 | 201 | --error 1064 | 219 | --error ER_PARSE_ERROR |
4067 | 220 | |||
4068 | 202 | garbage ; | 221 | garbage ; |
4070 | 203 | --error 1146 | 222 | --error ER_NO_SUCH_TABLE |
4071 | 223 | |||
4072 | 204 | prepare stmt from "select 3 from t1" ; | 224 | prepare stmt from "select 3 from t1" ; |
4073 | 205 | eval select $mysql_errno as "after_failing_prepare" ; | 225 | eval select $mysql_errno as "after_failing_prepare" ; |
4074 | 206 | create table t1 ( f1 char(10)); | 226 | create table t1 ( f1 char(10)); |
4075 | 207 | 227 | ||
4076 | 208 | # successful prepare | 228 | # successful prepare |
4078 | 209 | --error 1064 | 229 | --error ER_PARSE_ERROR |
4079 | 230 | |||
4080 | 210 | garbage ; | 231 | garbage ; |
4081 | 211 | prepare stmt from "select 3 from t1" ; | 232 | prepare stmt from "select 3 from t1" ; |
4082 | 212 | eval select $mysql_errno as "after_successful_prepare" ; | 233 | eval select $mysql_errno as "after_successful_prepare" ; |
4083 | 213 | 234 | ||
4084 | 214 | # successful execute | 235 | # successful execute |
4086 | 215 | --error 1064 | 236 | --error ER_PARSE_ERROR |
4087 | 237 | |||
4088 | 216 | garbage ; | 238 | garbage ; |
4089 | 217 | execute stmt; | 239 | execute stmt; |
4090 | 218 | eval select $mysql_errno as "after_successful_execute" ; | 240 | eval select $mysql_errno as "after_successful_execute" ; |
4091 | 219 | 241 | ||
4092 | 220 | # failing execute (table has been dropped) | 242 | # failing execute (table has been dropped) |
4093 | 221 | drop table t1; | 243 | drop table t1; |
4095 | 222 | --error 1064 | 244 | --error ER_PARSE_ERROR |
4096 | 245 | |||
4097 | 223 | garbage ; | 246 | garbage ; |
4099 | 224 | --error 1146 | 247 | --error ER_NO_SUCH_TABLE |
4100 | 248 | |||
4101 | 225 | execute stmt; | 249 | execute stmt; |
4102 | 226 | eval select $mysql_errno as "after_failing_execute" ; | 250 | eval select $mysql_errno as "after_failing_execute" ; |
4103 | 227 | 251 | ||
4104 | 228 | # failing execute (unknown statement) | 252 | # failing execute (unknown statement) |
4106 | 229 | --error 1064 | 253 | --error ER_PARSE_ERROR |
4107 | 254 | |||
4108 | 230 | garbage ; | 255 | garbage ; |
4110 | 231 | --error 1243 | 256 | --error ER_UNKNOWN_STMT_HANDLER |
4111 | 257 | |||
4112 | 232 | execute __stmt_; | 258 | execute __stmt_; |
4113 | 233 | eval select $mysql_errno as "after_failing_execute" ; | 259 | eval select $mysql_errno as "after_failing_execute" ; |
4114 | 234 | 260 | ||
4115 | 235 | # successful deallocate | 261 | # successful deallocate |
4117 | 236 | --error 1064 | 262 | --error ER_PARSE_ERROR |
4118 | 263 | |||
4119 | 237 | garbage ; | 264 | garbage ; |
4120 | 238 | deallocate prepare stmt; | 265 | deallocate prepare stmt; |
4121 | 239 | eval select $mysql_errno as "after_successful_deallocate" ; | 266 | eval select $mysql_errno as "after_successful_deallocate" ; |
4122 | 240 | 267 | ||
4123 | 241 | # failing deallocate ( statement handle does not exist ) | 268 | # failing deallocate ( statement handle does not exist ) |
4125 | 242 | --error 1064 | 269 | --error ER_PARSE_ERROR |
4126 | 270 | |||
4127 | 243 | garbage ; | 271 | garbage ; |
4129 | 244 | --error 1243 | 272 | --error ER_UNKNOWN_STMT_HANDLER |
4130 | 273 | |||
4131 | 245 | deallocate prepare __stmt_; | 274 | deallocate prepare __stmt_; |
4132 | 246 | eval select $mysql_errno as "after_failing_deallocate" ; | 275 | eval select $mysql_errno as "after_failing_deallocate" ; |
4133 | 247 | 276 | ||
4134 | @@ -266,7 +295,8 @@ | |||
4135 | 266 | # ---------------------------------------------------------------------------- | 295 | # ---------------------------------------------------------------------------- |
4136 | 267 | # Switch off the abort on error and check the effect on $mysql_errno | 296 | # Switch off the abort on error and check the effect on $mysql_errno |
4137 | 268 | # ---------------------------------------------------------------------------- | 297 | # ---------------------------------------------------------------------------- |
4139 | 269 | --error 1064 | 298 | --error ER_PARSE_ERROR |
4140 | 299 | |||
4141 | 270 | garbage ; | 300 | garbage ; |
4142 | 271 | --disable_abort_on_error | 301 | --disable_abort_on_error |
4143 | 272 | eval select $mysql_errno as "after_--disable_abort_on_error" ; | 302 | eval select $mysql_errno as "after_--disable_abort_on_error" ; |
4144 | @@ -280,9 +310,11 @@ | |||
4145 | 280 | # masked failing statements | 310 | # masked failing statements |
4146 | 281 | # ---------------------------------------------------------------------------- | 311 | # ---------------------------------------------------------------------------- |
4147 | 282 | # expected error = response | 312 | # expected error = response |
4149 | 283 | --error 1146 | 313 | --error ER_NO_SUCH_TABLE |
4150 | 314 | |||
4151 | 284 | select 3 from t1 ; | 315 | select 3 from t1 ; |
4153 | 285 | --error 1146 | 316 | --error ER_NO_SUCH_TABLE |
4154 | 317 | |||
4155 | 286 | select 3 from t1 ; | 318 | select 3 from t1 ; |
4156 | 287 | eval select $mysql_errno as "after_!errno_masked_error" ; | 319 | eval select $mysql_errno as "after_!errno_masked_error" ; |
4157 | 288 | # expected error <> response | 320 | # expected error <> response |
4158 | @@ -296,7 +328,8 @@ | |||
4159 | 296 | # ---------------------------------------------------------------------------- | 328 | # ---------------------------------------------------------------------------- |
4160 | 297 | # Switch the abort on error on and check the effect on $mysql_errno | 329 | # Switch the abort on error on and check the effect on $mysql_errno |
4161 | 298 | # ---------------------------------------------------------------------------- | 330 | # ---------------------------------------------------------------------------- |
4163 | 299 | --error 1064 | 331 | --error ER_PARSE_ERROR |
4164 | 332 | |||
4165 | 300 | garbage ; | 333 | garbage ; |
4166 | 301 | --enable_abort_on_error | 334 | --enable_abort_on_error |
4167 | 302 | eval select $mysql_errno as "after_--enable_abort_on_error" ; | 335 | eval select $mysql_errno as "after_--enable_abort_on_error" ; |
4168 | @@ -305,7 +338,8 @@ | |||
4169 | 305 | # masked failing statements | 338 | # masked failing statements |
4170 | 306 | # ---------------------------------------------------------------------------- | 339 | # ---------------------------------------------------------------------------- |
4171 | 307 | # expected error = response | 340 | # expected error = response |
4173 | 308 | --error 1146 | 341 | --error ER_NO_SUCH_TABLE |
4174 | 342 | |||
4175 | 309 | select 3 from t1 ; | 343 | select 3 from t1 ; |
4176 | 310 | 344 | ||
4177 | 311 | # ---------------------------------------------------------------------------- | 345 | # ---------------------------------------------------------------------------- |
4178 | @@ -454,7 +488,7 @@ | |||
4179 | 454 | 488 | ||
4180 | 455 | # Allow trailing # comment | 489 | # Allow trailing # comment |
4181 | 456 | --sleep 1 # Wait for insert delayed to be executed. | 490 | --sleep 1 # Wait for insert delayed to be executed. |
4183 | 457 | --sleep 1 # Wait for insert delayed to be executed. | 491 | --sleep 1 # Wait for insert delayed to be executed. |
4184 | 458 | 492 | ||
4185 | 459 | # ---------------------------------------------------------------------------- | 493 | # ---------------------------------------------------------------------------- |
4186 | 460 | # Test error | 494 | # Test error |
4187 | @@ -569,9 +603,6 @@ | |||
4188 | 569 | 603 | ||
4189 | 570 | # Illegal use of exec | 604 | # Illegal use of exec |
4190 | 571 | --error 1 | 605 | --error 1 |
4191 | 572 | --exec echo "--exec false" | $MYSQL_TEST 2>&1 | ||
4192 | 573 | |||
4193 | 574 | --error 1 | ||
4194 | 575 | --exec echo "--exec " | $MYSQL_TEST 2>&1 | 606 | --exec echo "--exec " | $MYSQL_TEST 2>&1 |
4195 | 576 | 607 | ||
4196 | 577 | # ---------------------------------------------------------------------------- | 608 | # ---------------------------------------------------------------------------- |
4197 | @@ -679,7 +710,7 @@ | |||
4198 | 679 | --error 1 | 710 | --error 1 |
4199 | 680 | --exec echo "let hi;" | $MYSQL_TEST 2>&1 | 711 | --exec echo "let hi;" | $MYSQL_TEST 2>&1 |
4200 | 681 | 712 | ||
4202 | 682 | # More advanced test for bug#17280 | 713 | # More advanced test for Bug#17280 |
4203 | 683 | let $success= 1; | 714 | let $success= 1; |
4204 | 684 | --echo # Execute: --echo # <whatever> success: \$success | 715 | --echo # Execute: --echo # <whatever> success: \$success |
4205 | 685 | --echo # <whatever> success: $success | 716 | --echo # <whatever> success: $success |
4206 | @@ -951,8 +982,6 @@ | |||
4207 | 951 | --exec echo "system;" | $MYSQL_TEST 2>&1 | 982 | --exec echo "system;" | $MYSQL_TEST 2>&1 |
4208 | 952 | --error 1 | 983 | --error 1 |
4209 | 953 | --exec echo "system $NONEXISTSINFVAREABLI;" | $MYSQL_TEST 2>&1 | 984 | --exec echo "system $NONEXISTSINFVAREABLI;" | $MYSQL_TEST 2>&1 |
4210 | 954 | --error 1 | ||
4211 | 955 | --exec echo "system false;" | $MYSQL_TEST 2>&1 | ||
4212 | 956 | 985 | ||
4213 | 957 | --disable_abort_on_error | 986 | --disable_abort_on_error |
4214 | 958 | system NonExistsinfComamdn 2> /dev/null; | 987 | system NonExistsinfComamdn 2> /dev/null; |
4215 | @@ -1225,7 +1254,7 @@ | |||
4216 | 1225 | --exec echo "replace_result a;" | $MYSQL_TEST 2>&1 | 1254 | --exec echo "replace_result a;" | $MYSQL_TEST 2>&1 |
4217 | 1226 | --error 1 | 1255 | --error 1 |
4218 | 1227 | --exec echo "replace_result a ;" | $MYSQL_TEST 2>&1 | 1256 | --exec echo "replace_result a ;" | $MYSQL_TEST 2>&1 |
4220 | 1228 | --exec echo "replace_result a b; echo OK;" | $MYSQL_TEST 2>&1 | 1257 | --exec echo "replace_result a b; echo OK; exit;" | $MYSQL_TEST 2>&1 |
4221 | 1229 | --error 1 | 1258 | --error 1 |
4222 | 1230 | --exec echo "--replace_result a b c" | $MYSQL_TEST 2>&1 | 1259 | --exec echo "--replace_result a b c" | $MYSQL_TEST 2>&1 |
4223 | 1231 | --error 1 | 1260 | --error 1 |
4224 | @@ -1289,7 +1318,7 @@ | |||
4225 | 1289 | dec $i; | 1318 | dec $i; |
4226 | 1290 | } | 1319 | } |
4227 | 1291 | EOF | 1320 | EOF |
4229 | 1292 | --exec echo "source $MYSQLTEST_VARDIR/tmp/mysqltest.sql; echo OK;" | $MYSQL_TEST 2>&1 | 1321 | --exec echo "source $MYSQLTEST_VARDIR/tmp/mysqltest.sql; echo OK; exit;" | $MYSQL_TEST 2>&1 |
4230 | 1293 | remove_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql; | 1322 | remove_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql; |
4231 | 1294 | 1323 | ||
4232 | 1295 | # Repeat connect/disconnect | 1324 | # Repeat connect/disconnect |
4233 | @@ -1360,17 +1389,18 @@ | |||
4234 | 1360 | 1389 | ||
4235 | 1361 | 1390 | ||
4236 | 1362 | # ---------------------------------------------------------------------------- | 1391 | # ---------------------------------------------------------------------------- |
4238 | 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 |
4239 | 1364 | # new scripts and diagnose errors | 1393 | # new scripts and diagnose errors |
4240 | 1365 | # ---------------------------------------------------------------------------- | 1394 | # ---------------------------------------------------------------------------- |
4241 | 1366 | 1395 | ||
4242 | 1367 | # ---------------------------------------------------------------------------- | 1396 | # ---------------------------------------------------------------------------- |
4244 | 1368 | # Test bug#12386 | 1397 | # Test Bug#12386 |
4245 | 1369 | # ---------------------------------------------------------------------------- | 1398 | # ---------------------------------------------------------------------------- |
4246 | 1370 | let $num= 2; | 1399 | let $num= 2; |
4247 | 1371 | while ($num) | 1400 | while ($num) |
4248 | 1372 | { | 1401 | { |
4250 | 1373 | --error 1064 | 1402 | --error ER_PARSE_ERROR |
4251 | 1403 | |||
4252 | 1374 | failing_statement; | 1404 | failing_statement; |
4253 | 1375 | 1405 | ||
4254 | 1376 | dec $num; | 1406 | dec $num; |
4255 | @@ -1380,7 +1410,7 @@ | |||
4256 | 1380 | 1410 | ||
4257 | 1381 | 1411 | ||
4258 | 1382 | # | 1412 | # |
4260 | 1383 | # Bug #10251: Identifiers containing quotes not handled correctly | 1413 | # Bug#10251 Identifiers containing quotes not handled correctly |
4261 | 1384 | # | 1414 | # |
4262 | 1385 | select 1 as `a'b`, 2 as `a"b`; | 1415 | select 1 as `a'b`, 2 as `a"b`; |
4263 | 1386 | 1416 | ||
4264 | @@ -1401,7 +1431,7 @@ | |||
4265 | 1401 | 1431 | ||
4266 | 1402 | # The message contains more then 80 characters on multiple lines | 1432 | # The message contains more then 80 characters on multiple lines |
4267 | 1403 | # and is kept between double quotes. | 1433 | # and is kept between double quotes. |
4269 | 1404 | let $message= | 1434 | let $message= |
4270 | 1405 | "Here comes a very very long message that | 1435 | "Here comes a very very long message that |
4271 | 1406 | - is longer then 80 characters and | 1436 | - is longer then 80 characters and |
4272 | 1407 | - consists of several lines"; | 1437 | - consists of several lines"; |
4273 | @@ -1429,14 +1459,16 @@ | |||
4274 | 1429 | # | 1459 | # |
4275 | 1430 | # Test zero length result file. Should not pass | 1460 | # Test zero length result file. Should not pass |
4276 | 1431 | # | 1461 | # |
4278 | 1432 | --exec touch $MYSQLTEST_VARDIR/tmp/zero_length_file.result | 1462 | --exec echo '' > $MYSQLTEST_VARDIR/tmp/zero_length_file.result |
4279 | 1433 | --exec echo "echo ok;" > $MYSQLTEST_VARDIR/tmp/query.sql | 1463 | --exec echo "echo ok;" > $MYSQLTEST_VARDIR/tmp/query.sql |
4280 | 1434 | --error 1 | 1464 | --error 1 |
4281 | 1435 | --exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/zero_length_file.result > /dev/null 2>&1 | 1465 | --exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/zero_length_file.result > /dev/null 2>&1 |
4282 | 1436 | 1466 | ||
4283 | 1437 | remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.result; | 1467 | remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.result; |
4284 | 1438 | --error 0,1 | 1468 | --error 0,1 |
4286 | 1439 | remove_file $MYSQLTEST_VARDIR/log/zero_length_file.reject; | 1469 | remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.reject; |
4287 | 1470 | --error 0,1 | ||
4288 | 1471 | remove_file $MYSQLTEST_VARDIR/tmp/zero_length_file.log; | ||
4289 | 1440 | --error 0,1 | 1472 | --error 0,1 |
4290 | 1441 | remove_file $MYSQL_TEST_DIR/r/zero_length_file.reject; | 1473 | remove_file $MYSQL_TEST_DIR/r/zero_length_file.reject; |
4291 | 1442 | 1474 | ||
4292 | @@ -1460,8 +1492,8 @@ | |||
4293 | 1460 | #--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/result_file.result 2>&1 | 1492 | #--exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/query.sql -R $MYSQLTEST_VARDIR/tmp/result_file.result 2>&1 |
4294 | 1461 | 1493 | ||
4295 | 1462 | # | 1494 | # |
4298 | 1463 | # Bug #11731 mysqltest in multi-statement queries ignores errors in | 1495 | # Bug#11731 mysqltest in multi-statement queries ignores errors in |
4299 | 1464 | # non-1st queries | 1496 | # non-1st queries |
4300 | 1465 | # | 1497 | # |
4301 | 1466 | 1498 | ||
4302 | 1467 | echo Failing multi statement query; | 1499 | echo Failing multi statement query; |
4303 | @@ -1482,7 +1514,8 @@ | |||
4304 | 1482 | --error 1 | 1514 | --error 1 |
4305 | 1483 | --exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&1 | 1515 | --exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&1 |
4306 | 1484 | # The .out file should be non existent | 1516 | # The .out file should be non existent |
4308 | 1485 | --exec test ! -s $MYSQLTEST_VARDIR/tmp/bug11731.out | 1517 | --error 1 |
4309 | 1518 | --file_exists $MYSQLTEST_VARDIR/tmp/bug11731.out | ||
4310 | 1486 | drop table t1; | 1519 | drop table t1; |
4311 | 1487 | 1520 | ||
4312 | 1488 | 1521 | ||
4313 | @@ -1496,6 +1529,7 @@ | |||
4314 | 1496 | --exec echo "select 'select-me';" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql | 1529 | --exec echo "select 'select-me';" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql |
4315 | 1497 | --exec echo "insertz "error query"||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql | 1530 | --exec echo "insertz "error query"||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql |
4316 | 1498 | --exec echo "delimiter ;||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql | 1531 | --exec echo "delimiter ;||||" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql |
4317 | 1532 | --exec echo "exit;" >> $MYSQLTEST_VARDIR/tmp/bug11731.sql | ||
4318 | 1499 | 1533 | ||
4319 | 1500 | # These two should work since the error is expected | 1534 | # These two should work since the error is expected |
4320 | 1501 | --exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/bug11731.sql 2>&1 | 1535 | --exec $MYSQL_TEST -x $MYSQLTEST_VARDIR/tmp/bug11731.sql 2>&1 |
4321 | @@ -1503,26 +1537,29 @@ | |||
4322 | 1503 | 1537 | ||
4323 | 1504 | --exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&1 | 1538 | --exec $MYSQL_TEST --record -x $MYSQLTEST_VARDIR/tmp/bug11731.sql -R $MYSQLTEST_VARDIR/tmp/bug11731.out 2>&1 |
4324 | 1505 | # The .out file should exist | 1539 | # The .out file should exist |
4326 | 1506 | --exec test -s $MYSQLTEST_VARDIR/tmp/bug11731.out | 1540 | --file_exists $MYSQLTEST_VARDIR/tmp/bug11731.out |
4327 | 1507 | drop table t1; | 1541 | drop table t1; |
4328 | 1508 | remove_file $MYSQLTEST_VARDIR/tmp/bug11731.out; | 1542 | remove_file $MYSQLTEST_VARDIR/tmp/bug11731.out; |
4329 | 1509 | remove_file $MYSQLTEST_VARDIR/log/bug11731.log; | 1543 | remove_file $MYSQLTEST_VARDIR/log/bug11731.log; |
4330 | 1510 | remove_file $MYSQLTEST_VARDIR/tmp/bug11731.sql; | 1544 | remove_file $MYSQLTEST_VARDIR/tmp/bug11731.sql; |
4331 | 1511 | 1545 | ||
4332 | 1512 | # | 1546 | # |
4334 | 1513 | # Bug#19890 mysqltest: "query" command is broken | 1547 | # Bug#19890 mysqltest "query" command is broken |
4335 | 1514 | # | 1548 | # |
4336 | 1515 | 1549 | ||
4337 | 1516 | # It should be possible to use the command "query" to force mysqltest to | 1550 | # It should be possible to use the command "query" to force mysqltest to |
4338 | 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. |
4340 | 1518 | --error 1064 | 1552 | --error ER_PARSE_ERROR |
4341 | 1553 | |||
4342 | 1519 | query sleep; | 1554 | query sleep; |
4343 | 1520 | 1555 | ||
4345 | 1521 | --error 1064 | 1556 | --error ER_PARSE_ERROR |
4346 | 1557 | |||
4347 | 1522 | --query sleep | 1558 | --query sleep |
4348 | 1523 | 1559 | ||
4349 | 1524 | # Just an empty query command | 1560 | # Just an empty query command |
4351 | 1525 | --error 1065 | 1561 | --error ER_EMPTY_QUERY |
4352 | 1562 | |||
4353 | 1526 | query ; | 1563 | query ; |
4354 | 1527 | 1564 | ||
4355 | 1528 | # test for replace_regex | 1565 | # test for replace_regex |
4356 | @@ -1533,7 +1570,7 @@ | |||
4357 | 1533 | select "at" as col1, "AT" as col2, "c" as col3; | 1570 | select "at" as col1, "AT" as col2, "c" as col3; |
4358 | 1534 | 1571 | ||
4359 | 1535 | --replace_regex /a/b/ /ct/d/ | 1572 | --replace_regex /a/b/ /ct/d/ |
4361 | 1536 | select "a" as col1, "ct" as col2; | 1573 | select "a" as col1, "ct" as col2; |
4362 | 1537 | 1574 | ||
4363 | 1538 | --replace_regex /(strawberry)/raspberry and \1/ /blueberry/blackberry/ /potato/tomato/; | 1575 | --replace_regex /(strawberry)/raspberry and \1/ /blueberry/blackberry/ /potato/tomato/; |
4364 | 1539 | select "strawberry","blueberry","potato"; | 1576 | select "strawberry","blueberry","potato"; |
4365 | @@ -1551,7 +1588,7 @@ | |||
4366 | 1551 | --error 1 | 1588 | --error 1 |
4367 | 1552 | --exec echo "--replace_regex /a b c" | $MYSQL_TEST 2>&1 | 1589 | --exec echo "--replace_regex /a b c" | $MYSQL_TEST 2>&1 |
4368 | 1553 | --error 1 | 1590 | --error 1 |
4370 | 1554 | --exec echo "replace_regex /a /b c ;" | $MYSQL_TEST 2>&1 | 1591 | --exec echo "replace_regex /a /b c ;" | $MYSQL_TEST 2>&1 |
4371 | 1555 | 1592 | ||
4372 | 1556 | # REQUIREMENT | 1593 | # REQUIREMENT |
4373 | 1557 | # replace_regex should replace substitutions from left to right in output | 1594 | # replace_regex should replace substitutions from left to right in output |
4374 | @@ -1688,6 +1725,7 @@ | |||
4375 | 1688 | --diff_files $MYSQLTEST_VARDIR/tmp/diff1.tmp $MYSQLTEST_VARDIR/tmp/diff4.tmp | 1725 | --diff_files $MYSQLTEST_VARDIR/tmp/diff1.tmp $MYSQLTEST_VARDIR/tmp/diff4.tmp |
4376 | 1689 | --error 1 | 1726 | --error 1 |
4377 | 1690 | --diff_files $MYSQLTEST_VARDIR/tmp/diff4.tmp $MYSQLTEST_VARDIR/tmp/diff1.tmp | 1727 | --diff_files $MYSQLTEST_VARDIR/tmp/diff4.tmp $MYSQLTEST_VARDIR/tmp/diff1.tmp |
4378 | 1728 | exit; | ||
4379 | 1691 | EOF | 1729 | EOF |
4380 | 1692 | 1730 | ||
4381 | 1693 | # Execute the above diffs, and send their output to /dev/null - only | 1731 | # Execute the above diffs, and send their output to /dev/null - only |
4382 | @@ -1915,12 +1953,13 @@ | |||
4383 | 1915 | # 8. Ensure that "sorted_result " does not change the semantics of | 1953 | # 8. Ensure that "sorted_result " does not change the semantics of |
4384 | 1916 | # "--error ...." or the protocol output after such an expected failure | 1954 | # "--error ...." or the protocol output after such an expected failure |
4385 | 1917 | --sorted_result | 1955 | --sorted_result |
4387 | 1918 | --error 1146 | 1956 | --error ER_NO_SUCH_TABLE |
4388 | 1957 | |||
4389 | 1919 | SELECT '2' as "my_col1",2 as "my_col2" | 1958 | SELECT '2' as "my_col1",2 as "my_col2" |
4390 | 1920 | UNION | 1959 | UNION |
4391 | 1921 | SELECT '1',1 from t2; | 1960 | SELECT '1',1 from t2; |
4392 | 1922 | 1961 | ||
4394 | 1923 | # 9. Ensure that several result formatting options including "sorted_result" | 1962 | # 9. Ensure that several result formatting options including "sorted_result" |
4395 | 1924 | # - have all an effect | 1963 | # - have all an effect |
4396 | 1925 | # - "--sorted_result" does not need to be direct before the statement | 1964 | # - "--sorted_result" does not need to be direct before the statement |
4397 | 1926 | # - Row sorting is applied after modification of the column content | 1965 | # - Row sorting is applied after modification of the column content |
4398 | @@ -2101,5 +2140,121 @@ | |||
4399 | 2101 | --change_user root,, | 2140 | --change_user root,, |
4400 | 2102 | --change_user root,,test | 2141 | --change_user root,,test |
4401 | 2103 | 2142 | ||
4402 | 2143 | # ---------------------------------------------------------------------------- | ||
4403 | 2144 | # Test mkdir and rmdir command | ||
4404 | 2145 | # ---------------------------------------------------------------------------- | ||
4405 | 2146 | |||
4406 | 2147 | mkdir $MYSQLTEST_VARDIR/tmp/testdir; | ||
4407 | 2148 | rmdir $MYSQLTEST_VARDIR/tmp/testdir; | ||
4408 | 2149 | |||
4409 | 2150 | # Directory already exist | ||
4410 | 2151 | mkdir $MYSQLTEST_VARDIR/tmp/testdir; | ||
4411 | 2152 | --error 1 | ||
4412 | 2153 | mkdir $MYSQLTEST_VARDIR/tmp/testdir; | ||
4413 | 2154 | |||
4414 | 2155 | # Remove dir with file inside | ||
4415 | 2156 | write_file $MYSQLTEST_VARDIR/tmp/testdir/file1.txt; | ||
4416 | 2157 | hello | ||
4417 | 2158 | EOF | ||
4418 | 2159 | |||
4419 | 2160 | list_files $MYSQLTEST_VARDIR/tmp/testdir; | ||
4420 | 2161 | # list_files gets the directory list before creating the new file | ||
4421 | 2162 | list_files_write_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir *; | ||
4422 | 2163 | list_files_append_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir *2*; | ||
4423 | 2164 | list_files_write_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir file?.txt; | ||
4424 | 2165 | list_files_append_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt $MYSQLTEST_VARDIR/tmp/testdir file*.txt; | ||
4425 | 2166 | diff_files $MYSQLTEST_VARDIR/tmp/testdir/file2.txt $MYSQLTEST_VARDIR/tmp/testdir/file3.txt; | ||
4426 | 2167 | --error 1 | ||
4427 | 2168 | rmdir $MYSQLTEST_VARDIR/tmp/testdir; | ||
4428 | 2169 | |||
4429 | 2170 | cat_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt; | ||
4430 | 2171 | |||
4431 | 2172 | remove_file $MYSQLTEST_VARDIR/tmp/testdir/file1.txt; | ||
4432 | 2173 | remove_file $MYSQLTEST_VARDIR/tmp/testdir/file2.txt; | ||
4433 | 2174 | remove_file $MYSQLTEST_VARDIR/tmp/testdir/file3.txt; | ||
4434 | 2175 | rmdir $MYSQLTEST_VARDIR/tmp/testdir; | ||
4435 | 2176 | |||
4436 | 2177 | # | ||
4437 | 2178 | # Bug#36041 mysql-test-run doesn't seem to string match 100% effectively | ||
4438 | 2179 | # on Windows | ||
4439 | 2180 | # | ||
4440 | 2181 | |||
4441 | 2182 | --replace_result c:\\a.txt z | ||
4442 | 2183 | SELECT 'c:\\a.txt' AS col; | ||
4443 | 2184 | |||
4444 | 2185 | # | ||
4445 | 2186 | # Bug#32307 mysqltest - does not detect illegal if syntax | ||
4446 | 2187 | # | ||
4447 | 2188 | |||
4448 | 2189 | let $test= 1; | ||
4449 | 2190 | if ($test){ | ||
4450 | 2191 | echo hej; | ||
4451 | 2192 | } | ||
4452 | 2193 | |||
4453 | 2194 | --write_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql | ||
4454 | 2195 | if ($mysql_errno != 1436) | ||
4455 | 2196 | { | ||
4456 | 2197 | echo ^ Should not be allowed! | ||
4457 | 2198 | } | ||
4458 | 2199 | EOF | ||
4459 | 2200 | --error 1 | ||
4460 | 2201 | --exec $MYSQL_TEST < $MYSQLTEST_VARDIR/tmp/mysqltest.sql 2>&1 | ||
4461 | 2202 | remove_file $MYSQLTEST_VARDIR/tmp/mysqltest.sql; | ||
4462 | 2203 | |||
4463 | 2204 | |||
4464 | 2205 | # ---------------------------------------------------------------------------- | ||
4465 | 2206 | # Test that -- is not allowed as comment, only as mysqltest builtin command | ||
4466 | 2207 | # ---------------------------------------------------------------------------- | ||
4467 | 2208 | |||
4468 | 2209 | # valid | ||
4469 | 2210 | select 1; | ||
4470 | 2211 | --query select 1 | ||
4471 | 2212 | --query -- a comment for the server | ||
4472 | 2213 | |||
4473 | 2214 | # Not valid, "select" is not a mysqltest command | ||
4474 | 2215 | --error 1 | ||
4475 | 2216 | --exec echo "--select 1;" | $MYSQL_TEST 2>&1 | ||
4476 | 2217 | |||
4477 | 2218 | |||
4478 | 2219 | # ---------------------------------------------------------------------------- | ||
4479 | 2220 | # BUG#35701 please allow test language variables in connection and sync_slave_with_master | ||
4480 | 2221 | # Test that "connection $variable" works and that $CURRENT_CONNECTION has the right value. | ||
4481 | 2222 | # ---------------------------------------------------------------------------- | ||
4482 | 2223 | |||
4483 | 2224 | connect (con1,localhost,root,,); | ||
4484 | 2225 | --echo $CURRENT_CONNECTION | ||
4485 | 2226 | connect (con2,localhost,root,,); | ||
4486 | 2227 | --echo $CURRENT_CONNECTION | ||
4487 | 2228 | |||
4488 | 2229 | connection default; | ||
4489 | 2230 | --echo $CURRENT_CONNECTION | ||
4490 | 2231 | |||
4491 | 2232 | connection con1; | ||
4492 | 2233 | --echo $CURRENT_CONNECTION | ||
4493 | 2234 | |||
4494 | 2235 | connection con2; | ||
4495 | 2236 | --echo $CURRENT_CONNECTION | ||
4496 | 2237 | |||
4497 | 2238 | let $x= con1; | ||
4498 | 2239 | let $y= con2; | ||
4499 | 2240 | |||
4500 | 2241 | connection $x; | ||
4501 | 2242 | --echo $CURRENT_CONNECTION | ||
4502 | 2243 | |||
4503 | 2244 | connection $y; | ||
4504 | 2245 | --echo $CURRENT_CONNECTION | ||
4505 | 2246 | |||
4506 | 2247 | # Disconnect the not selected connection | ||
4507 | 2248 | disconnect $x; | ||
4508 | 2249 | --echo $CURRENT_CONNECTION | ||
4509 | 2250 | |||
4510 | 2251 | # Disconnect the selected connection | ||
4511 | 2252 | disconnect $y; | ||
4512 | 2253 | --echo $CURRENT_CONNECTION | ||
4513 | 2254 | |||
4514 | 2255 | |||
4515 | 2104 | --echo End of tests | 2256 | --echo End of tests |
4516 | 2105 | 2257 | ||
4517 | 2258 | connection default; | ||
4518 | 2259 | # Wait till we reached the initial number of concurrent sessions | ||
4519 | 2260 | --source include/wait_until_count_sessions.inc | ||
4520 | 2106 | 2261 | ||
4521 | === modified file 'test/mysql-test/t/null.test' | |||
4522 | --- test/mysql-test/t/null.test 2009-04-02 20:28:52 +0000 | |||
4523 | +++ test/mysql-test/t/null.test 2009-06-02 18:58:34 +0000 | |||
4524 | @@ -61,9 +61,7 @@ | |||
4525 | 61 | # | 61 | # |
4526 | 62 | CREATE 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); | 62 | CREATE 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); |
4527 | 63 | INSERT INTO t1 SET a = "", d= "2003-01-14 03:54:55"; | 63 | INSERT INTO t1 SET a = "", d= "2003-01-14 03:54:55"; |
4528 | 64 | --error 1048 | ||
4529 | 65 | UPDATE t1 SET d=1/NULL; | 64 | UPDATE t1 SET d=1/NULL; |
4530 | 66 | --error 1048 | ||
4531 | 67 | UPDATE t1 SET d=NULL; | 65 | UPDATE t1 SET d=NULL; |
4532 | 68 | --error 1048 | 66 | --error 1048 |
4533 | 69 | INSERT INTO t1 (a) values (null); | 67 | INSERT INTO t1 (a) values (null); |
4534 | 70 | 68 | ||
4535 | === modified file 'test/mysql-test/t/packet.test' | |||
4536 | --- test/mysql-test/t/packet.test 2006-10-23 09:14:04 +0000 | |||
4537 | +++ test/mysql-test/t/packet.test 2009-06-02 19:02:51 +0000 | |||
4538 | @@ -4,35 +4,53 @@ | |||
4539 | 4 | # swallowing them and returning an error | 4 | # swallowing them and returning an error |
4540 | 5 | --source include/not_windows.inc | 5 | --source include/not_windows.inc |
4541 | 6 | 6 | ||
4542 | 7 | # Save the initial number of concurrent sessions | ||
4543 | 8 | --source include/count_sessions.inc | ||
4544 | 9 | |||
4545 | 10 | |||
4546 | 7 | # | 11 | # |
4547 | 8 | # Check protocol handling | 12 | # Check protocol handling |
4548 | 9 | # | 13 | # |
4549 | 10 | 14 | ||
4553 | 11 | connect (con1,localhost,root,,); | 15 | set @max_allowed_packet=@@global.max_allowed_packet; |
4554 | 12 | 16 | set @net_buffer_length=@@global.net_buffer_length; | |
4555 | 13 | connection con1; | 17 | |
4556 | 18 | |||
4557 | 19 | # setting values below minimum threshold of 1024 will cause truncating | ||
4558 | 14 | set global max_allowed_packet=100; | 20 | set global max_allowed_packet=100; |
4559 | 15 | set max_allowed_packet=100; | ||
4560 | 16 | set global net_buffer_length=100; | 21 | set global net_buffer_length=100; |
4563 | 17 | set net_buffer_length=100; | 22 | |
4564 | 18 | # Have to be > 1024 as min value of net_buffer_length is 1024 | 23 | # is not yet in effect |
4565 | 19 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; | 24 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; |
4566 | 20 | # Should return NULL as 2000 is bigger than max_allowed_packet | ||
4567 | 21 | select repeat('a',2000); | 25 | select repeat('a',2000); |
4568 | 22 | 26 | ||
4569 | 23 | # | 27 | # |
4571 | 24 | # Connection 2 should get error for too big packets | 28 | # Connection 1 should get error for too big packets |
4572 | 25 | # | 29 | # |
4575 | 26 | connect (con2,localhost,root,,); | 30 | connect (con1,localhost,root,,); |
4576 | 27 | connection con2; | 31 | connection con1; |
4577 | 28 | select @@net_buffer_length, @@max_allowed_packet; | 32 | select @@net_buffer_length, @@max_allowed_packet; |
4579 | 29 | --error 1153 | 33 | --error ER_NET_PACKET_TOO_LARGE |
4580 | 30 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; | 34 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; |
4581 | 35 | connection default; | ||
4582 | 36 | disconnect con1; | ||
4583 | 37 | |||
4584 | 38 | # | ||
4585 | 39 | # Reset to default values and reconnect | ||
4586 | 40 | # | ||
4587 | 31 | set global max_allowed_packet=default; | 41 | set global max_allowed_packet=default; |
4588 | 32 | set max_allowed_packet=default; | ||
4589 | 33 | set global net_buffer_length=default; | 42 | set global net_buffer_length=default; |
4591 | 34 | set net_buffer_length=default; | 43 | connect (con2,localhost,root,,); |
4592 | 44 | connection con2; | ||
4593 | 35 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; | 45 | SELECT length("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") as len; |
4594 | 36 | select length(repeat('a',2000)); | 46 | select length(repeat('a',2000)); |
4595 | 47 | connection default; | ||
4596 | 48 | disconnect con2; | ||
4597 | 49 | |||
4598 | 50 | set global max_allowed_packet=@max_allowed_packet; | ||
4599 | 51 | set global net_buffer_length=@net_buffer_length; | ||
4600 | 37 | 52 | ||
4601 | 38 | # End of 4.1 tests | 53 | # End of 4.1 tests |
4602 | 54 | |||
4603 | 55 | # Wait till we reached the initial number of concurrent sessions | ||
4604 | 56 | --source include/wait_until_count_sessions.inc | ||
4605 | 39 | 57 | ||
4606 | === modified file 'test/mysql-test/t/ps.test' | |||
4607 | --- test/mysql-test/t/ps.test 2008-12-11 01:07:22 +0000 | |||
4608 | +++ test/mysql-test/t/ps.test 2009-06-02 20:19:18 +0000 | |||
4609 | @@ -1658,7 +1658,7 @@ | |||
4610 | 1658 | let $iterations= 100; | 1658 | let $iterations= 100; |
4611 | 1659 | --disable_query_log | 1659 | --disable_query_log |
4612 | 1660 | --disable_result_log | 1660 | --disable_result_log |
4614 | 1661 | while ($iterations > 0) | 1661 | while ($iterations) |
4615 | 1662 | { | 1662 | { |
4616 | 1663 | --error ER_PARSE_ERROR | 1663 | --error ER_PARSE_ERROR |
4617 | 1664 | PREPARE stmt FROM "CREATE PROCEDURE p1()"; | 1664 | PREPARE stmt FROM "CREATE PROCEDURE p1()"; |
4618 | 1665 | 1665 | ||
4619 | === modified file 'test/mysql-test/t/row.test' | |||
4620 | --- test/mysql-test/t/row.test 2006-10-31 13:15:57 +0000 | |||
4621 | +++ test/mysql-test/t/row.test 2009-06-02 20:28:33 +0000 | |||
4622 | @@ -7,10 +7,8 @@ | |||
4623 | 7 | select row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3)); | 7 | select row(10,2,3) IN (row(3,2,3), row(1,2,3), row(1,3,3)); |
4624 | 8 | select row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3)); | 8 | select row(1,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3)); |
4625 | 9 | select row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3)); | 9 | select row(10,2,3) IN (row(3,NULL,3), row(1,2,3), row(1,3,3)); |
4626 | 10 | --disable_ps_warnings | ||
4627 | 11 | select row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a')); | 10 | select row('a',1.5,3) IN (row(1,2,3), row('a',1.5,3), row('a','a','a')); |
4628 | 12 | select row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3)); | 11 | select row('a',0,3) IN (row(3,2,3), row('a','a','3'), row(1,3,3)); |
4629 | 13 | --enable_ps_warnings | ||
4630 | 14 | select row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3)); | 12 | select row('a',0,3) IN (row(3,2,3), row('a','0','3'), row(1,3,3)); |
4631 | 15 | select row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3)); | 13 | select row('a',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3)); |
4632 | 16 | select row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3)); | 14 | select row('b',1.5,3) IN (row(3,NULL,3), row('a',1.5,3), row(1,3,3)); |
4633 | 17 | 15 | ||
4634 | === modified file 'test/mysql-test/t/schema.test' | |||
4635 | --- test/mysql-test/t/schema.test 2006-10-23 09:14:04 +0000 | |||
4636 | +++ test/mysql-test/t/schema.test 2009-06-02 22:12:20 +0000 | |||
4637 | @@ -10,5 +10,7 @@ | |||
4638 | 10 | 10 | ||
4639 | 11 | create schema foo; | 11 | create schema foo; |
4640 | 12 | show create schema foo; | 12 | show create schema foo; |
4641 | 13 | # force PBXT schema to be created | ||
4642 | 14 | create table t1 (id int) engine=pbxt; | ||
4643 | 13 | show schemas; | 15 | show schemas; |
4644 | 14 | drop schema foo; | 16 | drop schema foo; |
4645 | 15 | 17 | ||
4646 | === modified file 'test/mysql-test/t/union.test' | |||
4647 | --- test/mysql-test/t/union.test 2009-04-02 20:28:52 +0000 | |||
4648 | +++ test/mysql-test/t/union.test 2009-06-02 20:52:31 +0000 | |||
4649 | @@ -802,8 +802,10 @@ | |||
4650 | 802 | # exceeds mediumtext maximum length | 802 | # exceeds mediumtext maximum length |
4651 | 803 | # | 803 | # |
4652 | 804 | 804 | ||
4655 | 805 | SELECT @tmp_max:= @@max_allowed_packet; | 805 | SELECT @tmp_max:= @@global.max_allowed_packet; |
4656 | 806 | SET max_allowed_packet=25000000; | 806 | SET @@global.max_allowed_packet=25000000; |
4657 | 807 | # switching connection to allow the new max_allowed_packet take effect | ||
4658 | 808 | --connect (newconn, localhost, root,,) | ||
4659 | 807 | CREATE TABLE t1 (a mediumtext); | 809 | CREATE TABLE t1 (a mediumtext); |
4660 | 808 | CREATE TABLE t2 (b varchar(20)); | 810 | CREATE TABLE t2 (b varchar(20)); |
4661 | 809 | INSERT INTO t1 VALUES ('a'); | 811 | INSERT INTO t1 VALUES ('a'); |
4662 | @@ -825,7 +827,9 @@ | |||
4663 | 825 | CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2; | 827 | CREATE TABLE t3 SELECT REPEAT(a,2) AS a FROM t1 UNION SELECT b FROM t2; |
4664 | 826 | SHOW CREATE TABLE t3; | 828 | SHOW CREATE TABLE t3; |
4665 | 827 | DROP TABLES t1,t2,t3; | 829 | DROP TABLES t1,t2,t3; |
4667 | 828 | SET max_allowed_packet:= @tmp_max; | 830 | --connection default |
4668 | 831 | SET @@global.max_allowed_packet:= @tmp_max; | ||
4669 | 832 | --disconnect newconn | ||
4670 | 829 | 833 | ||
4671 | 830 | # | 834 | # |
4672 | 831 | # Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM | 835 | # Bug #10032 Bug in parsing UNION with ORDER BY when one node does not use FROM |
4673 | 832 | 836 | ||
4674 | === modified file 'test/mysql-test/t/variables.test' | |||
4675 | --- test/mysql-test/t/variables.test 2008-11-13 18:01:16 +0000 | |||
4676 | +++ test/mysql-test/t/variables.test 2009-06-02 21:30:51 +0000 | |||
4677 | @@ -6,7 +6,7 @@ | |||
4678 | 6 | --enable_warnings | 6 | --enable_warnings |
4679 | 7 | 7 | ||
4680 | 8 | # | 8 | # |
4682 | 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) |
4683 | 10 | # | 10 | # |
4684 | 11 | set @my_binlog_cache_size =@@global.binlog_cache_size; | 11 | set @my_binlog_cache_size =@@global.binlog_cache_size; |
4685 | 12 | set @my_connect_timeout =@@global.connect_timeout; | 12 | set @my_connect_timeout =@@global.connect_timeout; |
4686 | @@ -18,13 +18,13 @@ | |||
4687 | 18 | set @my_max_binlog_cache_size =@@global.max_binlog_cache_size; | 18 | set @my_max_binlog_cache_size =@@global.max_binlog_cache_size; |
4688 | 19 | set @my_max_binlog_size =@@global.max_binlog_size; | 19 | set @my_max_binlog_size =@@global.max_binlog_size; |
4689 | 20 | set @my_max_connect_errors =@@global.max_connect_errors; | 20 | set @my_max_connect_errors =@@global.max_connect_errors; |
4690 | 21 | set @my_max_connections =@@global.max_connections; | ||
4691 | 21 | set @my_max_delayed_threads =@@global.max_delayed_threads; | 22 | set @my_max_delayed_threads =@@global.max_delayed_threads; |
4692 | 22 | set @my_max_heap_table_size =@@global.max_heap_table_size; | 23 | set @my_max_heap_table_size =@@global.max_heap_table_size; |
4693 | 23 | set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads; | 24 | set @my_max_insert_delayed_threads=@@global.max_insert_delayed_threads; |
4694 | 24 | set @my_max_join_size =@@global.max_join_size; | 25 | set @my_max_join_size =@@global.max_join_size; |
4695 | 25 | set @my_max_user_connections =@@global.max_user_connections; | ||
4696 | 26 | set @my_max_write_lock_count =@@global.max_write_lock_count; | ||
4697 | 27 | set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size; | 26 | set @my_myisam_data_pointer_size =@@global.myisam_data_pointer_size; |
4698 | 27 | set @my_myisam_max_sort_file_size =@@global.myisam_max_sort_file_size; | ||
4699 | 28 | set @my_net_buffer_length =@@global.net_buffer_length; | 28 | set @my_net_buffer_length =@@global.net_buffer_length; |
4700 | 29 | set @my_net_write_timeout =@@global.net_write_timeout; | 29 | set @my_net_write_timeout =@@global.net_write_timeout; |
4701 | 30 | set @my_net_read_timeout =@@global.net_read_timeout; | 30 | set @my_net_read_timeout =@@global.net_read_timeout; |
4702 | @@ -35,7 +35,8 @@ | |||
4703 | 35 | set @my_slow_launch_time =@@global.slow_launch_time; | 35 | set @my_slow_launch_time =@@global.slow_launch_time; |
4704 | 36 | set @my_storage_engine =@@global.storage_engine; | 36 | set @my_storage_engine =@@global.storage_engine; |
4705 | 37 | set @my_thread_cache_size =@@global.thread_cache_size; | 37 | set @my_thread_cache_size =@@global.thread_cache_size; |
4707 | 38 | 38 | set @my_max_allowed_packet =@@global.max_allowed_packet; | |
4708 | 39 | set @my_join_buffer_size =@@global.join_buffer_size; | ||
4709 | 39 | # case insensitivity tests (new in 5.0) | 40 | # case insensitivity tests (new in 5.0) |
4710 | 40 | set @`test`=1; | 41 | set @`test`=1; |
4711 | 41 | select @test, @`test`, @TEST, @`TEST`, @"teSt"; | 42 | select @test, @`test`, @TEST, @`TEST`, @"teSt"; |
4712 | @@ -142,29 +143,28 @@ | |||
4713 | 142 | show global variables like 'myisam_max_sort_file_size'; | 143 | show global variables like 'myisam_max_sort_file_size'; |
4714 | 143 | select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size'; | 144 | select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size'; |
4715 | 144 | set GLOBAL myisam_max_sort_file_size=default; | 145 | set GLOBAL myisam_max_sort_file_size=default; |
4720 | 145 | --replace_result 2147483647 FILE_SIZE 9223372036854775807 FILE_SIZE | 146 | --replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE |
4721 | 146 | show variables like 'myisam_max_sort_file_size'; | 147 | show global variables like 'myisam_max_sort_file_size'; |
4722 | 147 | --replace_result 2147483647 FILE_SIZE 9223372036854775807 FILE_SIZE | 148 | --replace_result 9223372036853727232 FILE_SIZE 2146435072 FILE_SIZE |
4723 | 148 | select * from information_schema.session_variables where variable_name like 'myisam_max_sort_file_size'; | 149 | select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size'; |
4724 | 149 | 150 | ||
4725 | 151 | # bug#22891: modified to take read-only SESSION net_buffer_length into account | ||
4726 | 150 | set global net_retry_count=10, session net_retry_count=10; | 152 | set global net_retry_count=10, session net_retry_count=10; |
4727 | 151 | set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300; | 153 | set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300; |
4744 | 152 | set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600; | 154 | show global variables like 'net_%'; |
4745 | 153 | show global variables like 'net_%'; | 155 | select * from information_schema.global_variables where variable_name like 'net_%' order by 1; |
4746 | 154 | select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name; | 156 | show session variables like 'net_%'; |
4747 | 155 | show session variables like 'net_%'; | 157 | select * from information_schema.session_variables where variable_name like 'net_%' order by 1; |
4748 | 156 | select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name; | 158 | set global net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000; |
4749 | 157 | set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000; | 159 | show global variables like 'net_%'; |
4750 | 158 | show global variables like 'net_%'; | 160 | select * from information_schema.global_variables where variable_name like 'net_%' order by 1; |
4751 | 159 | select * from information_schema.global_variables where variable_name like 'net_%' order by variable_name; | 161 | set global net_buffer_length=1; |
4752 | 160 | show session variables like 'net_%'; | 162 | show global variables like 'net_buffer_length'; |
4753 | 161 | select * from information_schema.session_variables where variable_name like 'net_%' order by variable_name; | 163 | select * from information_schema.global_variables where variable_name like 'net_buffer_length'; |
4754 | 162 | set net_buffer_length=1; | 164 | #warning 1292 |
4755 | 163 | show variables like 'net_buffer_length'; | 165 | set global net_buffer_length=2000000000; |
4756 | 164 | select * from information_schema.session_variables where variable_name like 'net_buffer_length'; | 166 | show global variables like 'net_buffer_length'; |
4757 | 165 | set net_buffer_length=2000000000; | 167 | select * from information_schema.global_variables where variable_name like 'net_buffer_length'; |
4742 | 166 | show variables like 'net_buffer_length'; | ||
4743 | 167 | select * from information_schema.session_variables where variable_name like 'net_buffer_length'; | ||
4758 | 168 | 168 | ||
4759 | 169 | set character set cp1251_koi8; | 169 | set character set cp1251_koi8; |
4760 | 170 | show variables like "character_set_client"; | 170 | show variables like "character_set_client"; |
4761 | @@ -174,21 +174,63 @@ | |||
4762 | 174 | set @@rand_seed1=10000000,@@rand_seed2=1000000; | 174 | set @@rand_seed1=10000000,@@rand_seed2=1000000; |
4763 | 175 | select ROUND(RAND(),5); | 175 | select ROUND(RAND(),5); |
4764 | 176 | 176 | ||
4768 | 177 | show variables like '%alloc%'; | 177 | |
4769 | 178 | select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name; | 178 | --echo |
4770 | 179 | set @@range_alloc_block_size=1024*16; | 179 | --echo ==+ Testing %alloc% system variables +== |
4771 | 180 | --echo ==+ NOTE: These values *must* be a multiple of 1024 +== | ||
4772 | 181 | --echo ==+ Other values will be rounded down to nearest multiple +== | ||
4773 | 182 | --echo | ||
4774 | 183 | --echo ==+ Show initial values +== | ||
4775 | 184 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', | ||
4776 | 185 | 'query_alloc_block_size', 'query_prealloc_size', | ||
4777 | 186 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
4778 | 187 | |||
4779 | 188 | --echo ==+ information_schema data +== | ||
4780 | 189 | SELECT * FROM information_schema.session_variables | ||
4781 | 190 | WHERE variable_name IN ('range_alloc_block_size', | ||
4782 | 191 | 'query_alloc_block_size', 'query_prealloc_size', | ||
4783 | 192 | 'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1; | ||
4784 | 193 | --echo Testing values that are multiples of 1024 | ||
4785 | 194 | set @@range_alloc_block_size=1024*15+1024; | ||
4786 | 195 | set @@query_alloc_block_size=1024*15+1024*2; | ||
4787 | 196 | set @@query_prealloc_size=1024*18-1024; | ||
4788 | 197 | set @@transaction_alloc_block_size=1024*21-1024*1; | ||
4789 | 198 | set @@transaction_prealloc_size=1024*21-2048; | ||
4790 | 199 | --echo ==+ Check manipulated values ==+ | ||
4791 | 200 | select @@query_alloc_block_size; | ||
4792 | 201 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', | ||
4793 | 202 | 'query_alloc_block_size', 'query_prealloc_size', | ||
4794 | 203 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
4795 | 204 | --echo ==+ information_schema data +== | ||
4796 | 205 | SELECT * FROM information_schema.session_variables | ||
4797 | 206 | WHERE variable_name IN ('range_alloc_block_size', | ||
4798 | 207 | 'query_alloc_block_size', 'query_prealloc_size', | ||
4799 | 208 | 'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1; | ||
4800 | 209 | --echo ==+ Manipulate variable values +== | ||
4801 | 210 | --echo Testing values that are not 1024 multiples | ||
4802 | 211 | set @@range_alloc_block_size=1024*16+1023; | ||
4803 | 180 | set @@query_alloc_block_size=1024*17+2; | 212 | set @@query_alloc_block_size=1024*17+2; |
4805 | 181 | set @@query_prealloc_size=1024*18; | 213 | set @@query_prealloc_size=1024*18-1023; |
4806 | 182 | set @@transaction_alloc_block_size=1024*20-1; | 214 | set @@transaction_alloc_block_size=1024*20-1; |
4807 | 183 | set @@transaction_prealloc_size=1024*21-1; | 215 | set @@transaction_prealloc_size=1024*21-1; |
4808 | 184 | select @@query_alloc_block_size; | 216 | select @@query_alloc_block_size; |
4811 | 185 | show variables like '%alloc%'; | 217 | --echo ==+ Check manipulated values ==+ |
4812 | 186 | select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name; | 218 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', |
4813 | 219 | 'query_alloc_block_size', 'query_prealloc_size', | ||
4814 | 220 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
4815 | 221 | --echo ==+ information_schema data +== | ||
4816 | 222 | SELECT * FROM information_schema.session_variables | ||
4817 | 223 | WHERE variable_name IN ('range_alloc_block_size', | ||
4818 | 224 | 'query_alloc_block_size', 'query_prealloc_size', | ||
4819 | 225 | 'transaction_alloc_block_size', 'transaction_prealloc_size') ORDER BY 1; | ||
4820 | 226 | --echo ==+ Set values back to the default values +== | ||
4821 | 187 | set @@range_alloc_block_size=default; | 227 | set @@range_alloc_block_size=default; |
4822 | 188 | set @@query_alloc_block_size=default, @@query_prealloc_size=default; | 228 | set @@query_alloc_block_size=default, @@query_prealloc_size=default; |
4823 | 189 | set transaction_alloc_block_size=default, @@transaction_prealloc_size=default; | 229 | set transaction_alloc_block_size=default, @@transaction_prealloc_size=default; |
4826 | 190 | show variables like '%alloc%'; | 230 | --echo ==+ Check the values now that they are reset +== |
4827 | 191 | select * from information_schema.session_variables where variable_name like '%alloc%' order by variable_name; | 231 | SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size', |
4828 | 232 | 'query_alloc_block_size', 'query_prealloc_size', | ||
4829 | 233 | 'transaction_alloc_block_size', 'transaction_prealloc_size'); | ||
4830 | 192 | 234 | ||
4831 | 193 | # | 235 | # |
4832 | 194 | # Bug #10904 Illegal mix of collations between | 236 | # Bug #10904 Illegal mix of collations between |
4833 | @@ -199,46 +241,46 @@ | |||
4834 | 199 | 241 | ||
4835 | 200 | # The following should give errors | 242 | # The following should give errors |
4836 | 201 | 243 | ||
4838 | 202 | --error 1231 | 244 | --error ER_WRONG_VALUE_FOR_VAR |
4839 | 203 | set big_tables=OFFF; | 245 | set big_tables=OFFF; |
4841 | 204 | --error 1231 | 246 | --error ER_WRONG_VALUE_FOR_VAR |
4842 | 205 | set big_tables="OFFF"; | 247 | set big_tables="OFFF"; |
4844 | 206 | --error 1193 | 248 | --error ER_UNKNOWN_SYSTEM_VARIABLE |
4845 | 207 | set unknown_variable=1; | 249 | set unknown_variable=1; |
4847 | 208 | --error 1232 | 250 | --error ER_WRONG_TYPE_FOR_VAR |
4848 | 209 | set max_join_size="hello"; | 251 | set max_join_size="hello"; |
4850 | 210 | --error 1286 | 252 | --error ER_UNKNOWN_STORAGE_ENGINE |
4851 | 211 | set storage_engine=UNKNOWN_TABLE_TYPE; | 253 | set storage_engine=UNKNOWN_TABLE_TYPE; |
4853 | 212 | --error 1231 | 254 | --error ER_WRONG_VALUE_FOR_VAR |
4854 | 213 | set storage_engine=MERGE, big_tables=2; | 255 | set storage_engine=MERGE, big_tables=2; |
4855 | 214 | show local variables like 'storage_engine'; | 256 | show local variables like 'storage_engine'; |
4857 | 215 | --error 1229 | 257 | --error ER_GLOBAL_VARIABLE |
4858 | 216 | set SESSION query_cache_size=10000; | 258 | set SESSION query_cache_size=10000; |
4860 | 217 | --error 1230 | 259 | --error ER_NO_DEFAULT |
4861 | 218 | set GLOBAL storage_engine=DEFAULT; | 260 | set GLOBAL storage_engine=DEFAULT; |
4863 | 219 | --error 1115 | 261 | --error ER_UNKNOWN_CHARACTER_SET |
4864 | 220 | set character_set_client=UNKNOWN_CHARACTER_SET; | 262 | set character_set_client=UNKNOWN_CHARACTER_SET; |
4866 | 221 | --error 1273 | 263 | --error ER_UNKNOWN_COLLATION |
4867 | 222 | set collation_connection=UNKNOWN_COLLATION; | 264 | set collation_connection=UNKNOWN_COLLATION; |
4869 | 223 | --error 1231 | 265 | --error ER_WRONG_VALUE_FOR_VAR |
4870 | 224 | set character_set_client=NULL; | 266 | set character_set_client=NULL; |
4872 | 225 | --error 1231 | 267 | --error ER_WRONG_VALUE_FOR_VAR |
4873 | 226 | set collation_connection=NULL; | 268 | set collation_connection=NULL; |
4875 | 227 | --error 1228 | 269 | --error ER_LOCAL_VARIABLE |
4876 | 228 | set global autocommit=1; | 270 | set global autocommit=1; |
4878 | 229 | --error 1238 | 271 | --error ER_INCORRECT_GLOBAL_LOCAL_VAR |
4879 | 230 | select @@global.timestamp; | 272 | select @@global.timestamp; |
4881 | 231 | --error 1238 | 273 | --error ER_INCORRECT_GLOBAL_LOCAL_VAR |
4882 | 232 | set @@version=''; | 274 | set @@version=''; |
4884 | 233 | --error 1229 | 275 | --error ER_GLOBAL_VARIABLE |
4885 | 234 | set @@concurrent_insert=1; | 276 | set @@concurrent_insert=1; |
4887 | 235 | --error 1228 | 277 | --error ER_LOCAL_VARIABLE |
4888 | 236 | set @@global.sql_auto_is_null=1; | 278 | set @@global.sql_auto_is_null=1; |
4890 | 237 | --error 1238 | 279 | --error ER_INCORRECT_GLOBAL_LOCAL_VAR |
4891 | 238 | select @@global.sql_auto_is_null; | 280 | select @@global.sql_auto_is_null; |
4893 | 239 | --error 1229 | 281 | --error ER_GLOBAL_VARIABLE |
4894 | 240 | set myisam_max_sort_file_size=100; | 282 | set myisam_max_sort_file_size=100; |
4896 | 241 | --error 1231 | 283 | --error ER_WRONG_VALUE_FOR_VAR |
4897 | 242 | set @@SQL_WARNINGS=NULL; | 284 | set @@SQL_WARNINGS=NULL; |
4898 | 243 | 285 | ||
4899 | 244 | # Test setting all variables | 286 | # Test setting all variables |
4900 | @@ -269,9 +311,12 @@ | |||
4901 | 269 | set join_buffer_size=100; | 311 | set join_buffer_size=100; |
4902 | 270 | set last_insert_id=1; | 312 | set last_insert_id=1; |
4903 | 271 | set global local_infile=1; | 313 | set global local_infile=1; |
4905 | 272 | set long_query_time=100; | 314 | set long_query_time=0.000001; |
4906 | 315 | select @@long_query_time; | ||
4907 | 316 | set long_query_time=100.000001; | ||
4908 | 317 | select @@long_query_time; | ||
4909 | 273 | set low_priority_updates=1; | 318 | set low_priority_updates=1; |
4911 | 274 | set max_allowed_packet=100; | 319 | set global max_allowed_packet=100; |
4912 | 275 | set global max_binlog_cache_size=100; | 320 | set global max_binlog_cache_size=100; |
4913 | 276 | set global max_binlog_size=100; | 321 | set global max_binlog_size=100; |
4914 | 277 | set global max_connect_errors=100; | 322 | set global max_connect_errors=100; |
4915 | @@ -285,7 +330,7 @@ | |||
4916 | 285 | select @@max_user_connections; | 330 | select @@max_user_connections; |
4917 | 286 | set global max_write_lock_count=100; | 331 | set global max_write_lock_count=100; |
4918 | 287 | set myisam_sort_buffer_size=100; | 332 | set myisam_sort_buffer_size=100; |
4920 | 288 | set net_buffer_length=100; | 333 | set global net_buffer_length=100; |
4921 | 289 | set net_read_timeout=100; | 334 | set net_read_timeout=100; |
4922 | 290 | set net_write_timeout=100; | 335 | set net_write_timeout=100; |
4923 | 291 | set global query_cache_limit=100; | 336 | set global query_cache_limit=100; |
4924 | @@ -328,6 +373,7 @@ | |||
4925 | 328 | set tx_isolation="READ-COMMITTED"; | 373 | set tx_isolation="READ-COMMITTED"; |
4926 | 329 | set wait_timeout=100; | 374 | set wait_timeout=100; |
4927 | 330 | set log_warnings=1; | 375 | set log_warnings=1; |
4928 | 376 | set global log_warnings=1; | ||
4929 | 331 | 377 | ||
4930 | 332 | # | 378 | # |
4931 | 333 | # Bugs: #20392: INSERT_ID session variable has weird value | 379 | # Bugs: #20392: INSERT_ID session variable has weird value |
4932 | @@ -365,23 +411,23 @@ | |||
4933 | 365 | # error conditions | 411 | # error conditions |
4934 | 366 | # | 412 | # |
4935 | 367 | 413 | ||
4937 | 368 | --error 1193 | 414 | --error ER_UNKNOWN_SYSTEM_VARIABLE |
4938 | 369 | select @@xxxxxxxxxx; | 415 | select @@xxxxxxxxxx; |
4939 | 370 | select 1; | 416 | select 1; |
4940 | 371 | 417 | ||
4942 | 372 | --error 1238 | 418 | --error ER_INCORRECT_GLOBAL_LOCAL_VAR |
4943 | 373 | select @@session.key_buffer_size; | 419 | select @@session.key_buffer_size; |
4944 | 374 | 420 | ||
4946 | 375 | --error 1229 | 421 | --error ER_GLOBAL_VARIABLE |
4947 | 376 | set ft_boolean_syntax = @@init_connect; | 422 | set ft_boolean_syntax = @@init_connect; |
4949 | 377 | --error 1231 | 423 | --error ER_WRONG_VALUE_FOR_VAR |
4950 | 378 | set global ft_boolean_syntax = @@init_connect; | 424 | set global ft_boolean_syntax = @@init_connect; |
4952 | 379 | --error 1229 | 425 | --error ER_GLOBAL_VARIABLE |
4953 | 380 | set init_connect = NULL; | 426 | set init_connect = NULL; |
4954 | 381 | set global init_connect = NULL; | 427 | set global init_connect = NULL; |
4956 | 382 | --error 1229 | 428 | --error ER_GLOBAL_VARIABLE |
4957 | 383 | set ft_boolean_syntax = @@init_connect; | 429 | set ft_boolean_syntax = @@init_connect; |
4959 | 384 | --error 1231 | 430 | --error ER_WRONG_VALUE_FOR_VAR |
4960 | 385 | set global ft_boolean_syntax = @@init_connect; | 431 | set global ft_boolean_syntax = @@init_connect; |
4961 | 386 | 432 | ||
4962 | 387 | # Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as | 433 | # Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as |
4963 | @@ -414,15 +460,15 @@ | |||
4964 | 414 | # | 460 | # |
4965 | 415 | # Bug#2586:Disallow global/session/local as structured var. instance names | 461 | # Bug#2586:Disallow global/session/local as structured var. instance names |
4966 | 416 | # | 462 | # |
4968 | 417 | --error 1064 | 463 | --error ER_PARSE_ERROR |
4969 | 418 | set @@global.global.key_buffer_size= 1; | 464 | set @@global.global.key_buffer_size= 1; |
4971 | 419 | --error 1064 | 465 | --error ER_PARSE_ERROR |
4972 | 420 | set GLOBAL global.key_buffer_size= 1; | 466 | set GLOBAL global.key_buffer_size= 1; |
4974 | 421 | --error 1064 | 467 | --error ER_PARSE_ERROR |
4975 | 422 | SELECT @@global.global.key_buffer_size; | 468 | SELECT @@global.global.key_buffer_size; |
4977 | 423 | --error 1064 | 469 | --error ER_PARSE_ERROR |
4978 | 424 | SELECT @@global.session.key_buffer_size; | 470 | SELECT @@global.session.key_buffer_size; |
4980 | 425 | --error 1064 | 471 | --error ER_PARSE_ERROR |
4981 | 426 | SELECT @@global.local.key_buffer_size; | 472 | SELECT @@global.local.key_buffer_size; |
4982 | 427 | 473 | ||
4983 | 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) |
4984 | @@ -513,27 +559,27 @@ | |||
4985 | 513 | --echo *** LC_TIME_NAMES: testing with string expressions | 559 | --echo *** LC_TIME_NAMES: testing with string expressions |
4986 | 514 | set lc_time_names=concat('de','_','DE'); | 560 | set lc_time_names=concat('de','_','DE'); |
4987 | 515 | select @@lc_time_names; | 561 | select @@lc_time_names; |
4989 | 516 | --error 1105 | 562 | --error ER_UNKNOWN_ERROR |
4990 | 517 | set lc_time_names=concat('de','+','DE'); | 563 | set lc_time_names=concat('de','+','DE'); |
4991 | 518 | select @@lc_time_names; | 564 | select @@lc_time_names; |
4992 | 519 | --echo LC_TIME_NAMES: testing with numeric expressions | 565 | --echo LC_TIME_NAMES: testing with numeric expressions |
4993 | 520 | set @@lc_time_names=1+2; | 566 | set @@lc_time_names=1+2; |
4994 | 521 | select @@lc_time_names; | 567 | select @@lc_time_names; |
4996 | 522 | --error 1232 | 568 | --error ER_WRONG_TYPE_FOR_VAR |
4997 | 523 | set @@lc_time_names=1/0; | 569 | set @@lc_time_names=1/0; |
4998 | 524 | select @@lc_time_names; | 570 | select @@lc_time_names; |
4999 | 525 | set lc_time_names=en_US; | 571 | set lc_time_names=en_US; |
5000 | 526 | --echo LC_TIME_NAMES: testing NULL and a negative number: | 572 | --echo LC_TIME_NAMES: testing NULL and a negative number: |
tests passed on local 32-bit ubuntu and dev8