mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
after merge fixes
This commit is contained in:
@@ -400,27 +400,26 @@ CREATE TABLE t1 ( a int );
|
||||
CREATE TABLE t2 ( a int );
|
||||
DELETE t1 FROM t1, t2 AS t3;
|
||||
DELETE t4 FROM t1, t1 AS t4;
|
||||
Not unique table/alias: 't4'
|
||||
DELETE t3 FROM t1 AS t3, t1 AS t4;
|
||||
Not unique table/alias: 't3'
|
||||
DELETE t1 FROM t1 AS t3, t2 AS t4;
|
||||
ERROR 42000: Not unique table/alias: 't1'
|
||||
INSERT INTO t1 values (1),(2);
|
||||
INSERT INTO t2 values (1),(2);
|
||||
DELETE t1 FROM t1 AS t2, t2 AS t1 where t1.a=t2.a and t1.a=1;
|
||||
SELECT * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
SELECT * from t2;
|
||||
a
|
||||
1
|
||||
2
|
||||
DELETE t2 FROM t1 AS t2, t2 AS t1 where t1.a=t2.a and t1.a=2;
|
||||
SELECT * from t1;
|
||||
a
|
||||
2
|
||||
1
|
||||
SELECT * from t2;
|
||||
a
|
||||
1
|
||||
2
|
||||
DROP TABLE t1,t2;
|
||||
create table `t1` (`p_id` int(10) unsigned NOT NULL auto_increment, `p_code` varchar(20) NOT NULL default '', `p_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`p_id`) );
|
||||
create table `t2` (`c2_id` int(10) unsigned NULL auto_increment, `c2_p_id` int(10) unsigned NOT NULL default '0', `c2_note` text NOT NULL, `c2_active` tinyint(1) unsigned NOT NULL default '1', PRIMARY KEY (`c2_id`), KEY `c2_p_id` (`c2_p_id`) );
|
||||
|
||||
Reference in New Issue
Block a user