~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/variables.result

  • Committer: Brian Aker
  • Date: 2009-01-09 22:07:54 UTC
  • Revision ID: brian@tangent.org-20090109220754-1y50h7lqi9i1ifcs
Dead test/wrong test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1,t2;
 
2
set @my_binlog_cache_size         =@@global.binlog_cache_size;
 
3
set @my_connect_timeout           =@@global.connect_timeout;
 
4
set @my_flush                     =@@global.flush;
 
5
set @my_key_buffer_size           =@@global.key_buffer_size;
 
6
set @my_max_binlog_cache_size     =@@global.max_binlog_cache_size;
 
7
set @my_max_binlog_size           =@@global.max_binlog_size;
2
8
set @my_max_connect_errors        =@@global.max_connect_errors;
 
9
set @my_max_connections           =@@global.max_connections;
3
10
set @my_max_heap_table_size       =@@global.max_heap_table_size;
4
11
set @my_max_join_size             =@@global.max_join_size;
5
 
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
 
12
set @my_net_buffer_length         =@@global.net_buffer_length;
 
13
set @my_net_write_timeout         =@@global.net_write_timeout;
 
14
set @my_net_read_timeout          =@@global.net_read_timeout;
6
15
set @my_server_id                 =@@global.server_id;
 
16
set @my_slow_launch_time          =@@global.slow_launch_time;
7
17
set @my_storage_engine            =@@global.storage_engine;
8
 
set @my_myisam_sort_buffer_size   =@@global.myisam_sort_buffer_size;
9
 
set @my_tx_isolation      =@@global.tx_isolation;
10
18
set @`test`=1;
11
19
select @test, @`test`, @TEST, @`TEST`, @"teSt";
12
20
@test   @`test` @TEST   @`TEST` @"teSt"
84
92
show variables like 'max_join_size';
85
93
Variable_name   Value
86
94
max_join_size   100
87
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
95
select * from information_schema.session_variables where variable_name like 'max_join_size';
88
96
VARIABLE_NAME   VARIABLE_VALUE
89
 
max_join_size   100
 
97
MAX_JOIN_SIZE   100
90
98
show global variables like 'max_join_size';
91
99
Variable_name   Value
92
100
max_join_size   10
93
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
101
select * from information_schema.global_variables where variable_name like 'max_join_size';
94
102
VARIABLE_NAME   VARIABLE_VALUE
95
 
max_join_size   10
 
103
MAX_JOIN_SIZE   10
96
104
set GLOBAL max_join_size=2000;
97
105
show global variables like 'max_join_size';
98
106
Variable_name   Value
99
107
max_join_size   2000
100
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
108
select * from information_schema.global_variables where variable_name like 'max_join_size';
101
109
VARIABLE_NAME   VARIABLE_VALUE
102
 
max_join_size   2000
 
110
MAX_JOIN_SIZE   2000
103
111
set max_join_size=DEFAULT;
104
112
show variables like 'max_join_size';
105
113
Variable_name   Value
106
114
max_join_size   2000
107
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
115
select * from information_schema.session_variables where variable_name like 'max_join_size';
108
116
VARIABLE_NAME   VARIABLE_VALUE
109
 
max_join_size   2000
 
117
MAX_JOIN_SIZE   2000
110
118
set GLOBAL max_join_size=DEFAULT;
111
119
show global variables like 'max_join_size';
112
120
Variable_name   Value
113
121
max_join_size   2147483647
114
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
122
select * from information_schema.global_variables where variable_name like 'max_join_size';
115
123
VARIABLE_NAME   VARIABLE_VALUE
116
 
max_join_size   2147483647
 
124
MAX_JOIN_SIZE   2147483647
117
125
set @@max_join_size=1000, @@global.max_join_size=2000;
118
126
select @@local.max_join_size, @@global.max_join_size;
119
127
@@local.max_join_size   @@global.max_join_size
144
152
show variables like 'timed_mutexes';
145
153
Variable_name   Value
146
154
timed_mutexes   ON
147
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
155
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
148
156
VARIABLE_NAME   VARIABLE_VALUE
149
 
timed_mutexes   ON
 
157
TIMED_MUTEXES   ON
150
158
set global timed_mutexes=0;
151
159
show variables like 'timed_mutexes';
152
160
Variable_name   Value
153
161
timed_mutexes   OFF
154
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
162
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
155
163
VARIABLE_NAME   VARIABLE_VALUE
156
 
timed_mutexes   OFF
157
 
set storage_engine=MYISAM, storage_engine="MEMORY";
 
164
TIMED_MUTEXES   OFF
 
165
set storage_engine=MYISAM, storage_engine="HEAP";
158
166
show local variables like 'storage_engine';
159
167
Variable_name   Value
160
168
storage_engine  MEMORY
161
 
select * from data_dictionary.session_variables where variable_name like 'storage_engine';
 
169
select * from information_schema.session_variables where variable_name like 'storage_engine';
162
170
VARIABLE_NAME   VARIABLE_VALUE
163
 
storage_engine  MEMORY
 
171
STORAGE_ENGINE  MEMORY
164
172
show global variables like 'storage_engine';
165
173
Variable_name   Value
166
174
storage_engine  InnoDB
167
 
select * from data_dictionary.global_variables where variable_name like 'storage_engine';
 
175
select * from information_schema.global_variables where variable_name like 'storage_engine';
168
176
VARIABLE_NAME   VARIABLE_VALUE
169
 
storage_engine  InnoDB
 
177
STORAGE_ENGINE  InnoDB
170
178
set GLOBAL myisam_max_sort_file_size=2000000;
171
179
show global variables like 'myisam_max_sort_file_size';
172
180
Variable_name   Value
173
 
myisam_max_sort_file_size       2000000
174
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
181
myisam_max_sort_file_size       1048576
 
182
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
175
183
VARIABLE_NAME   VARIABLE_VALUE
176
 
myisam_max_sort_file_size       2000000
 
184
MYISAM_MAX_SORT_FILE_SIZE       1048576
177
185
set GLOBAL myisam_max_sort_file_size=default;
178
186
show global variables like 'myisam_max_sort_file_size';
179
187
Variable_name   Value
180
 
myisam_max_sort_file_size       2147483647
181
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
182
 
VARIABLE_NAME   VARIABLE_VALUE
183
 
myisam_max_sort_file_size       2147483647
184
 
set global mysql_protocol_buffer_length=1024;
185
 
show global variables like 'mysql_protocol_buffer_%';
186
 
Variable_name   Value
187
 
mysql_protocol_buffer_length    1024
188
 
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
189
 
VARIABLE_NAME   VARIABLE_VALUE
190
 
mysql_protocol_buffer_length    1024
191
 
show global variables like 'mysql_protocol_buffer_%';
192
 
Variable_name   Value
193
 
mysql_protocol_buffer_length    1024
194
 
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
195
 
VARIABLE_NAME   VARIABLE_VALUE
196
 
mysql_protocol_buffer_length    1024
197
 
set global mysql_protocol_buffer_length=1;
198
 
Warnings:
199
 
Error   1524    Error setting mysql_protocol_buffer_length. Given value 1 (< 1024)
200
 
show variables like 'mysql_protocol_buffer_length';
201
 
Variable_name   Value
202
 
mysql_protocol_buffer_length    1024
203
 
set global mysql_protocol_buffer_length=2000000000;
204
 
Warnings:
205
 
Error   1524    Error setting mysql_protocol_buffer_length. Given value 2000000000 (> 1048576)
206
 
show variables like 'mysql_protocol_buffer_length';
207
 
Variable_name   Value
208
 
mysql_protocol_buffer_length    1024
 
188
myisam_max_sort_file_size       FILE_SIZE
 
189
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
190
VARIABLE_NAME   VARIABLE_VALUE
 
191
MYISAM_MAX_SORT_FILE_SIZE       FILE_SIZE
 
192
set global net_retry_count=10, session net_retry_count=10;
 
193
set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
 
194
set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600;
 
195
show global variables like 'net_%';
 
196
Variable_name   Value
 
197
net_buffer_length       1024
 
198
net_read_timeout        300
 
199
net_retry_count 10
 
200
net_write_timeout       200
 
201
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
 
202
VARIABLE_NAME   VARIABLE_VALUE
 
203
NET_BUFFER_LENGTH       1024
 
204
NET_READ_TIMEOUT        300
 
205
NET_RETRY_COUNT 10
 
206
NET_WRITE_TIMEOUT       200
 
207
show session variables like 'net_%';
 
208
Variable_name   Value
 
209
net_buffer_length       2048
 
210
net_read_timeout        600
 
211
net_retry_count 10
 
212
net_write_timeout       500
 
213
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
 
214
VARIABLE_NAME   VARIABLE_VALUE
 
215
NET_BUFFER_LENGTH       2048
 
216
NET_READ_TIMEOUT        600
 
217
NET_RETRY_COUNT 10
 
218
NET_WRITE_TIMEOUT       500
 
219
set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
 
220
show global variables like 'net_%';
 
221
Variable_name   Value
 
222
net_buffer_length       1024
 
223
net_read_timeout        900
 
224
net_retry_count 10
 
225
net_write_timeout       1000
 
226
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
 
227
VARIABLE_NAME   VARIABLE_VALUE
 
228
NET_BUFFER_LENGTH       1024
 
229
NET_READ_TIMEOUT        900
 
230
NET_RETRY_COUNT 10
 
231
NET_WRITE_TIMEOUT       1000
 
232
show session variables like 'net_%';
 
233
Variable_name   Value
 
234
net_buffer_length       7168
 
235
net_read_timeout        600
 
236
net_retry_count 10
 
237
net_write_timeout       500
 
238
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
 
239
VARIABLE_NAME   VARIABLE_VALUE
 
240
NET_BUFFER_LENGTH       7168
 
241
NET_READ_TIMEOUT        600
 
242
NET_RETRY_COUNT 10
 
243
NET_WRITE_TIMEOUT       500
 
244
set net_buffer_length=1;
 
245
Warnings:
 
246
Warning 1292    Truncated incorrect net_buffer_length value: '1'
 
247
show variables like 'net_buffer_length';
 
248
Variable_name   Value
 
249
net_buffer_length       1024
 
250
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
 
251
VARIABLE_NAME   VARIABLE_VALUE
 
252
NET_BUFFER_LENGTH       1024
 
253
set net_buffer_length=2000000000;
 
254
Warnings:
 
255
Warning 1292    Truncated incorrect net_buffer_length value: '2000000000'
 
256
show variables like 'net_buffer_length';
 
257
Variable_name   Value
 
258
net_buffer_length       1048576
 
259
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
 
260
VARIABLE_NAME   VARIABLE_VALUE
 
261
NET_BUFFER_LENGTH       1048576
209
262
show variables like '%alloc%';
210
263
Variable_name   Value
211
 
innodb_use_sys_malloc   ON
212
264
query_alloc_block_size  8192
213
265
query_prealloc_size     8192
214
 
range_alloc_block_size  4096
215
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
266
range_alloc_block_size  
 
267
transaction_alloc_block_size    8192
 
268
transaction_prealloc_size       4096
 
269
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
216
270
VARIABLE_NAME   VARIABLE_VALUE
217
 
innodb_use_sys_malloc   ON
218
 
query_alloc_block_size  8192
219
 
query_prealloc_size     8192
220
 
range_alloc_block_size  4096
 
271
QUERY_ALLOC_BLOCK_SIZE  8192
 
272
QUERY_PREALLOC_SIZE     8192
 
273
RANGE_ALLOC_BLOCK_SIZE  
 
274
TRANSACTION_ALLOC_BLOCK_SIZE    8192
 
275
TRANSACTION_PREALLOC_SIZE       4096
221
276
set @@range_alloc_block_size=1024*16;
222
277
set @@query_alloc_block_size=1024*17+2;
223
278
set @@query_prealloc_size=1024*18;
 
279
set @@transaction_alloc_block_size=1024*20-1;
 
280
set @@transaction_prealloc_size=1024*21-1;
224
281
select @@query_alloc_block_size;
225
282
@@query_alloc_block_size
226
283
17408
227
284
show variables like '%alloc%';
228
285
Variable_name   Value
229
 
innodb_use_sys_malloc   ON
230
286
query_alloc_block_size  17408
231
287
query_prealloc_size     18432
232
 
range_alloc_block_size  16384
233
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
288
range_alloc_block_size  
 
289
transaction_alloc_block_size    19456
 
290
transaction_prealloc_size       20480
 
291
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
234
292
VARIABLE_NAME   VARIABLE_VALUE
235
 
innodb_use_sys_malloc   ON
236
 
query_alloc_block_size  17408
237
 
query_prealloc_size     18432
238
 
range_alloc_block_size  16384
 
293
QUERY_ALLOC_BLOCK_SIZE  17408
 
294
QUERY_PREALLOC_SIZE     18432
 
295
RANGE_ALLOC_BLOCK_SIZE  
 
296
TRANSACTION_ALLOC_BLOCK_SIZE    19456
 
297
TRANSACTION_PREALLOC_SIZE       20480
239
298
set @@range_alloc_block_size=default;
240
299
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
 
300
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
241
301
show variables like '%alloc%';
242
302
Variable_name   Value
243
 
innodb_use_sys_malloc   ON
244
303
query_alloc_block_size  8192
245
304
query_prealloc_size     8192
246
 
range_alloc_block_size  4096
247
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
305
range_alloc_block_size  
 
306
transaction_alloc_block_size    8192
 
307
transaction_prealloc_size       4096
 
308
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
248
309
VARIABLE_NAME   VARIABLE_VALUE
249
 
innodb_use_sys_malloc   ON
250
 
query_alloc_block_size  8192
251
 
query_prealloc_size     8192
252
 
range_alloc_block_size  4096
 
310
QUERY_ALLOC_BLOCK_SIZE  8192
 
311
QUERY_PREALLOC_SIZE     8192
 
312
RANGE_ALLOC_BLOCK_SIZE  
 
313
TRANSACTION_ALLOC_BLOCK_SIZE    8192
 
314
TRANSACTION_PREALLOC_SIZE       4096
253
315
SELECT @@version LIKE 'non-existent';
254
316
@@version LIKE 'non-existent'
255
317
0
278
340
select @@autocommit;
279
341
@@autocommit
280
342
1
 
343
set global binlog_cache_size=100;
 
344
Warnings:
 
345
Warning 1292    Truncated incorrect binlog_cache_size value: '100'
281
346
set bulk_insert_buffer_size=100;
 
347
set global connect_timeout=100;
 
348
select @@delay_key_write;
 
349
@@delay_key_write
 
350
ON
 
351
set global delay_key_write="OFF";
 
352
select @@delay_key_write;
 
353
@@delay_key_write
 
354
OFF
 
355
set global delay_key_write=ALL;
 
356
set global delay_key_write=1;
 
357
select @@delay_key_write;
 
358
@@delay_key_write
 
359
ON
 
360
set interactive_timeout=100;
282
361
set join_buffer_size=100;
283
362
Warnings:
284
 
Error   1292    Truncated incorrect join_buffer_size value: '100'
 
363
Warning 1292    Truncated incorrect join_buffer_size value: '100'
285
364
set last_insert_id=1;
 
365
set global local_infile=1;
286
366
set max_allowed_packet=100;
287
367
Warnings:
288
 
Error   1292    Truncated incorrect max_allowed_packet value: '100'
 
368
Warning 1292    Truncated incorrect max_allowed_packet value: '100'
 
369
set global max_binlog_cache_size=100;
 
370
Warnings:
 
371
Warning 1292    Truncated incorrect max_binlog_cache_size value: '100'
 
372
set global max_binlog_size=100;
 
373
Warnings:
 
374
Warning 1292    Truncated incorrect max_binlog_size value: '100'
289
375
set global max_connect_errors=100;
 
376
set global max_connections=100;
290
377
set max_heap_table_size=100;
291
378
Warnings:
292
 
Error   1292    Truncated incorrect max_heap_table_size value: '100'
 
379
Warning 1292    Truncated incorrect max_heap_table_size value: '100'
293
380
set max_join_size=100;
294
381
set max_sort_length=100;
 
382
set max_tmp_tables=100;
295
383
set global max_write_lock_count=100;
296
 
set global myisam_sort_buffer_size=100;
297
 
Warnings:
298
 
Error   1524    Error setting myisam_sort_buffer_size. Given value 100 (< 1024)
299
 
set global mysql_protocol_buffer_length=100;
300
 
Warnings:
301
 
Error   1524    Error setting mysql_protocol_buffer_length. Given value 100 (< 1024)
 
384
set myisam_sort_buffer_size=100;
 
385
set net_buffer_length=100;
 
386
Warnings:
 
387
Warning 1292    Truncated incorrect net_buffer_length value: '100'
 
388
set net_read_timeout=100;
 
389
set net_write_timeout=100;
302
390
set read_buffer_size=100;
303
391
Warnings:
304
 
Error   1292    Truncated incorrect read_buffer_size value: '100'
 
392
Warning 1292    Truncated incorrect read_buffer_size value: '100'
305
393
set read_rnd_buffer_size=100;
306
394
set global server_id=100;
 
395
set global slow_launch_time=100;
307
396
set sort_buffer_size=100;
308
397
Warnings:
309
 
Error   1292    Truncated incorrect sort_buffer_size value: '100'
 
398
Warning 1292    Truncated incorrect sort_buffer_size value: '100'
310
399
set sql_big_selects=1;
311
400
set sql_buffer_result=1;
 
401
set sql_log_bin=1;
 
402
set sql_quote_show_create=1;
 
403
set sql_safe_updates=1;
312
404
set sql_select_limit=1;
313
405
set sql_select_limit=default;
314
406
set sql_warnings=1;
317
409
set timestamp=1, timestamp=default;
318
410
set tmp_table_size=100;
319
411
Warnings:
320
 
Error   1292    Truncated incorrect tmp_table_size value: '100'
 
412
Warning 1292    Truncated incorrect tmp_table_size value: '100'
321
413
set tx_isolation="READ-COMMITTED";
 
414
set wait_timeout=100;
 
415
create table t1 (a int not null auto_increment, primary key(a));
 
416
create table t2 (a int not null auto_increment, primary key(a));
 
417
insert into t1 values(null),(null),(null);
 
418
insert into t2 values(null),(null),(null);
 
419
set global key_buffer_size=100000;
 
420
select @@key_buffer_size;
 
421
@@key_buffer_size
 
422
98304
 
423
select * from t1 where a=2;
 
424
a
 
425
2
 
426
select * from t2 where a=3;
 
427
a
 
428
3
 
429
check table t1,t2;
 
430
Table   Op      Msg_type        Msg_text
 
431
test.t1 check   status  OK
 
432
test.t2 check   status  OK
 
433
select max(a) +1, max(a) +2 into @xx,@yy from t1;
 
434
drop table t1,t2;
 
435
select @@xxxxxxxxxx;
 
436
ERROR HY000: Unknown system variable 'xxxxxxxxxx'
 
437
select 1;
 
438
1
 
439
1
 
440
select @@session.key_buffer_size;
 
441
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable
 
442
set init_connect = NULL;
 
443
ERROR HY000: Variable 'init_connect' is a GLOBAL variable and should be set with SET GLOBAL
 
444
set global init_connect = NULL;
322
445
set global myisam_max_sort_file_size=4294967296;
323
446
show global variables like 'myisam_max_sort_file_size';
324
447
Variable_name   Value
325
448
myisam_max_sort_file_size       MAX_FILE_SIZE
326
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
449
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
327
450
VARIABLE_NAME   VARIABLE_VALUE
328
 
myisam_max_sort_file_size       MAX_FILE_SIZE
 
451
MYISAM_MAX_SORT_FILE_SIZE       MAX_FILE_SIZE
329
452
set global myisam_max_sort_file_size=default;
330
 
create temporary table t1 (
 
453
set @@global.global.key_buffer_size= 1;
 
454
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size= 1' at line 1
 
455
set GLOBAL global.key_buffer_size= 1;
 
456
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size= 1' at line 1
 
457
SELECT @@global.global.key_buffer_size;
 
458
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size' at line 1
 
459
SELECT @@global.session.key_buffer_size;
 
460
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size' at line 1
 
461
SELECT @@global.local.key_buffer_size;
 
462
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'key_buffer_size' at line 1
 
463
create table t1 (
331
464
c1 int,
332
465
c2 int,
333
466
c3 int,
335
468
c5 bigint);
336
469
show create table t1;
337
470
Table   Create Table
338
 
t1      CREATE TEMPORARY TABLE `t1` (
339
 
  `c1` INT DEFAULT NULL,
340
 
  `c2` INT DEFAULT NULL,
341
 
  `c3` INT DEFAULT NULL,
342
 
  `c4` INT DEFAULT NULL,
343
 
  `c5` BIGINT DEFAULT NULL
344
 
) ENGINE=MyISAM COLLATE = utf8_general_ci
 
471
t1      CREATE TABLE `t1` (
 
472
  `c1` int,
 
473
  `c2` int,
 
474
  `c3` int,
 
475
  `c4` int,
 
476
  `c5` bigint
 
477
) ENGINE=MyISAM
345
478
drop table t1;
346
479
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
347
 
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
 
480
create table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
348
481
show create table t1;
349
482
Table   Create Table
350
 
t1      CREATE TEMPORARY TABLE `t1` (
351
 
  `c1` BIGINT DEFAULT NULL,
352
 
  `c2` DECIMAL(65,30) DEFAULT NULL,
353
 
  `c3` TEXT COLLATE utf8_general_ci,
354
 
  `c4` DOUBLE DEFAULT NULL
355
 
) ENGINE=MyISAM COLLATE = utf8_general_ci
 
483
t1      CREATE TABLE `t1` (
 
484
  `c1` bigint,
 
485
  `c2` decimal(65,30),
 
486
  `c3` text,
 
487
  `c4` double
 
488
) ENGINE=MyISAM
356
489
drop table t1;
357
490
SET GLOBAL table_open_cache=-1;
358
491
Warnings:
359
 
Error   1292    Truncated incorrect table_open_cache value: '18446744073709551615'
 
492
Warning 1292    Truncated incorrect table_open_cache value: '0'
360
493
SHOW VARIABLES LIKE 'table_open_cache';
361
494
Variable_name   Value
362
 
table_open_cache        100
363
 
SELECT * FROM DATA_DICTIONARY.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
364
 
VARIABLE_NAME   VARIABLE_VALUE
365
 
table_open_cache        100
 
495
table_open_cache        1
366
496
SET GLOBAL table_open_cache=DEFAULT;
367
497
*** Various tests with LC_TIME_NAMES
368
498
*** LC_TIME_NAMES: testing case insensitivity
458
588
@@query_prealloc_size = @test
459
589
1
460
590
End of 4.1 tests
461
 
create temporary table t1 (a int);
 
591
create table t1 (a int);
462
592
select a into @x from t1;
463
593
Warnings:
464
594
Warning 1329    No data - zero rows fetched, selected, or processed
470
600
ERROR HY000: Variable 'warning_count' is a read only variable
471
601
set @@global.error_count=1;
472
602
ERROR HY000: Variable 'error_count' is a read only variable
 
603
set @@max_heap_table_size= 4294967296;
 
604
select @@max_heap_table_size > 0;
 
605
@@max_heap_table_size > 0
 
606
1
 
607
set global max_heap_table_size= 4294967296;
 
608
select @@max_heap_table_size > 0;
 
609
@@max_heap_table_size > 0
 
610
1
 
611
set @@max_heap_table_size= 4294967296;
 
612
select @@max_heap_table_size > 0;
 
613
@@max_heap_table_size > 0
 
614
1
473
615
select @@character_set_system;
474
616
ERROR HY000: Unknown system variable 'character_set_system'
475
617
set global character_set_system = utf8;
480
622
ERROR HY000: Unknown system variable 'character_set_filesystem'
481
623
set character_set_filesystem=utf8;
482
624
ERROR HY000: Unknown system variable 'character_set_filesystem'
483
 
set @sql_big_selects = @@sql_big_selects;
 
625
set @old_sql_big_selects = @@sql_big_selects;
484
626
set @@sql_big_selects = 1;
485
627
show variables like 'sql_big_selects';
486
628
Variable_name   Value
487
629
sql_big_selects ON
488
 
set @@sql_big_selects = @sql_big_selects;
 
630
set @@sql_big_selects = @old_sql_big_selects;
489
631
set @@sql_notes = 0, @@sql_warnings = 0;
490
632
show variables like 'sql_notes';
491
633
Variable_name   Value
500
642
show variables like 'sql_warnings';
501
643
Variable_name   Value
502
644
sql_warnings    ON
 
645
select @@system_time_zone;
 
646
@@system_time_zone
 
647
#
503
648
select @@version, @@version_comment, @@version_compile_machine,
504
649
@@version_compile_os;
505
650
@@version       @@version_comment       @@version_compile_machine       @@version_compile_os
531
676
Variable_name   Value
532
677
hostname        #
533
678
End of 5.0 tests
 
679
set global binlog_cache_size         =@my_binlog_cache_size;
 
680
set global connect_timeout           =@my_connect_timeout;
 
681
set global flush                     =@my_flush;
534
682
set global flush_time                =@my_flush_time;
535
683
ERROR HY000: Unknown system variable 'flush_time'
 
684
set global key_buffer_size           =@my_key_buffer_size;
 
685
set global max_binlog_cache_size     =default;
 
686
set global max_binlog_size           =@my_max_binlog_size;
536
687
set global max_connect_errors        =@my_max_connect_errors;
 
688
set global max_connections           =@my_max_connections;
537
689
set global max_heap_table_size       =@my_max_heap_table_size;
538
690
set global max_join_size             =@my_max_join_size;
539
691
set global max_write_lock_count      =default;
540
 
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
 
692
set global myisam_data_pointer_size  =@my_myisam_data_pointer_size;
 
693
ERROR HY000: Unknown system variable 'myisam_data_pointer_size'
 
694
set global net_buffer_length         =@my_net_buffer_length;
 
695
set global net_write_timeout         =@my_net_write_timeout;
 
696
set global net_read_timeout          =@my_net_read_timeout;
 
697
set global rpl_recovery_rank         =@my_rpl_recovery_rank;
 
698
ERROR HY000: Unknown system variable 'rpl_recovery_rank'
541
699
set global server_id                 =@my_server_id;
 
700
set global slow_launch_time          =@my_slow_launch_time;
542
701
set global storage_engine            =@my_storage_engine;
543
702
set global thread_cache_size         =@my_thread_cache_size;
544
703
ERROR HY000: Unknown system variable 'thread_cache_size'
545
 
set global myisam_sort_buffer_size   =@my_myisam_sort_buffer_size;
546
 
SHOW GLOBAL VARIABLES LIKE 'max_join_size';
547
 
Variable_name   Value
548
 
max_join_size   2147483647
549
 
SHOW LOCAL VARIABLES LIKE 'max_join_size';
550
 
Variable_name   Value
551
 
max_join_size   100
552
 
set GLOBAL bulk_insert_buffer_size=DEFAULT;
553
 
set GLOBAL join_buffer_size=DEFAULT;
554
 
set GLOBAL max_allowed_packet=DEFAULT;
555
 
set GLOBAL max_connect_errors=DEFAULT;
556
 
set GLOBAL max_heap_table_size=DEFAULT;
557
 
set GLOBAL max_join_size=DEFAULT;
558
 
set GLOBAL max_sort_length=DEFAULT;
559
 
set GLOBAL max_write_lock_count=DEFAULT;
560
 
set GLOBAL myisam_sort_buffer_size=DEFAULT;
561
 
set GLOBAL mysql_protocol_buffer_length=DEFAULT;
562
 
set GLOBAL read_buffer_size=DEFAULT;
563
 
set GLOBAL read_rnd_buffer_size=DEFAULT;
564
 
set GLOBAL server_id=DEFAULT;
565
 
set GLOBAL sort_buffer_size=DEFAULT;
566
 
set GLOBAL table_open_cache=DEFAULT;
567
 
set GLOBAL storage_engine= @my_storage_engine;
568
 
set GLOBAL tmp_table_size=DEFAULT;
569
 
set GLOBAL tx_isolation= @my_tx_isolation;
570
 
set SESSION bulk_insert_buffer_size=DEFAULT;
571
 
set SESSION join_buffer_size=DEFAULT;
572
 
set SESSION max_allowed_packet=DEFAULT;
573
 
set SESSION max_heap_table_size=DEFAULT;
574
 
set SESSION max_join_size=DEFAULT;
575
 
set SESSION max_sort_length=DEFAULT;
576
 
set SESSION read_buffer_size=DEFAULT;
577
 
set SESSION read_rnd_buffer_size=DEFAULT;
578
 
set SESSION sort_buffer_size=DEFAULT;
579
 
set SESSION sql_big_selects=DEFAULT;
580
 
set SESSION sql_buffer_result=DEFAULT;
581
 
set SESSION sql_select_limit=DEFAULT;
582
 
set SESSION sql_warnings=DEFAULT;
583
 
set SESSION storage_engine= @my_storage_engine;
584
 
set SESSION tmp_table_size=DEFAULT;
585
 
set SESSION tx_isolation= @my_tx_isolation;
586
 
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
587
 
Variable_name   Value
588
 
table_definition_cache  #
589
 
table_lock_wait_timeout #