summaryrefslogtreecommitdiffstats
path: root/storage/rocksdb/mysql-test/rocksdb/t/describe.test
blob: 9bc5d299a316532482d29d6007c0df8489176f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--source include/have_rocksdb.inc

# 
# DESCRIBE statement
#

--disable_warnings
DROP TABLE IF EXISTS t1, t2, t3;
--enable_warnings

CREATE TABLE t1 (a INT, b CHAR(8), PRIMARY KEY (a)) ENGINE=rocksdb;
INSERT INTO t1 (a,b) VALUES (100,'foo'),(2, 'b');

CREATE TABLE t2 (a INT, b CHAR(8), PRIMARY KEY (b)) ENGINE=rocksdb CHARACTER SET utf8;
INSERT INTO t2 (a,b) VALUES (1, 'bar');

CREATE TABLE t3 (a INT, b CHAR(8), pk INT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb CHARACTER SET utf8;

DESCRIBE t1;
DESC t2 a;
DESCRIBE t3 '%';

DROP TABLE t1, t2, t3;