MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / pgwireQuoteStringInArray

Function pgwireQuoteStringInArray

pkg/sql/sem/tree/pgwire_encode.go:147–159  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

145}
146
147func pgwireQuoteStringInArray(in string) bool {
148 if in == "" || arrayQuoteSet.in(in) {
149 return true
150 }
151 if len(in) == 4 &&
152 (in[0] == 'n' || in[0] == 'N') &&
153 (in[1] == 'u' || in[1] == 'U') &&
154 (in[2] == 'l' || in[2] == 'L') &&
155 (in[3] == 'l' || in[3] == 'L') {
156 return true
157 }
158 return false
159}
160
161func pgwireFormatStringInArray(buf *bytes.Buffer, in string) {
162 quote := pgwireQuoteStringInArray(in)

Callers 1

Calls 1

inMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…