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)
| 151 | // The identifier is only quoted if the flags don't tell otherwise and |
| 152 | // the identifier contains special characters. |
| 153 | func EncodeUnrestrictedSQLIdent(buf *bytes.Buffer, s string, flags EncodeFlags) { |
| 154 | if flags.HasFlags(EncBareIdentifiers) || isBareIdentifier(s) { |
| 155 | buf.WriteString(s) |
| 156 | return |
| 157 | } |
| 158 | EncodeEscapedSQLIdent(buf, s) |
| 159 | } |
| 160 | |
| 161 | // EncodeRestrictedSQLIdent writes the identifier in s to buf. The |
| 162 | // identifier is quoted if either the flags ask for it, the identifier |
no test coverage detected