Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita6be060

Browse files
committed
Remove useless LIMIT_OPTION_DEFAULT value from LimitOption
During the development that led to commit357889e, for a time wehad the value LIMIT_OPTION_DEFAULT, which was mostly but not completelyremoved 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 parentb485ad7 commita6be060

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)

[8]ページ先頭

©2009-2025 Movatter.jp