coalesceStringSlice returns ss if non-nil, otherwise an empty non-nil slice. This prevents pq.Array from sending NULL for NOT NULL text[] columns.
(ss []string)
| 1329 | // non-nil slice. This prevents pq.Array from sending NULL for |
| 1330 | // NOT NULL text[] columns. |
| 1331 | func coalesceStringSlice(ss []string) []string { |
| 1332 | if ss == nil { |
| 1333 | return []string{} |
| 1334 | } |
| 1335 | return ss |
| 1336 | } |
| 1337 | |
| 1338 | // mcpOAuth2Discovery holds the result of MCP OAuth2 auto-discovery |
| 1339 | // and Dynamic Client Registration. |
no outgoing calls
no test coverage detected