MCPcopy
hub / github.com/github/gh-ost / normalizeQuery

Function normalizeQuery

go/sql/builder_test.go:26–31  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

24}
25
26func normalizeQuery(name string) string {
27 name = strings.ReplaceAll(name, "`", "")
28 name = spacesRegexp.ReplaceAllString(name, " ")
29 name = strings.TrimSpace(name)
30 return name
31}
32
33func TestEscapeName(t *testing.T) {
34 names := []string{"my_table", `"my_table"`, "`my_table`"}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…