alter table add partition error when sql_mode is set to ANSI_QUOTES #24980
Labels
component/expression
component/tablepartition
This issue is related to Table Partition of TiDB.
priority/P2
The issue has P2 priority.
severity/minor
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
Originally reported from https://asktug.com/t/topic/69811
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
No error.
3. What did you see instead (Required)
The error message is misleading... what the hell is it actually?
When
ANSI_QUOTES
is set, UNIX_TIMESTAMP('2021-05-02 00:00:00’) is internally translated toAnd when the session reuse the parser to parse the SQL, it's translated to:
And anything inside ``` is recognized as column name.
4. What is your TiDB version? (Required)
master, 5.x
The text was updated successfully, but these errors were encountered: