1--source include/have_rocksdb.inc 2 3# 4# DELETE QUICK syntax. 5# For now we only check that the keyword is accepted, 6# without actually checking whether the feature works. 7# 8 9--disable_warnings 10DROP TABLE IF EXISTS t1,t2; 11--enable_warnings 12 13CREATE TABLE t1 (a INT, b CHAR(8), PRIMARY KEY (a)) ENGINE=rocksdb; 14INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b'),(3,'c'),(4,'d'),(5,'e'); 15 16DELETE QUICK FROM t1 WHERE a = 1 OR b > 'foo'; 17--sorted_result 18SELECT a,b FROM t1; 19 20CREATE TABLE t2 (c CHAR(8), d INT, PRIMARY KEY (c)) ENGINE=rocksdb; 21INSERT INTO t2 (c,d) SELECT b, a FROM t1; 22--sorted_result 23SELECT c,d FROM t2; 24 25DELETE QUICK FROM t2, t1.* USING t2, t1 WHERE c IS NULL OR a = d; 26--sorted_result 27SELECT a,b FROM t1; 28--sorted_result 29SELECT c,d FROM t2; 30 31DROP TABLE t1, t2; 32 33