func (stmt *SelectClause) copyNode() *SelectClause {
	stmtCopy := *stmt
	stmtCopy.Exprs = append(SelectExprs(nil), stmt.Exprs...)
	stmtCopy.From = From{
		Tables: append(TableExprs(nil), stmt.From.Tables...),
		AsOf:   stmt.From.AsOf,
	}
	if stmt.Where != nil {
		wCopy := *stmt.Where
		stmtCopy.Where = &wCopy
	}
	stmtCopy.GroupBy = append(GroupBy(nil), stmt.GroupBy...)
	if stmt.Having != nil {
		hCopy := *stmt.Having
		stmtCopy.Having = &hCopy
	}
	stmtCopy.Window = append(Window(nil), stmt.Window...)
	return &stmtCopy
}
// copyNode makes a copy of this Statement without recursing in any child Statements.
copyNode makes a copy of this Statement without recursing in any child Statements.
// copyNode makes a copy of this Statement without recursing in any child Statements .
func (stmt *SelectClause) copyNode() *SelectClause {
	stmtCopy := *stmt
	stmtCopy.Exprs = append(SelectExprs(nil), stmt.Exprs...)
	stmtCopy.From = From{
		Tables: append(TableExprs(nil), stmt.From.Tables...),
		AsOf:   stmt.From.AsOf,
	}
	if stmt.Where != nil {
		wCopy := *stmt.Where
		stmtCopy.Where = &wCopy
	}
	stmtCopy.GroupBy = append(GroupBy(nil), stmt.GroupBy...)
	if stmt.Having != nil {
		hCopy := *stmt.Having
		stmtCopy.Having = &hCopy
	}
	stmtCopy.Window = append(Window(nil), stmt.Window...)
	return &stmtCopy
}
func ( stmt * SelectClause ) copyNode ( ) * SelectClause { stmtCopy := * stmt stmtCopy . Exprs = append ( SelectExprs ( nil ) , stmt . Exprs ... ) stmtCopy . From = From { Tables : append ( TableExprs ( nil ) , stmt . From . Tables ... ) , AsOf : stmt . From . AsOf , } if stmt . Where != nil { wCopy := * stmt . Where stmtCopy . Where = & wCopy } stmtCopy . GroupBy = append ( GroupBy ( nil ) , stmt . GroupBy ... ) if stmt . Having != nil { hCopy := * stmt . Having stmtCopy . Having = & hCopy } stmtCopy . Window = append ( Window ( nil ) , stmt . Window ... ) return & stmtCopy }
copyNode makes a copy of this Statement without recursing in any child Statements.
copyNode makes a copy of this Statement without recursing in any child Statements .