# Copyright 2015 - 2019 The Cockroach Authors. All rights reserved. # Copyright Materialize, Inc. and contributors. All rights reserved. # # Use of this software is governed by the Business Source License # included in the LICENSE file at the root of this repository. # # As of the Change Date specified in that file, in accordance with # the Business Source License, use of this software will be governed # by the Apache License, Version 2.0. # # This file is derived from the logic test suite in CockroachDB. The # original file was retrieved on June 10, 2019 from: # # https://github.com/cockroachdb/cockroach/blob/d2f7fbf5dd1fc1a099bbad790a2e1f7c60a66cc3/pkg/sql/logictest/testdata/logic_test/drop_table # # The original source code is subject to the terms of the Apache # 2.0 license, a copy of which can be found in the LICENSE file at the # root of this repository. # not supported yet halt mode cockroach statement ok CREATE TABLE a (id INT PRIMARY KEY) statement ok CREATE TABLE b (id INT PRIMARY KEY) query T SHOW TABLES FROM test ---- a b statement ok INSERT INTO a VALUES (3),(7),(2) query I rowsort SELECT * FROM a ---- 2 3 7 statement ok DROP TABLE a query TT SELECT status, running_status FROM [SHOW JOBS] WHERE job_type = 'SCHEMA CHANGE' ---- running waiting for GC TTL query T SHOW TABLES FROM test ---- b statement error pgcode 42P01 relation "a" does not exist SELECT * FROM a statement error pq: \[53 AS a\]: table is being dropped SELECT * FROM [53 AS a] statement error pgcode 42P01 relation "a" does not exist DROP TABLE a statement ok DROP TABLE IF EXISTS a statement ok CREATE TABLE a (id INT PRIMARY KEY) query I SELECT * FROM a ----