1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Remove useless LIMIT_OPTION_DEFAULT value from LimitOption

During the development that led to commit 357889eb17, 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
This commit is contained in:
Alvaro Herrera
2023-12-16 18:20:03 +01:00
parent b485ad7f07
commit a6be0600ac
2 changed files with 1 additions and 2 deletions

View File

@@ -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,