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

Function TestParseDistinctModifier_All

pkg/sql/parser/select_helpers_test.go:120–125  ·  view source on GitHub ↗

TestParseDistinctModifier_All checks that SELECT ALL is consumed without error and leaves Distinct=false.

(t *testing.T)

Source from the content-addressed store, hash-verified

118// TestParseDistinctModifier_All checks that SELECT ALL is consumed without error
119// and leaves Distinct=false.
120func TestParseDistinctModifier_All(t *testing.T) {
121 stmt := parseSQLWithDialect(t, "SELECT ALL id FROM users", keywords.DialectPostgreSQL)
122 if stmt.Distinct {
123 t.Error("SELECT ALL must not set Distinct=true")
124 }
125}
126
127// -----------------------------------------------------------------------------
128// parseTopClause

Callers

nothing calls this directly

Calls 2

parseSQLWithDialectFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected