diff options
author | Alvaro Herrera | 2023-12-16 17:20:03 +0000 |
---|---|---|
committer | Alvaro Herrera | 2023-12-16 17:20:03 +0000 |
commit | a6be0600ac3b71dda8277ab0fcbe59ee101ac1ce (patch) | |
tree | 6806ee9ad3420029505af3e06728e497cc61eb15 | |
parent | b485ad7f07c80efbfd47329f138f0fe3a5acf013 (diff) |
Remove useless LIMIT_OPTION_DEFAULT value from LimitOption
During the development that led to commit 357889eb17bb, for a time we
had the value LIMIT_OPTION_DEFAULT, which was mostly but not completely
removed later on, before commit. Complete the removal now.
Author: Zhang Mingli <[email protected]>
Discussion: https://postgr.es/m/59d61a1a-3858-475a-964f-24468c97cc67@Spark
-rw-r--r-- | src/backend/parser/gram.y | 2 | ||||
-rw-r--r-- | src/include/nodes/nodes.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index f16bbd3cdd..63f172e175 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -18461,7 +18461,7 @@ insertSelectOptions(SelectStmt *stmt, parser_errposition(exprLocation(limitClause->limitCount)))); stmt->limitCount = limitClause->limitCount; } - if (limitClause && limitClause->limitOption != LIMIT_OPTION_DEFAULT) + if (limitClause) { if (stmt->limitOption) ereport(ERROR, diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index 4c32682e4c..a178d08727 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -440,7 +440,6 @@ typedef enum LimitOption { LIMIT_OPTION_COUNT, /* FETCH FIRST... ONLY */ LIMIT_OPTION_WITH_TIES, /* FETCH FIRST... WITH TIES */ - LIMIT_OPTION_DEFAULT, /* No limit present */ } LimitOption; #endif /* NODES_H */ |