mirror of
https://github.com/postgres/postgres.git
synced 2026-06-07 07:42:18 -04:00
A minor simplification for List manipulation
Fix one place that was using lfirst(list_head(list)) by using linitial(list)
instead. They are equivalent but the latter is simpler. We did the same in
9d299a49.
Author: Richard Guo <guofenglinux@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAMbWs49dJnpezDQDDxCPKq7+=_3NyqLqGqnhqCjd+dYe4MS15w@mail.gmail.com
This commit is contained in:
parent
dc6070bf5d
commit
6d56c501a7
1 changed files with 1 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ rewriteSearchAndCycle(CommonTableExpr *cte)
|
|||
|
||||
fexpr = makeFuncExpr(F_INT8INC, INT8OID, list_make1(fs), InvalidOid, InvalidOid, COERCE_EXPLICIT_CALL);
|
||||
|
||||
lfirst(list_head(search_col_rowexpr->args)) = fexpr;
|
||||
linitial(search_col_rowexpr->args) = fexpr;
|
||||
|
||||
texpr = (Expr *) search_col_rowexpr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue