EncodeUnrestrictedSQLIdent writes the identifier in s to buf. The identifier is only quoted if the flags don't tell otherwise and the identifier contains special characters.
(buf *bytes.Buffer, s string, flags EncodeFlags)
| 138 | // The identifier is only quoted if the flags don't tell otherwise and |
| 139 | // the identifier contains special characters. |
| 140 | func EncodeUnrestrictedSQLIdent(buf *bytes.Buffer, s string, flags EncodeFlags) { |
| 141 | if flags.HasFlags(EncBareIdentifiers) || isBareIdentifier(s) { |
| 142 | buf.WriteString(s) |
| 143 | return |
| 144 | } |
| 145 | EncodeEscapedSQLIdent(buf, s) |
| 146 | } |
| 147 | |
| 148 | // EncodeRestrictedSQLIdent writes the identifier in s to buf. The |
| 149 | // identifier is quoted if either the flags ask for it, the identifier |
no test coverage detected
searching dependent graphs…