mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-14684 Assertion `table' failed in mysql_delete
SQL: disable TRUNCATE table_name TO statement for VIEWs
This commit is contained in:
@ -43,4 +43,16 @@ partition p0 history,
|
||||
partition pn current);
|
||||
truncate table t to system_time current_timestamp;
|
||||
ERROR 42000: The used command is not allowed with this MariaDB version
|
||||
create or replace table t (i int) with system versioning;
|
||||
truncate t to system_time now();
|
||||
create or replace view v as select * from t;
|
||||
truncate v to system_time now();
|
||||
ERROR HY000: TRUNCATE table_name TO doesn't work with VIEWs
|
||||
create or replace table t (i int);
|
||||
truncate t to system_time now();
|
||||
ERROR HY000: System versioning required: t
|
||||
create or replace view v as select * from t;
|
||||
truncate v to system_time now();
|
||||
ERROR HY000: TRUNCATE table_name TO doesn't work with VIEWs
|
||||
drop table t;
|
||||
drop view v;
|
||||
|
Reference in New Issue
Block a user