~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/r/variables.result

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-11-12 12:26:01 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101112122601-myppfj3tfmlkccuq
Tags: upstream-2010.11.03
ImportĀ upstreamĀ versionĀ 2010.11.03

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1,t2;
2
 
drop schema if exists data_dictionary;
3
 
set @my_myisam_key_cache_size           =@@global.myisam_key_cache_size;
4
2
set @my_max_connect_errors        =@@global.max_connect_errors;
5
3
set @my_max_heap_table_size       =@@global.max_heap_table_size;
6
4
set @my_max_join_size             =@@global.max_join_size;
8
6
set @my_server_id                 =@@global.server_id;
9
7
set @my_storage_engine            =@@global.storage_engine;
10
8
set @my_myisam_sort_buffer_size   =@@global.myisam_sort_buffer_size;
 
9
set @my_tx_isolation      =@@global.tx_isolation;
11
10
set @`test`=1;
12
11
select @test, @`test`, @TEST, @`TEST`, @"teSt";
13
12
@test   @`test` @TEST   @`TEST` @"teSt"
320
319
Warnings:
321
320
Error   1292    Truncated incorrect tmp_table_size value: '100'
322
321
set tx_isolation="READ-COMMITTED";
323
 
create temporary table t1 (a int not null auto_increment, primary key(a));
324
 
create temporary table t2 (a int not null auto_increment, primary key(a));
325
 
insert into t1 values(null),(null),(null);
326
 
insert into t2 values(null),(null),(null);
327
 
set global myisam_key_cache_size=100000;
328
 
Warnings:
329
 
Error   1292    Truncated incorrect key_cache_size value: '100000'
330
 
select @@myisam_key_cache_size;
331
 
@@myisam_key_cache_size
332
 
1048576
333
 
select * from t1 where a=2;
334
 
a
335
 
2
336
 
select * from t2 where a=3;
337
 
a
338
 
3
339
 
check table t1,t2;
340
 
Table   Op      Msg_type        Msg_text
341
 
test.t1 check   status  OK
342
 
test.t2 check   status  OK
343
 
select max(a) +1, max(a) +2 into @xx,@yy from t1;
344
 
drop table t1,t2;
345
 
select @@xxxxxxxxxx;
346
 
ERROR HY000: Unknown system variable 'xxxxxxxxxx'
347
 
select 1;
348
 
1
349
 
1
350
 
select @@session.myisam_key_cache_size;
351
 
ERROR HY000: Variable 'myisam_key_cache_size' is a GLOBAL variable
352
322
set global myisam_max_sort_file_size=4294967296;
353
323
show global variables like 'myisam_max_sort_file_size';
354
324
Variable_name   Value
357
327
VARIABLE_NAME   VARIABLE_VALUE
358
328
myisam_max_sort_file_size       MAX_FILE_SIZE
359
329
set global myisam_max_sort_file_size=default;
360
 
set @@global.global.myisam_key_cache_size= 1;
361
 
ERROR HY000: Unknown system variable 'global'
362
 
set GLOBAL global.myisam_key_cache_size= 1;
363
 
ERROR HY000: Unknown system variable 'global'
364
 
SELECT @@global.global.myisam_key_cache_size;
365
 
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 'myisam_key_cache_size' at line 1
366
 
SELECT @@global.session.myisam_key_cache_size;
367
 
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 'myisam_key_cache_size' at line 1
368
 
SELECT @@global.local.myisam_key_cache_size;
369
 
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 'myisam_key_cache_size' at line 1
370
330
create temporary table t1 (
371
331
c1 int,
372
332
c2 int,
376
336
show create table t1;
377
337
Table   Create Table
378
338
t1      CREATE TEMPORARY TABLE `t1` (
379
 
  `c1` int DEFAULT NULL,
380
 
  `c2` int DEFAULT NULL,
381
 
  `c3` int DEFAULT NULL,
382
 
  `c4` int DEFAULT NULL,
383
 
  `c5` bigint DEFAULT NULL
384
 
) ENGINE=MyISAM
 
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
385
345
drop table t1;
386
346
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
387
347
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
388
348
show create table t1;
389
349
Table   Create Table
390
350
t1      CREATE TEMPORARY TABLE `t1` (
391
 
  `c1` bigint DEFAULT NULL,
392
 
  `c2` decimal(65,30) DEFAULT NULL,
393
 
  `c3` text,
394
 
  `c4` double DEFAULT NULL
395
 
) ENGINE=MyISAM
 
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
396
356
drop table t1;
397
357
SET GLOBAL table_open_cache=-1;
398
358
Warnings:
573
533
End of 5.0 tests
574
534
set global flush_time                =@my_flush_time;
575
535
ERROR HY000: Unknown system variable 'flush_time'
576
 
set global myisam_key_cache_size           =@my_myisam_key_cache_size;
577
536
set global max_connect_errors        =@my_max_connect_errors;
578
537
set global max_heap_table_size       =@my_max_heap_table_size;
579
538
set global max_join_size             =@my_max_join_size;
580
539
set global max_write_lock_count      =default;
581
 
set global myisam_data_pointer_size  =@my_myisam_data_pointer_size;
582
 
ERROR 42000: Incorrect argument type to variable 'myisam_data_pointer_size'
583
540
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
584
541
set global server_id                 =@my_server_id;
585
542
set global storage_engine            =@my_storage_engine;
586
543
set global thread_cache_size         =@my_thread_cache_size;
587
544
ERROR HY000: Unknown system variable 'thread_cache_size'
588
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;
589
586
show global variables where variable_name='table_definition_cache' or Variable_name='table_lock_wait_timeout';
590
587
Variable_name   Value
591
588
table_definition_cache  #