Skip to content

Commit a6be060

Browse files
committed
Remove useless LIMIT_OPTION_DEFAULT value from LimitOption
During the development that led to commit 357889e, 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 <avamingli@gmail.com> Discussion: https://postgr.es/m/59d61a1a-3858-475a-964f-24468c97cc67@Spark
1 parent b485ad7 commit a6be060

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/backend/parser/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18461,7 +18461,7 @@ insertSelectOptions(SelectStmt *stmt,
1846118461
parser_errposition(exprLocation(limitClause->limitCount))));
1846218462
stmt->limitCount = limitClause->limitCount;
1846318463
}
18464-
if (limitClause && limitClause->limitOption != LIMIT_OPTION_DEFAULT)
18464+
if (limitClause)
1846518465
{
1846618466
if (stmt->limitOption)
1846718467
ereport(ERROR,

src/include/nodes/nodes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ typedef enum LimitOption
440440
{
441441
LIMIT_OPTION_COUNT, /* FETCH FIRST... ONLY */
442442
LIMIT_OPTION_WITH_TIES, /* FETCH FIRST... WITH TIES */
443-
LIMIT_OPTION_DEFAULT, /* No limit present */
444443
} LimitOption;
445444

446445
#endif /* NODES_H */

0 commit comments

Comments
 (0)