mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Fix coding style with "else".
The "else" code block having single statement with comments on a separate line should have been surrounded by braces. Reported-by: Chao Li <lic@highgo.com> Suggested-by: David Rowley <dgrowleyml@gmail.com> Author: Tatsuo Ishii <ishii@postgresql.org> Discussion: https://postgr.es/m/20251020.125847.997839131426057290.ishii%40postgresql.org
This commit is contained in:
@@ -3822,13 +3822,14 @@ WinGetFuncArgInPartition(WindowObject winobj, int argno,
|
|||||||
if (seektype == WINDOW_SEEK_CURRENT && relpos > 0)
|
if (seektype == WINDOW_SEEK_CURRENT && relpos > 0)
|
||||||
mark_pos = winstate->currentpos;
|
mark_pos = winstate->currentpos;
|
||||||
else
|
else
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* For other cases we have no idea what position of row callers would
|
* For other cases we have no idea what position of row callers would
|
||||||
* fetch next time. Also for relpos < 0 case (we go backward), we
|
* fetch next time. Also for relpos < 0 case (we go backward), we
|
||||||
* cannot set mark either. For those cases we always set mark at 0.
|
* cannot set mark either. For those cases we always set mark at 0.
|
||||||
*/
|
*/
|
||||||
mark_pos = 0;
|
mark_pos = 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the next nonnull value in the partition, moving forward or backward
|
* Get the next nonnull value in the partition, moving forward or backward
|
||||||
|
|||||||
Reference in New Issue
Block a user