MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / TestAcceptLimitDefaultDialect

Function TestAcceptLimitDefaultDialect

pkg/sql/parser/dialect_test.go:225–231  ·  view source on GitHub ↗

TestAcceptLimitDefaultDialect checks that LIMIT still works when no dialect is set (backward compatibility).

(t *testing.T)

Source from the content-addressed store, hash-verified

223// TestAcceptLimitDefaultDialect checks that LIMIT still works when no dialect is
224// set (backward compatibility).
225func 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

Callers

nothing calls this directly

Calls 2

ParseBytesFunction · 0.70
FatalfMethod · 0.65

Tested by

no test coverage detected