(t *testing.T)
| 79 | } |
| 80 | |
| 81 | func TestSetLimit_Negative(t *testing.T) { |
| 82 | stmt := mustParse(t, "SELECT * FROM users") |
| 83 | err := Apply(stmt, SetLimit(-1)) |
| 84 | if err == nil { |
| 85 | t.Fatal("expected error for negative limit") |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | func TestSetLimit_NegativeLarge(t *testing.T) { |
| 90 | stmt := mustParse(t, "SELECT * FROM users") |