diff options
| author | Tatsuo Ishii <ishii@postgresql.org> | 2025-10-23 10:58:41 +0900 | 
|---|---|---|
| committer | Tatsuo Ishii <ishii@postgresql.org> | 2025-10-23 10:58:41 +0900 | 
| commit | 20628b62e46e3a2e66c3bb9396720077c7c47018 (patch) | |
| tree | 6fd558aaea2eda74fd5cb78c8f8110fa27c4e4d3 /src/backend/executor/nodeWindowAgg.c | |
| parent | b30da2d233fed10c0f0e90d95171bc927404b2b1 (diff) | |
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
Diffstat (limited to 'src/backend/executor/nodeWindowAgg.c')
| -rw-r--r-- | src/backend/executor/nodeWindowAgg.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/backend/executor/nodeWindowAgg.c b/src/backend/executor/nodeWindowAgg.c index 497eb25ea29..88c6bbba259 100644 --- a/src/backend/executor/nodeWindowAgg.c +++ b/src/backend/executor/nodeWindowAgg.c @@ -3822,13 +3822,14 @@ WinGetFuncArgInPartition(WindowObject winobj, int argno,  	if (seektype == WINDOW_SEEK_CURRENT && relpos > 0)  		mark_pos = winstate->currentpos;  	else - +	{  		/*  		 * 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  		 * cannot set mark either. For those cases we always set mark at 0.  		 */  		mark_pos = 0; +	}  	/*  	 * Get the next nonnull value in the partition, moving forward or backward | 
