~maria-captains/maria/mysql-6.0-backup

« back to all changes in this revision

Viewing changes to mysql-test/r/multi_update.result

  • Committer: Thava Alagu
  • Date: 2010-03-11 19:18:17 UTC
  • mfrom: (3719.14.62 mysql-6.0-codebase)
  • Revision ID: thavamuni.alagu@sun.com-20100311191817-5nigmq884xo9fuut
Merge from mysql-6.0-codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
634
634
count(*)
635
635
1
636
636
drop table t1, t2, t3;
 
637
#
 
638
# Bug#49534: multitable IGNORE update with sql_safe_updates error
 
639
# causes debug assertion
 
640
#
 
641
CREATE TABLE t1( a INT, KEY( a ) );
 
642
INSERT INTO t1 VALUES (1), (2), (3);
 
643
SET SESSION sql_safe_updates = 1;
 
644
# Must not cause failed assertion
 
645
UPDATE IGNORE t1, t1 t1a SET t1.a = 1 WHERE t1a.a = 1;
 
646
ERROR HY000: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
 
647
DROP TABLE t1;
637
648
end of tests