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

« back to all changes in this revision

Viewing changes to mysql-test/extra/rpl_tests/rpl_row_basic.test

  • 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:
259
259
query_vertical SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
260
260
sync_slave_with_master;
261
261
set @@global.slave_exec_mode= default;
262
 
let $last_error = query_get_value("SHOW SLAVE STATUS", Last_SQL_Error, 1);
263
 
disable_query_log;
264
 
eval SELECT "$last_error" AS Last_SQL_Error;
265
 
enable_query_log;
 
262
source include/check_slave_is_running.inc;
266
263
query_vertical SELECT COUNT(*) FROM t1 ORDER BY c1,c2;
267
264
 
268
265
# BUG#37076: TIMESTAMP/DATETIME values are not replicated correctly
376
373
INSERT INTO t3 VALUES (2, repeat(_utf8'a', 128), 2);
377
374
 
378
375
connection slave;
379
 
source include/wait_for_slave_sql_to_stop.inc;
380
 
let $last_error = query_get_value("SHOW SLAVE STATUS", Last_SQL_Error, 1);
381
 
disable_query_log;
382
 
eval SELECT "$last_error" AS Last_SQL_Error;
383
 
enable_query_log;
 
376
# 1535 = ER_BINLOG_ROW_WRONG_TABLE_DEF 
 
377
--let $slave_sql_errno= 1535 
 
378
--let $show_slave_sql_error= 1
 
379
--source include/wait_for_slave_sql_error.inc
384
380
connection master;
385
381
RESET MASTER;
386
382
connection slave;
405
401
INSERT INTO t5 VALUES (2, repeat(_utf8'a', 255), 2);
406
402
 
407
403
connection slave;
408
 
source include/wait_for_slave_sql_to_stop.inc;
409
 
let $last_error = query_get_value("SHOW SLAVE STATUS", Last_SQL_Error, 1);
410
 
disable_query_log;
411
 
eval SELECT "$last_error" AS Last_SQL_Error;
412
 
enable_query_log;
 
404
# 1535 = ER_BINLOG_ROW_WRONG_TABLE_DEF 
 
405
--let $slave_sql_errno= 1535 
 
406
--let $show_slave_sql_error= 1
 
407
--source include/wait_for_slave_sql_error.inc
413
408
connection master;
414
409
RESET MASTER;
415
410
connection slave;
424
419
INSERT INTO t6 VALUES (2, repeat(_utf8'a', 255), 2);
425
420
 
426
421
connection slave;
427
 
source include/wait_for_slave_sql_to_stop.inc;
428
 
let $last_error = query_get_value("SHOW SLAVE STATUS", Last_SQL_Error, 1);
429
 
disable_query_log;
430
 
eval SELECT "$last_error" AS Last_SQL_Error;
431
 
enable_query_log;
 
422
# 1535 = ER_BINLOG_ROW_WRONG_TABLE_DEF 
 
423
--let $slave_sql_errno= 1535 
 
424
--let $show_slave_sql_error= 1
 
425
--source include/wait_for_slave_sql_error.inc
432
426
connection master;
433
427
RESET MASTER;
434
428
connection slave;