Rename the parent pointer to root, as the pointer often references expression multiple layers above the current expression.

This commit is contained in:
go-jet 2025-03-09 19:06:17 +01:00
parent 1f3215c879
commit cfc264221b
41 changed files with 390 additions and 390 deletions

View file

@ -89,7 +89,7 @@ func newSelectStatement(stmtType jet.StatementType, table ReadableTable, project
newSelect.ShareLock.Name = "LOCK IN SHARE MODE"
newSelect.ShareLock.InNewLine = true
newSelect.setOperatorsImpl.parent = newSelect
newSelect.setOperatorsImpl.root = newSelect
return newSelect
}