Files
greptimedb/tests/cases/standalone/common/create/create_if_not_exists.sql
tison 1bbde15a15 feat: improve error message for typo in IF NOT EXISTS (#3817)
* refactor: improve error message for typo in IF NOT EXISTS

Signed-off-by: tison <wander4096@gmail.com>

* support table name 'if'

Signed-off-by: tison <wander4096@gmail.com>

* add sqlness cases

Signed-off-by: tison <wander4096@gmail.com>

---------

Signed-off-by: tison <wander4096@gmail.com>
2024-04-28 11:20:17 +00:00

20 lines
274 B
SQL

CREATE TABLE IF NOT EXIST t();
CREATE TABLE IF NOT t();
CREATE TABLE IF EXISTS t();
CREATE TABLE IF NOT EXISTS t();
CREATE TABLE t();
CREATE TABLE t(ts TIMESTAMP TIME INDEX);
CREATE TABLE IF();
CREATE TABLE IF(ts TIMESTAMP TIME INDEX);
DROP TABLE t;
DROP TABLE IF;