mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed bug in error handling of CREATE ... SELECT
More tests cases After merge fixes
This commit is contained in:
@@ -110,6 +110,19 @@ drop table if exists t2;
|
||||
create table t2 (b int) select a as b, a+1 as b from t1;
|
||||
drop table if exists t1,t2;
|
||||
|
||||
#
|
||||
# Test CREATE ... SELECT when insert fails
|
||||
#
|
||||
|
||||
CREATE TABLE t1 (a int not null);
|
||||
INSERT INTO t1 values (1),(2),(1);
|
||||
--error 1062
|
||||
CREATE TABLE t2 (primary key(a)) SELECT * FROM t1;
|
||||
--error 1146
|
||||
SELECT * from t2;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
|
||||
#
|
||||
# Test of primary key with 32 index
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user