mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
Message fixes and style improvements
This commit is contained in:
@ -16161,7 +16161,7 @@ insertSelectOptions(SelectStmt *stmt,
|
||||
if (!stmt->sortClause && limitClause->limitOption == LIMIT_OPTION_WITH_TIES)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SYNTAX_ERROR),
|
||||
errmsg("WITH TIES options can not be specified without ORDER BY clause")));
|
||||
errmsg("WITH TIES cannot be specified without ORDER BY clause")));
|
||||
stmt->limitOption = limitClause->limitOption;
|
||||
}
|
||||
if (withClause)
|
||||
|
@ -1770,7 +1770,7 @@ transformLimitClause(ParseState *pstate, Node *clause,
|
||||
IsA(clause, A_Const) && ((A_Const *) clause)->val.type == T_Null)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_ROW_COUNT_IN_LIMIT_CLAUSE),
|
||||
errmsg("row count cannot be NULL in FETCH FIRST ... WITH TIES clause")));
|
||||
errmsg("row count cannot be null in FETCH FIRST ... WITH TIES clause")));
|
||||
|
||||
return qual;
|
||||
}
|
||||
|
Reference in New Issue
Block a user