(s string)
| 260 | } |
| 261 | |
| 262 | func quotedIdentifierIfNeeded(s string) string { |
| 263 | if strings.ToLower(s) != s || !isValidUnquotedIdentifier(s) { |
| 264 | return quoteIdent(s) |
| 265 | } |
| 266 | return s |
| 267 | } |
| 268 | |
| 269 | // isValidUnquotedIdentifier checks if the identifier can be used without quotes in Redshift. |
| 270 | func isValidUnquotedIdentifier(s string) bool { |
no test coverage detected