(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func TestSetLimit_NegativeLarge(t *testing.T) { |
| 90 | stmt := mustParse(t, "SELECT * FROM users") |
| 91 | err := Apply(stmt, SetLimit(-100)) |
| 92 | if err == nil { |
| 93 | t.Fatal("expected error for negative limit") |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | func TestSetLimit_Zero(t *testing.T) { |
| 98 | // LIMIT 0 is valid SQL - returns an empty result set. |