~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/tests/r/innodb.result

  • Committer: patrick crews
  • Date: 2010-10-07 19:35:15 UTC
  • mto: (1819.2.4 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1825.
  • Revision ID: gleebix@gmail.com-20101007193515-jr6y1uz710lzte1o
Initial work on lp bug#656423 - remove use of 'mysql' from test-run tool.  Removed / substituted mtr->dtr mysql->drizzle.  Removed perl errors, but server won't start due to boost error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
commit;
332
332
select * from t1;
333
333
id      val
334
 
commit;
335
334
drop table t1;
336
335
create table t1 (a integer) engine=innodb;
 
336
start transaction;
337
337
rename table t1 to t2;
338
338
create table t1 (b integer) engine=innodb;
339
 
start transaction;
340
339
insert into t1 values (1);
341
340
rollback;
342
341
drop table t1;
359
358
SELECT _userid FROM t1 WHERE _userid='marc@anyware.co.uk';
360
359
_userid
361
360
marc@anyware.co.uk
362
 
COMMIT;
363
361
drop table t1;
364
362
set autocommit=1;
365
363
CREATE TABLE t1 (
424
422
3       4
425
423
4       7
426
424
5       2
427
 
ALTER TABLE t1 ADD co3 INT DEFAULT 42 NOT NULL;
 
425
alter table t1 add co3 int not null;
428
426
select * from t1;
429
427
col1    col2    co3
430
 
1       1       42
431
 
2       3       42
432
 
3       4       42
433
 
4       7       42
434
 
5       2       42
 
428
1       1       0
 
429
2       3       0
 
430
3       4       0
 
431
4       7       0
 
432
5       2       0
435
433
update t1 set col2='9' where col1='2';
436
434
select * from t1;
437
435
col1    col2    co3
438
 
1       1       42
439
 
2       9       42
440
 
3       4       42
441
 
4       7       42
442
 
5       2       42
 
436
1       1       0
 
437
2       9       0
 
438
3       4       0
 
439
4       7       0
 
440
5       2       0
443
441
drop table t1;
444
442
create table t1 (a int not null , b int, primary key (a)) engine = innodb;
445
443
create TEMPORARY table t2 (a int not null , b int, primary key (a)) engine = myisam;
827
825
commit;
828
826
drop database mysqltest;
829
827
show tables from mysqltest;
830
 
ERROR 42000: Unknown schema 'mysqltest'
 
828
ERROR 42000: Unknown database 'mysqltest'
831
829
set autocommit=0;
832
830
create table t1 (a int not null) engine= innodb;
833
831
insert into t1 values(1),(2);
834
 
commit;
835
832
truncate table t1;
836
833
commit;
837
834
truncate table t1;
1397
1394
0
1398
1395
explain select count(*) from t1 where x > -16;
1399
1396
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1400
 
1       SIMPLE  t1      index   PRIMARY PRIMARY 8       NULL    2       Using where; Using index
 
1397
1       SIMPLE  t1      range   PRIMARY PRIMARY 8       NULL    1       Using where; Using index
1401
1398
select count(*) from t1 where x > -16;
1402
1399
count(*)
1403
1400
2
1429
1426
Variable_name   Value
1430
1427
show status like "Innodb_row_lock_time_avg";
1431
1428
Variable_name   Value
1432
 
set @my_innodb_sync_spin_loops = @@global.innodb_sync_spin_loops;
1433
1429
show variables like "innodb_sync_spin_loops";
1434
1430
Variable_name   Value
1435
1431
innodb_sync_spin_loops  30
1445
1441
show variables like "innodb_sync_spin_loops";
1446
1442
Variable_name   Value
1447
1443
innodb_sync_spin_loops  20
1448
 
set @@global.innodb_sync_spin_loops = @my_innodb_sync_spin_loops;
1449
 
set @my_innodb_thread_concurrency = @@global.innodb_thread_concurrency;
1450
1444
show variables like "innodb_thread_concurrency";
1451
1445
Variable_name   Value
1452
1446
innodb_thread_concurrency       0
1453
1447
set global innodb_thread_concurrency=1001;
1454
1448
Warnings:
1455
 
Error   1524    Error setting innodb_thread_concurrency. Given value 1001 (> 1000)
 
1449
Error   1292    Truncated incorrect thread_concurrency value: '1001'
1456
1450
show variables like "innodb_thread_concurrency";
1457
1451
Variable_name   Value
1458
 
innodb_thread_concurrency       0
 
1452
innodb_thread_concurrency       1000
1459
1453
set global innodb_thread_concurrency=0;
1460
1454
show variables like "innodb_thread_concurrency";
1461
1455
Variable_name   Value
1464
1458
show variables like "innodb_thread_concurrency";
1465
1459
Variable_name   Value
1466
1460
innodb_thread_concurrency       16
1467
 
set @@global.innodb_thread_concurrency = @my_innodb_thread_concurrency;
1468
1461
show variables like "innodb_concurrency_tickets";
1469
1462
Variable_name   Value
1470
1463
innodb_concurrency_tickets      500
1474
1467
innodb_concurrency_tickets      1000
1475
1468
set global innodb_concurrency_tickets=0;
1476
1469
Warnings:
1477
 
Error   1524    Error setting innodb_concurrency_tickets. Given value 0 (< 1)
 
1470
Error   1292    Truncated incorrect concurrency_tickets value: '0'
1478
1471
show variables like "innodb_concurrency_tickets";
1479
1472
Variable_name   Value
1480
 
innodb_concurrency_tickets      1000
 
1473
innodb_concurrency_tickets      1
1481
1474
set global innodb_concurrency_tickets=500;
1482
1475
show variables like "innodb_concurrency_tickets";
1483
1476
Variable_name   Value
2543
2536
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
2544
2537
insert into t1 select * from t2;
2545
2538
update t1 set b = (select e from t2 where a = d);
2546
 
commit;
2547
2539
create table t3(d int not null, e int, primary key(d)) engine=innodb
2548
2540
select * from t2;
2549
2541
commit;
2609
2601
commit;
2610
2602
drop table t1, t2, t3, t5, t6, t8, t9;
2611
2603
CREATE TABLE t1 (DB_ROW_ID int) engine=innodb;
2612
 
Got one of the listed errors
 
2604
ERROR HY000: Can't create table 'test.t1' (errno: -1)
2613
2605
CREATE TABLE t1 (
2614
2606
a BIGINT NOT NULL,
2615
2607
PRIMARY KEY  (a)
2648
2640
CREATE TABLE t1 ( a int ) ENGINE=innodb;
2649
2641
BEGIN;
2650
2642
INSERT INTO t1 VALUES (1);
2651
 
COMMIT;
2652
2643
ALTER TABLE t1 ENGINE=innodb;
2653
2644
DROP TABLE t1;
2654
2645
CREATE TABLE t1 (id int PRIMARY KEY, f int NOT NULL, INDEX(f)) ENGINE=InnoDB;