* winref_checkspec * * See if any WindowFuncss using this spec are DISTINCT qualified. * * In addition, we're going to check winrequireorder / winallowframe. * You might want to do it in ParseFuncOrColumn, * but we need to do this here after all the transformations * (especially parent inheritance) was done. */
| 222 | * (especially parent inheritance) was done. |
| 223 | */ |
| 224 | static bool |
| 225 | winref_checkspec(ParseState *pstate, List *targetlist, Index winref, |
| 226 | bool has_order, bool has_frame) |
| 227 | { |
| 228 | winref_check_ctx ctx; |
| 229 | |
| 230 | ctx.pstate = pstate; |
| 231 | ctx.winref = winref; |
| 232 | ctx.has_order = has_order; |
| 233 | ctx.has_frame = has_frame; |
| 234 | |
| 235 | return expression_tree_walker((Node *) targetlist, |
| 236 | winref_checkspec_walker, (void *) &ctx); |
| 237 | } |
| 238 | |
| 239 | /* |
| 240 | * setTargetTable |
no test coverage detected