~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/variables.result

  • Committer: Monty Taylor
  • Date: 2009-02-08 10:59:43 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mordred@inaugust.com-20090208105943-e30tagctq2nrghxi
Renamed my_net_* to drizzleclient_net_* to help with namespace issues.

Show diffs side-by-side

added added

removed removed

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