mirror of
https://github.com/chaisql/chai.git
synced 2025-10-05 15:46:55 +08:00
stream: clone stream before execution
This commit is contained in:
@@ -112,7 +112,7 @@ func TestParserExpr(t *testing.T) {
|
||||
{"with NULL", "age > NULL", expr.Gt(expr.Column("age"), testutil.NullValue()), false},
|
||||
|
||||
// unary operators
|
||||
{"CAST", "CAST(a AS TEXT)", expr.Cast{Expr: expr.Column("a"), CastAs: types.TypeText}, false},
|
||||
{"CAST", "CAST(a AS TEXT)", &expr.Cast{Expr: expr.Column("a"), CastAs: types.TypeText}, false},
|
||||
{"NOT", "NOT 10", expr.Not(testutil.IntegerValue(10)), false},
|
||||
{"NOT", "NOT NOT", nil, true},
|
||||
{"NOT", "NOT NOT 10", expr.Not(expr.Not(testutil.IntegerValue(10))), false},
|
||||
|
Reference in New Issue
Block a user