-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
component/ddlThis issue is related to DDL of TiDB.This issue is related to DDL of TiDB.severity/minortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table t1 (c int(10), c1 varchar(256) default (REPLACE('xdfj-jfj', '-', '')));
Now we support REPLACE
as the default value expression, but don't support REPLACE('xdfj-jfj', '-', ''))
.
2. What did you expect to see? (Required)
Error 3770 (HY000): Default value expression of column 'c1' contains a disallowed function: `REPLACE`.
3. What did you see instead (Required)
Error 3770 (HY000): Default value expression of column 'c1' contains a disallowed function: `REPLACE with disallowed args`.
4. What is your TiDB version? (Required)
master
Metadata
Metadata
Assignees
Labels
component/ddlThis issue is related to DDL of TiDB.This issue is related to DDL of TiDB.severity/minortype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.