~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_auto_increment.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
stop slave;
2
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
3
 
reset master;
4
 
reset slave;
5
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
6
 
start slave;
 
1
include/master-slave.inc
 
2
[connection master]
7
3
create table t1 (a int not null auto_increment,b int, primary key (a)) engine=myisam auto_increment=3;
8
4
insert into t1 values (NULL,1),(NULL,2),(NULL,3);
9
5
select * from t1;
244
240
  PRIMARY KEY (`id`)
245
241
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
246
242
drop table t1;
247
 
stop slave;
248
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
249
 
reset master;
250
 
reset slave;
251
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
252
 
start slave;
 
243
include/rpl_reset.inc
253
244
DROP TABLE IF EXISTS t1;
254
245
DROP TABLE IF EXISTS t2;
255
246
CREATE TABLE t1 (id INT NOT NULL AUTO_INCREMENT PRIMARY KEY) ENGINE=innodb;
303
294
INSERT INTO t1 VALUES(4);
304
295
INSERT INTO t2 VALUES(4);
305
296
FLUSH LOGS;
306
 
Comparing tables master:test.t1 and slave:test.t1
307
 
Comparing tables master:test.t2 and slave:test.t2
 
297
include/diff_tables.inc [master:t1, slave:t1]
 
298
include/diff_tables.inc [master:t2, slave:t2]
308
299
DROP TABLE t1;
309
300
DROP TABLE t2;
310
 
Comparing tables master:test.t1 and slave:test.t1
311
 
Comparing tables master:test.t2 and slave:test.t2
 
301
include/diff_tables.inc [master:t1, slave:t1]
 
302
include/diff_tables.inc [master:t2, slave:t2]
312
303
DROP TABLE t1;
313
304
DROP TABLE t2;
314
305
SET SQL_MODE='';
 
306
CREATE TABLE t1 (id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, data INT) ENGINE=innodb;
 
307
BEGIN;
 
308
# Set sql_mode with NO_AUTO_VALUE_ON_ZERO for allowing
 
309
# zero to fill the auto_increment field.
 
310
SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
 
311
INSERT INTO t1(id,data) VALUES(0,2);
 
312
# Resetting sql_mode without NO_AUTO_VALUE_ON_ZERO to
 
313
# affect the execution of the transaction on slave.
 
314
SET SQL_MODE=0;
 
315
COMMIT;
 
316
SELECT * FROM t1;
 
317
id      data
 
318
0       2
 
319
SELECT * FROM t1;
 
320
id      data
 
321
0       2
 
322
DROP TABLE t1;
 
323
include/rpl_end.inc