~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/t/binlog_unsafe.test

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Mathias Gug
  • Date: 2009-08-05 11:40:21 UTC
  • mfrom: (1.1.3 upstream) (0.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20090805114021-59bj0bgfm2ufllbk
Tags: 5.1.37-1ubuntu1
[ Mathias Gug ]
* Merge from debian unstable and 5.0, remaining changes:
  - debian/control:
    + Properly upgrade libmysqlclient16-dev packages to
    libmysqlclient-dev:
      * Make libmysqlclient16-dev a transitional package depending on
        libmysqlclient-dev.
      * Make libmysqlclient-dev replace libmysqlclient16-dev.
    + Don't provide a libmysqlclient15-dev package as long as there are
      packages still build-depending on libmysqlclient15-dev and
      mysql-dsfg-5.0 is in the archive.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in
      a full MTA on all installs of mysql-server. (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - 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/force-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.
  - debian/additions/my.cnf: remove language option. Error message files are
    located in a different directory in MySQL 5.0. Setting the language
    option to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1
    use a default value that works. (LP: #316974)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.1.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package.
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
* debian/libmysqlclient16.symbols.amd64: remove amd64 symbols as it has
  not been correctly generated in Debian.
* Add Apport hook: (LP: #354188)
  - debian/mysql-server-5.1.py: apport package hook.
  - debian/mysql-server-5.1.files, debian/rules: install apport package
    hook.
* debian/additions/my.cnf: 
  - drop old_password option.
  - fix commented logging options to use general_log and general_log_file.
* Dropped - accepted in Debian:
  - debian/mysql-server-5.1.config:
    + ask for MySQL root password at priority high instead of medium so
      that the password prompt is seen on a default install. (LP: #319843)
    + don't ask for root password when upgrading from a 5.0 install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
# BUG#34732: mysqlbinlog does not print default values for auto_increment variables
47
47
# BUG#34768: nondeterministic INSERT using LIMIT logged in stmt mode if binlog_format=mixed
48
48
# BUG#41980, SBL, INSERT .. SELECT .. LIMIT = ERROR, even when @@SQL_LOG_BIN is 0
 
49
# BUG#42640: mysqld crashes when unsafe statements are executed (STRICT_TRANS_TABLES mode)
49
50
#
50
51
# ==== Related test cases ====
51
52
#
288
289
CREATE TABLE t2(i INT PRIMARY KEY);
289
290
CREATE TABLE t3(i INT, ch CHAR(50));
290
291
 
291
 
--echo "Should issue message Statement is not safe to log in statement format."
 
292
--echo "Should issue message Statement may not be safe to log in statement format."
292
293
INSERT INTO t1 SELECT * FROM t2 LIMIT 1;
293
294
 
294
295
DELIMITER |;
301
302
  RETURN 0;
302
303
END|
303
304
DELIMITER ;|
304
 
--echo "Should issue message Statement is not safe to log in statement format only once"
 
305
--echo "Should issue message Statement may not be safe to log in statement format only once"
305
306
INSERT INTO t3 VALUES(func6(), UUID());
306
307
 
307
308
--echo "Check whether SET @@SQL_LOG_BIN = 0/1 doesn't work in substatements"
369
370
DROP TRIGGER  trig;
370
371
DROP TABLE t1, t2, t3, trigger_table;
371
372
set @@SESSION.SQL_LOG_BIN = @save_log_bin;
 
373
 
 
374
#
 
375
# For BUG#42640: mysqld crashes when unsafe statements are executed (STRICT_TRANS_TABLES mode)
 
376
#
 
377
SET @save_sql_mode = @@SESSION.SQL_MODE;
 
378
SET @@SESSION.SQL_MODE = STRICT_ALL_TABLES;
 
379
 
 
380
CREATE TABLE t1(i INT PRIMARY KEY);
 
381
CREATE TABLE t2(i INT PRIMARY KEY);
 
382
 
 
383
INSERT INTO t1 SELECT * FROM t2 LIMIT 1;
 
384
INSERT INTO t1 VALUES(@@global.sync_binlog);
 
385
 
 
386
UPDATE t1 SET i = 999 LIMIT 1;
 
387
DELETE FROM t1 LIMIT 1;
 
388
 
 
389
DROP TABLE t1, t2;
 
390
SET @@SESSION.SQL_MODE = @save_sql_mode;
372
391
--echo "End of tests"