-
Notifications
You must be signed in to change notification settings - Fork 492
Open
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
- What did you do?
CREATE TABLE t1 (
-- literal defaults
i INT DEFAULT 0,
c VARCHAR(10) DEFAULT '',
-- expression defaults
f FLOAT DEFAULT (RAND() * RAND()),
b BINARY(16) DEFAULT (UUID_TO_BIN(UUID())),
d DATE DEFAULT (CURRENT_DATE + INTERVAL 1 YEAR),
p POINT DEFAULT (Point(0,0)),
j JSON DEFAULT (JSON_ARRAY())
);- What did you expect to see?
No parsing error
- What did you see instead?
A parsing error
- What version of TiDB SQL Parser are you using?
github.com/pingcap/parser v0.0.0-20210914110036-002913dd28ec
Metadata
Metadata
Assignees
Labels
No labels