stream: clone stream before execution

This commit is contained in:
Asdine El Hrychy
2024-02-17 17:56:41 +04:00
parent bac26ce46a
commit 71146bcc9b
37 changed files with 464 additions and 13 deletions

View File

@@ -578,7 +578,7 @@ func (p *Parser) parseCastExpression() (expr.Expr, error) {
return nil, err
}
return expr.Cast{Expr: e, CastAs: tp}, nil
return &expr.Cast{Expr: e, CastAs: tp}, nil
}
// tokenIsAllowed is a helper function that determines if a token is allowed.