(t *testing.T)
| 410 | } |
| 411 | |
| 412 | func TestExprEscaped(t *testing.T) { |
| 413 | b := Expr("count(??)", Expr("x")) |
| 414 | sql, args, err := b.ToSql() |
| 415 | assert.NoError(t, err) |
| 416 | |
| 417 | expectedSql := "count(??)" |
| 418 | assert.Equal(t, expectedSql, sql) |
| 419 | |
| 420 | expectedArgs := []interface{}{Expr("x")} |
| 421 | assert.Equal(t, expectedArgs, args) |
| 422 | } |
| 423 | |
| 424 | func TestExprRecursion(t *testing.T) { |
| 425 | { |