Skip to content

Commit 849d1f4

Browse files
committed
Add DEC as data type name (alias for DECIMAL)
DEC is a SQL standard alias for DECIMAL. Without this, DEC inside Nullable() was being parsed as a function call instead of a data type. Fixed test: 00700_decimal_null/stmt2
1 parent 8dd12c7 commit 849d1f4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

parser/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4488,7 +4488,7 @@ func (p *Parser) isDataTypeName(name string) bool {
44884488
"INT", "INT8", "INT16", "INT32", "INT64", "INT128", "INT256",
44894489
"UINT8", "UINT16", "UINT32", "UINT64", "UINT128", "UINT256",
44904490
"FLOAT32", "FLOAT64", "FLOAT", "BFLOAT16",
4491-
"DECIMAL", "DECIMAL32", "DECIMAL64", "DECIMAL128", "DECIMAL256",
4491+
"DECIMAL", "DECIMAL32", "DECIMAL64", "DECIMAL128", "DECIMAL256", "DEC",
44924492
"STRING", "FIXEDSTRING",
44934493
"UUID", "DATE", "DATE32", "DATETIME", "DATETIME64",
44944494
"ENUM", "ENUM8", "ENUM16",
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"explain_todo": {
3-
"stmt2": true
4-
}
5-
}
1+
{}

0 commit comments

Comments
 (0)