MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NeedEscape

Function NeedEscape

postgres/parser/stringencoding/string_encoding.go:143–145  ·  view source on GitHub ↗

NeedEscape returns whether the given byte needs to be escaped.

(ch byte)

Source from the content-addressed store, hash-verified

141
142// NeedEscape returns whether the given byte needs to be escaped.
143func NeedEscape(ch byte) bool {
144 return EncodeMap[ch] != DontEscape
145}

Callers 1

EncodeSQLStringWithFlagsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected