~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/variables.result

  • Committer: Monty Taylor
  • Date: 2010-04-22 02:46:23 UTC
  • mto: (1497.3.4 enable-dtrace)
  • mto: This revision was merged to the branch mainline in revision 1527.
  • Revision ID: mordred@inaugust.com-20100422024623-4urw8fi8eraci08p
Don't overwrite the pandora_vc_revinfo file if we don't have new
authoratative information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1,t2;
 
2
set @my_myisam_key_cache_size           =@@global.myisam_key_cache_size;
 
3
set @my_max_connect_errors        =@@global.max_connect_errors;
2
4
set @my_max_heap_table_size       =@@global.max_heap_table_size;
3
5
set @my_max_join_size             =@@global.max_join_size;
4
6
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
195
197
mysql_protocol_buffer_length    1024
196
198
set global mysql_protocol_buffer_length=1;
197
199
Warnings:
198
 
Error   1524    Error setting mysql_protocol_buffer_length. Given value 1 (< 1024)
 
200
Error   1292    Truncated incorrect buffer_length value: '1'
199
201
show variables like 'mysql_protocol_buffer_length';
200
202
Variable_name   Value
201
203
mysql_protocol_buffer_length    1024
202
204
set global mysql_protocol_buffer_length=2000000000;
203
205
Warnings:
204
 
Error   1524    Error setting mysql_protocol_buffer_length. Given value 2000000000 (> 1048576)
 
206
Error   1292    Truncated incorrect buffer_length value: '2000000000'
205
207
show variables like 'mysql_protocol_buffer_length';
206
208
Variable_name   Value
207
 
mysql_protocol_buffer_length    1024
 
209
mysql_protocol_buffer_length    1048576
208
210
show variables like '%alloc%';
209
211
Variable_name   Value
210
212
innodb_use_sys_malloc   ON
285
287
set max_allowed_packet=100;
286
288
Warnings:
287
289
Error   1292    Truncated incorrect max_allowed_packet value: '100'
 
290
set global max_connect_errors=100;
288
291
set max_heap_table_size=100;
289
292
Warnings:
290
293
Error   1292    Truncated incorrect max_heap_table_size value: '100'
293
296
set global max_write_lock_count=100;
294
297
set global myisam_sort_buffer_size=100;
295
298
Warnings:
296
 
Error   1524    Error setting myisam_sort_buffer_size. Given value 100 (< 1024)
 
299
Error   1292    Truncated incorrect sort_buffer_size value: '100'
297
300
set global mysql_protocol_buffer_length=100;
298
301
Warnings:
299
 
Error   1524    Error setting mysql_protocol_buffer_length. Given value 100 (< 1024)
 
302
Error   1292    Truncated incorrect buffer_length value: '100'
300
303
set read_buffer_size=100;
301
304
Warnings:
302
305
Error   1292    Truncated incorrect read_buffer_size value: '100'
317
320
Warnings:
318
321
Error   1292    Truncated incorrect tmp_table_size value: '100'
319
322
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
320
352
set global myisam_max_sort_file_size=4294967296;
321
353
show global variables like 'myisam_max_sort_file_size';
322
354
Variable_name   Value
325
357
VARIABLE_NAME   VARIABLE_VALUE
326
358
myisam_max_sort_file_size       MAX_FILE_SIZE
327
359
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
328
370
create temporary table t1 (
329
371
c1 int,
330
372
c2 int,
334
376
show create table t1;
335
377
Table   Create Table
336
378
t1      CREATE TEMPORARY TABLE `t1` (
337
 
  `c1` INT DEFAULT NULL,
338
 
  `c2` INT DEFAULT NULL,
339
 
  `c3` INT DEFAULT NULL,
340
 
  `c4` INT DEFAULT NULL,
341
 
  `c5` BIGINT DEFAULT NULL
342
 
) ENGINE=MyISAM COLLATE = utf8_general_ci
 
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
343
385
drop table t1;
344
386
set @arg00= 8, @arg01= 8.8, @arg02= 'a string', @arg03= 0.2e0;
345
387
create temporary table t1 as select @arg00 as c1, @arg01 as c2, @arg02 as c3, @arg03 as c4;
346
388
show create table t1;
347
389
Table   Create Table
348
390
t1      CREATE TEMPORARY TABLE `t1` (
349
 
  `c1` BIGINT DEFAULT NULL,
350
 
  `c2` DECIMAL(65,30) DEFAULT NULL,
351
 
  `c3` TEXT COLLATE utf8_general_ci,
352
 
  `c4` DOUBLE DEFAULT NULL
353
 
) ENGINE=MyISAM COLLATE = utf8_general_ci
 
391
  `c1` bigint DEFAULT NULL,
 
392
  `c2` decimal(65,30) DEFAULT NULL,
 
393
  `c3` text,
 
394
  `c4` double DEFAULT NULL
 
395
) ENGINE=MyISAM
354
396
drop table t1;
355
397
SET GLOBAL table_open_cache=-1;
356
398
Warnings:
531
573
End of 5.0 tests
532
574
set global flush_time                =@my_flush_time;
533
575
ERROR HY000: Unknown system variable 'flush_time'
 
576
set global myisam_key_cache_size           =@my_myisam_key_cache_size;
 
577
set global max_connect_errors        =@my_max_connect_errors;
534
578
set global max_heap_table_size       =@my_max_heap_table_size;
535
579
set global max_join_size             =@my_max_join_size;
536
580
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'
537
583
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
538
584
set global server_id                 =@my_server_id;
539
585
set global storage_engine            =@my_storage_engine;
549
595
set GLOBAL bulk_insert_buffer_size=DEFAULT;
550
596
set GLOBAL join_buffer_size=DEFAULT;
551
597
set GLOBAL max_allowed_packet=DEFAULT;
 
598
set GLOBAL max_connect_errors=DEFAULT;
552
599
set GLOBAL max_heap_table_size=DEFAULT;
553
600
set GLOBAL max_join_size=DEFAULT;
554
601
set GLOBAL max_sort_length=DEFAULT;