1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-27 08:21:15 +03:00
Files
mariadb-columnstore-engine/mtr/basic/t/mcs89_drop_table_restrict.test
mariadb-RomanNavrotskiy 73b4147cf3 move mtr suites here
2021-01-31 01:38:31 +02:00

31 lines
760 B
Plaintext
Executable File

#
# DROP TABLE RESTRICT #
# The RESTRICT clause limits the table to being dropped in the front end only.
# This could be useful when the table has been dropped on one user module,
# and needs to be synced to others.
#
# Author: Susil, susil.behera@mariadb.com #
#
-- source ../include/have_columnstore.inc
--disable_warnings
DROP DATABASE IF EXISTS mcs89_db;
--enable_warnings
CREATE DATABASE mcs89_db;
USE mcs89_db;
CREATE TABLE t1 (id INT, name CHAR(25));
INSERT INTO t1 VALUES (1, 'one'), (2, 'two'), (3, 'three'), (4, 'four'), (5, 'five');
SELECT * FROM t1 ORDER BY id;
SELECT COUNT(*) FROM t1;
DROP TABLE IF EXISTS t1 RESTRICT;
--error 1051
DROP TABLE t1;
DROP TABLE t1 RESTRICT;
# Clean up
DROP DATABASE IF EXISTS mcs89_db;