TestAcceptLimitDefaultDialect checks that LIMIT still works when no dialect is set (backward compatibility).
(t *testing.T)
| 223 | // TestAcceptLimitDefaultDialect checks that LIMIT still works when no dialect is |
| 224 | // set (backward compatibility). |
| 225 | func TestAcceptLimitDefaultDialect(t *testing.T) { |
| 226 | sql := "SELECT id, name FROM users LIMIT 10" |
| 227 | _, err := ParseBytes([]byte(sql)) |
| 228 | if err != nil { |
| 229 | t.Fatalf("LIMIT should be valid in default dialect, got error: %v", err) |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | // --------------------------------------------------------------------------- |
| 234 | // TOP dialect gate |
nothing calls this directly
no test coverage detected