mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-04-20 09:07:44 +03:00
28 lines
496 B
Plaintext
28 lines
496 B
Plaintext
#
|
|
# Test empty table
|
|
# Author: Bharath, bharath.bokka@mariadb.com
|
|
#
|
|
-- source ../include/have_columnstore.inc
|
|
|
|
--disable_warnings
|
|
DROP DATABASE IF EXISTS mcs120_db;
|
|
--enable_warnings
|
|
|
|
CREATE DATABASE mcs120_db;
|
|
USE mcs120_db;
|
|
|
|
CREATE TABLE t1 (x INT)ENGINE=Columnstore;
|
|
|
|
SELECT * FROM t1;
|
|
SELECT COUNT(*) FROM t1;
|
|
SHOW STATUS LIKE 'Empty_queries';
|
|
|
|
SELECT * FROM t1 LIMIT 0;
|
|
SHOW STATUS LIKE 'Empty_queries';
|
|
|
|
DROP TABLE t1;
|
|
SHOW STATUS LIKE 'Empty_queries';
|
|
|
|
# Clean UP
|
|
DROP DATABASE mcs120_db;
|