Commit a630c55
authored
Fix: Prevent nil pointer dereference in FOR UPDATE with CTE (#23165)
Fix nil pointer dereference panic when using `FOR UPDATE` with CTE. Added a nil check before accessing `tableDef` in `bindSelectClause` to prevent panic when `tableDef` is `nil` (which happens when the node is a PROJECT node from a CTE/subquery, not a base table).
Approved by: @ouyuanning, @aunjgr1 parent 06493c2 commit a630c55
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3246 | 3246 | | |
3247 | 3247 | | |
3248 | 3248 | | |
3249 | | - | |
3250 | | - | |
| 3249 | + | |
3251 | 3250 | | |
3252 | 3251 | | |
3253 | 3252 | | |
| |||
0 commit comments