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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-21 15:31:05 UTC
  • mfrom: (1.2.1 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100621153105-lv81twvjdgzvzrre
Tags: 5.1.48-1ubuntu1
* Merge from debian unstable, remaining changes:
  + debian/control:
     * Update maintainer according to spec.
     * Move section from "misc" to "database".
     * Added libmysqlclient16-dev an empty transitional package. 
     * Added mysql-client-core-5.1 package.
     * Suggest mailx for mysql-server-5.1
     * Add mysql-testsuite package so you can run the testsuite seperately.
  + debian/additions/my.cnf:
    * Remove language options. Error message files are located in a different directory in Mysql
      5.0. Setting the language option to use /usr/share/mysql/english breaks Mysql 5.0. Both 5.0
      and 5.1 use a different value that works. (LP: #316974)
  + Add apparmor profile:
    + debian/apparmor-profile: apparmor-profile
    + debian/rules, debian/mysql-server-5.1.files: install apparmor profile
    + debian/mysql-server-5.1.dirs: add etc/apparmor.d/fore-complain
    + debian/mysql-server-5.1.postrm: remove symlink in force-complain/ on purge.
    + debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    + debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    + debian/mysql-server-5.1.postinst: reload apparmor profiles
  * Convert the package from sysvinit to upstart:
    + debian/mysql-server-5.1.mysql.upstart: Add upstart script.
    + debian/mysql-server-5.1.mysql.init: Dropped, unused now with upstart.
    + debian/additions/mysqld_safe_syslog.cnf: Dropped, unused now with upstart.
    + debian/additons/my.cnf: Remove pid declaration and setup error logging to /var/log/mysql since
      we're not piping anything around logger anymore.
    + debian/rules, debian/mysql-server-5.1.logcheck.ignore.{paranoid,worstation},
      debian/mysql-server-5.1.logcheck.ignore.server: : Remove references to mysqld_safe
    + debian/patches/38_scripts_mysqld_safe.sh_signals.dpatch: Dropped
  * Added -fno-strict-aliasing to CFLAGS to get around mysql testsuite build failures.
  * Add Apport hook (LP: #354188):
    + debian/mysql-server-5.1.py: apport package hook
    + debian/rules: Make it installable
  * debian/mysql-server-5.1.mysql-server.logrotate: Check to see if mysql is running before
    running logrotate. (LP: #513135)
  * Make the testsuite installable. (LP: #530752)
    + debian/mysql-server-5.1.files, debian/rules: install apport package hook
  * debian/mysql-server-5.1.preinst: Set mysql user's home directory
    to /nonexistent to protect against having the /var/lib/mysql
    user-writeable. If an attacker can trick mysqld into creating
    dot files in the home directory, he could do .rhost-like attacks
    on the system. (LP: #293258)
  * debian/control: mysql-client-5.1 should depend on mysql-core-client-5.1.
    (LP: #590952) 

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;
 
7
## case #1 - last_null_bit_pos==0 in record_compare without X bit
 
8
stop slave;
 
9
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
10
reset master;
 
11
reset slave;
 
12
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
13
start slave;
 
14
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bigint(20) DEFAULT 0, c3 bigint(20) DEFAULT 0, c4 varchar(1) DEFAULT '', c5 bigint(20) DEFAULT 0, c6 bigint(20) DEFAULT 0, c7 bigint(20) DEFAULT 0, c8 bigint(20) DEFAULT 0) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
15
INSERT INTO t1 ( c5, c6 ) VALUES ( 1   , 35 );
 
16
INSERT INTO t1 ( c5, c6 ) VALUES ( NULL, 35 );
 
17
UPDATE t1 SET c5 = 'a';
 
18
Comparing tables master:test.t1 and slave:test.t1
 
19
DROP TABLE t1;
 
20
## case #1.1 - last_null_bit_pos==0 in record_compare with X bit
 
21
##             (1 column less and no varchar)
 
22
stop slave;
 
23
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
24
reset master;
 
25
reset slave;
 
26
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
27
start slave;
 
28
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bigint(20) DEFAULT 0, c3 bigint(20) DEFAULT 0, c4 bigint(20) DEFAULT 0, c5 bigint(20) DEFAULT 0, c6 bigint(20) DEFAULT 0, c7 bigint(20) DEFAULT 0) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
29
INSERT INTO t1 ( c5, c6 ) VALUES ( 1   , 35 );
 
30
INSERT INTO t1 ( c5, c6 ) VALUES ( NULL, 35 );
 
31
UPDATE t1 SET c5 = 'a';
 
32
Comparing tables master:test.t1 and slave:test.t1
 
33
DROP TABLE t1;
 
34
## case #2 - X bit is wrongly set.
 
35
stop slave;
 
36
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
37
reset master;
 
38
reset slave;
 
39
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
40
start slave;
 
41
CREATE TABLE t1 (c1 int, c2 varchar(1) default '') ENGINE=MyISAM DEFAULT CHARSET= latin1;
 
42
INSERT INTO t1(c1) VALUES (10);
 
43
INSERT INTO t1(c1) VALUES (NULL);
 
44
UPDATE t1 SET c1= 0;
 
45
Comparing tables master:test.t1 and slave:test.t1
 
46
DROP TABLE t1;
 
47
## coverage purposes - Field_bits 
 
48
##                     1 X bit + 2 Null bits + 5 bits => last_null_bit_pos==0
 
49
stop slave;
 
50
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
51
reset master;
 
52
reset slave;
 
53
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
54
start slave;
 
55
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bit(5)) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
56
INSERT INTO t1(c1,c2) VALUES (10, b'1');
 
57
INSERT INTO t1(c1,c2) VALUES (NULL, b'1');
 
58
UPDATE t1 SET c1= 0;
 
59
Comparing tables master:test.t1 and slave:test.t1
 
60
DROP TABLE t1;