mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Make more use of castNode()
This commit is contained in:
@ -3963,9 +3963,8 @@ create_one_window_path(PlannerInfo *root,
|
||||
window_target = copy_pathtarget(window_target);
|
||||
foreach(lc2, wflists->windowFuncs[wc->winref])
|
||||
{
|
||||
WindowFunc *wfunc = (WindowFunc *) lfirst(lc2);
|
||||
WindowFunc *wfunc = castNode(WindowFunc, lfirst(lc2));
|
||||
|
||||
Assert(IsA(wfunc, WindowFunc));
|
||||
add_column_to_pathtarget(window_target, (Expr *) wfunc, 0);
|
||||
window_target->width += get_typavgwidth(wfunc->wintype, -1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user