~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/variables.result

  • Committer: Jay Pipes
  • Date: 2009-02-04 15:44:25 UTC
  • mfrom: (829 drizzle)
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090204154425-th8xfk2ujz2y8xwg
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
set @my_flush                     =@@global.flush;
4
4
set @my_key_buffer_size           =@@global.key_buffer_size;
5
5
set @my_max_connect_errors        =@@global.max_connect_errors;
 
6
set @my_max_connections           =@@global.max_connections;
6
7
set @my_max_heap_table_size       =@@global.max_heap_table_size;
7
8
set @my_max_join_size             =@@global.max_join_size;
8
9
set @my_net_buffer_length         =@@global.net_buffer_length;
9
10
set @my_net_write_timeout         =@@global.net_write_timeout;
10
11
set @my_net_read_timeout          =@@global.net_read_timeout;
11
12
set @my_server_id                 =@@global.server_id;
 
13
set @my_slow_launch_time          =@@global.slow_launch_time;
12
14
set @my_storage_engine            =@@global.storage_engine;
13
15
set @`test`=1;
14
16
select @test, @`test`, @TEST, @`TEST`, @"teSt";
238
240
NET_WRITE_TIMEOUT       500
239
241
set net_buffer_length=1;
240
242
Warnings:
241
 
Error   1292    Truncated incorrect net_buffer_length value: '1'
 
243
Warning 1292    Truncated incorrect net_buffer_length value: '1'
242
244
show variables like 'net_buffer_length';
243
245
Variable_name   Value
244
246
net_buffer_length       1024
247
249
NET_BUFFER_LENGTH       1024
248
250
set net_buffer_length=2000000000;
249
251
Warnings:
250
 
Error   1292    Truncated incorrect net_buffer_length value: '2000000000'
 
252
Warning 1292    Truncated incorrect net_buffer_length value: '2000000000'
251
253
show variables like 'net_buffer_length';
252
254
Variable_name   Value
253
255
net_buffer_length       1048576
256
258
NET_BUFFER_LENGTH       1048576
257
259
show variables like '%alloc%';
258
260
Variable_name   Value
259
 
innodb_use_sys_malloc   ON
260
261
query_alloc_block_size  8192
261
262
query_prealloc_size     8192
262
263
range_alloc_block_size  
264
265
transaction_prealloc_size       4096
265
266
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
266
267
VARIABLE_NAME   VARIABLE_VALUE
267
 
INNODB_USE_SYS_MALLOC   ON
268
268
QUERY_ALLOC_BLOCK_SIZE  8192
269
269
QUERY_PREALLOC_SIZE     8192
270
270
RANGE_ALLOC_BLOCK_SIZE  
280
280
17408
281
281
show variables like '%alloc%';
282
282
Variable_name   Value
283
 
innodb_use_sys_malloc   ON
284
283
query_alloc_block_size  17408
285
284
query_prealloc_size     18432
286
285
range_alloc_block_size  
288
287
transaction_prealloc_size       20480
289
288
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
290
289
VARIABLE_NAME   VARIABLE_VALUE
291
 
INNODB_USE_SYS_MALLOC   ON
292
290
QUERY_ALLOC_BLOCK_SIZE  17408
293
291
QUERY_PREALLOC_SIZE     18432
294
292
RANGE_ALLOC_BLOCK_SIZE  
299
297
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
300
298
show variables like '%alloc%';
301
299
Variable_name   Value
302
 
innodb_use_sys_malloc   ON
303
300
query_alloc_block_size  8192
304
301
query_prealloc_size     8192
305
302
range_alloc_block_size  
307
304
transaction_prealloc_size       4096
308
305
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
309
306
VARIABLE_NAME   VARIABLE_VALUE
310
 
INNODB_USE_SYS_MALLOC   ON
311
307
QUERY_ALLOC_BLOCK_SIZE  8192
312
308
QUERY_PREALLOC_SIZE     8192
313
309
RANGE_ALLOC_BLOCK_SIZE  
355
351
select @@delay_key_write;
356
352
@@delay_key_write
357
353
ON
 
354
set interactive_timeout=100;
358
355
set join_buffer_size=100;
359
356
Warnings:
360
 
Error   1292    Truncated incorrect join_buffer_size value: '100'
 
357
Warning 1292    Truncated incorrect join_buffer_size value: '100'
361
358
set last_insert_id=1;
 
359
set global local_infile=1;
362
360
set max_allowed_packet=100;
363
361
Warnings:
364
 
Error   1292    Truncated incorrect max_allowed_packet value: '100'
 
362
Warning 1292    Truncated incorrect max_allowed_packet value: '100'
365
363
set global max_connect_errors=100;
 
364
set global max_connections=100;
366
365
set max_heap_table_size=100;
367
366
Warnings:
368
 
Error   1292    Truncated incorrect max_heap_table_size value: '100'
 
367
Warning 1292    Truncated incorrect max_heap_table_size value: '100'
369
368
set max_join_size=100;
370
369
set max_sort_length=100;
371
370
set max_tmp_tables=100;
372
371
set global max_write_lock_count=100;
373
372
set global myisam_sort_buffer_size=100;
374
373
Warnings:
375
 
Error   1292    Truncated incorrect sort_buffer_size value: '100'
 
374
Warning 1292    Truncated incorrect sort_buffer_size value: '100'
376
375
set net_buffer_length=100;
377
376
Warnings:
378
 
Error   1292    Truncated incorrect net_buffer_length value: '100'
 
377
Warning 1292    Truncated incorrect net_buffer_length value: '100'
379
378
set net_read_timeout=100;
380
379
set net_write_timeout=100;
381
380
set read_buffer_size=100;
382
381
Warnings:
383
 
Error   1292    Truncated incorrect read_buffer_size value: '100'
 
382
Warning 1292    Truncated incorrect read_buffer_size value: '100'
384
383
set read_rnd_buffer_size=100;
385
384
set global server_id=100;
 
385
set global slow_launch_time=100;
386
386
set sort_buffer_size=100;
387
387
Warnings:
388
 
Error   1292    Truncated incorrect sort_buffer_size value: '100'
 
388
Warning 1292    Truncated incorrect sort_buffer_size value: '100'
389
389
set sql_big_selects=1;
390
390
set sql_buffer_result=1;
391
391
set sql_safe_updates=1;
397
397
set timestamp=1, timestamp=default;
398
398
set tmp_table_size=100;
399
399
Warnings:
400
 
Error   1292    Truncated incorrect tmp_table_size value: '100'
 
400
Warning 1292    Truncated incorrect tmp_table_size value: '100'
401
401
set tx_isolation="READ-COMMITTED";
402
402
set wait_timeout=100;
403
403
create table t1 (a int not null auto_increment, primary key(a));
427
427
1
428
428
select @@session.key_buffer_size;
429
429
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable
 
430
set init_connect = NULL;
 
431
ERROR HY000: Variable 'init_connect' is a GLOBAL variable and should be set with SET GLOBAL
 
432
set global init_connect = NULL;
430
433
set global myisam_max_sort_file_size=4294967296;
431
434
show global variables like 'myisam_max_sort_file_size';
432
435
Variable_name   Value
454
457
show create table t1;
455
458
Table   Create Table
456
459
t1      CREATE TABLE `t1` (
457
 
  `c1` int DEFAULT NULL,
458
 
  `c2` int DEFAULT NULL,
459
 
  `c3` int DEFAULT NULL,
460
 
  `c4` int DEFAULT NULL,
461
 
  `c5` bigint DEFAULT NULL
 
460
  `c1` int,
 
461
  `c2` int,
 
462
  `c3` int,
 
463
  `c4` int,
 
464
  `c5` bigint
462
465
) ENGINE=MyISAM
463
466
drop table t1;
464
467
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
466
469
show create table t1;
467
470
Table   Create Table
468
471
t1      CREATE TABLE `t1` (
469
 
  `c1` bigint DEFAULT NULL,
470
 
  `c2` decimal(65,30) DEFAULT NULL,
 
472
  `c1` bigint,
 
473
  `c2` decimal(65,30),
471
474
  `c3` text,
472
 
  `c4` double DEFAULT NULL
 
475
  `c4` double
473
476
) ENGINE=MyISAM
474
477
drop table t1;
475
478
SET GLOBAL table_open_cache=-1;
476
479
Warnings:
477
 
Error   1292    Truncated incorrect table_open_cache value: '18446744073709551615'
 
480
Warning 1292    Truncated incorrect table_open_cache value: '0'
478
481
SHOW VARIABLES LIKE 'table_open_cache';
479
482
Variable_name   Value
480
 
table_open_cache        100
481
 
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
482
 
VARIABLE_NAME   VARIABLE_VALUE
483
 
TABLE_OPEN_CACHE        100
 
483
table_open_cache        1
484
484
SET GLOBAL table_open_cache=DEFAULT;
485
485
*** Various tests with LC_TIME_NAMES
486
486
*** LC_TIME_NAMES: testing case insensitivity
630
630
show variables like 'sql_warnings';
631
631
Variable_name   Value
632
632
sql_warnings    ON
 
633
select @@system_time_zone;
 
634
@@system_time_zone
 
635
#
633
636
select @@version, @@version_comment, @@version_compile_machine,
634
637
@@version_compile_os;
635
638
@@version       @@version_comment       @@version_compile_machine       @@version_compile_os
667
670
ERROR HY000: Unknown system variable 'flush_time'
668
671
set global key_buffer_size           =@my_key_buffer_size;
669
672
set global max_connect_errors        =@my_max_connect_errors;
 
673
set global max_connections           =@my_max_connections;
670
674
set global max_heap_table_size       =@my_max_heap_table_size;
671
675
set global max_join_size             =@my_max_join_size;
672
676
set global max_write_lock_count      =default;
676
680
set global net_write_timeout         =@my_net_write_timeout;
677
681
set global net_read_timeout          =@my_net_read_timeout;
678
682
set global server_id                 =@my_server_id;
 
683
set global slow_launch_time          =@my_slow_launch_time;
679
684
set global storage_engine            =@my_storage_engine;
680
685
set global thread_cache_size         =@my_thread_cache_size;
681
686
ERROR HY000: Unknown system variable 'thread_cache_size'