* findWindowClause * Find the named WindowClause in the list, or return NULL if not there */
| 3838 | * Find the named WindowClause in the list, or return NULL if not there |
| 3839 | */ |
| 3840 | static WindowClause * |
| 3841 | findWindowClause(List *wclist, const char *name) |
| 3842 | { |
| 3843 | ListCell *l; |
| 3844 | |
| 3845 | foreach(l, wclist) |
| 3846 | { |
| 3847 | WindowClause *wc = (WindowClause *) lfirst(l); |
| 3848 | |
| 3849 | if (wc->name && strcmp(wc->name, name) == 0) |
| 3850 | return wc; |
| 3851 | } |
| 3852 | |
| 3853 | return NULL; |
| 3854 | } |
| 3855 | |
| 3856 | /* |
| 3857 | * transformFrameOffset |
no test coverage detected