~james-page/ubuntu/precise/mysql-5.5/misc-fixes

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/r/binlog_unsafe.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-06-11 07:34:33 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120611073433-l9za2ni4ipp848y3
Tags: 5.5.24-0ubuntu0.12.04.1
* SECURITY UPDATE: Update to 5.5.24 to fix security issues (LP: #1011371)
  - http://dev.mysql.com/doc/refman/5.5/en/news-5-5-24.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
2679
2679
INSERT INTO replace_table values (1,1),(2,2);
2680
2680
CREATE TABLE update_table (a INT, b INT, PRIMARY KEY(a));
2681
2681
INSERT INTO update_table values (1,1),(2,2);
 
2682
CREATE TABLE insert_2_keys (a INT UNIQUE KEY, b INT UNIQUE KEY) ENGINE = InnoDB;
 
2683
INSERT INTO insert_2_keys values (1, 1);
2682
2684
INSERT IGNORE INTO insert_table SELECT * FROM filler_table;
2683
2685
Warnings:
2684
2686
Note    1592    Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. INSERT IGNORE... SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are ignored. This order cannot be predicted and may differ on master and the slave.
2702
2704
CREATE TEMPORARY TABLE temp1 (a INT, b INT, PRIMARY KEY(b)) REPLACE SELECT * FROM filler_table;
2703
2705
Warnings:
2704
2706
Note    1592    Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. CREATE... REPLACE SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are replaced. This order cannot be predicted and may differ on master and the slave.
 
2707
INSERT INTO insert_2_keys VALUES (1, 2) 
 
2708
ON DUPLICATE KEY UPDATE a=VALUES(a)+10, b=VALUES(b)+10;
 
2709
Warnings:
 
2710
Note    1592    Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. INSERT... ON DUPLICATE KEY UPDATE  on a table with more than one UNIQUE KEY is unsafe
2705
2711
DROP TABLE filler_table;
2706
2712
DROP TABLE insert_table;
2707
2713
DROP TABLE update_table;
2708
2714
DROP TABLE replace_table;
2709
2715
DROP TABLE create_ignore_test;
2710
2716
DROP TABLE create_replace_test;
 
2717
DROP TABLE insert_2_keys;
2711
2718
"End of tests"