mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.7 into 10.8
This commit is contained in:
@ -6,7 +6,18 @@ drop table if exists t1, t2;
|
||||
CREATE TABLE t1 (a int);
|
||||
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
|
||||
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE v1;
|
||||
ERROR 42000: Can't open table
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# MDEV-28599 EXCHANGE PARTITION on view causes ER_CHECK_NO_SUCH_TABLE instead of ER_WRONG_OBJECT
|
||||
#
|
||||
CREATE TABLE t1 (a int)
|
||||
PARTITION BY HASH (a)
|
||||
PARTITIONS 2;
|
||||
CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1;
|
||||
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE v1;
|
||||
ERROR HY000: 'test.v1' is not of type 'BASE TABLE'
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
|
Reference in New Issue
Block a user