backtickIdentifier quotes an identifier for TiDB DDL, escaping embedded backticks by doubling them.
(name string)
| 324 | // backtickIdentifier quotes an identifier for TiDB DDL, escaping embedded |
| 325 | // backticks by doubling them. |
| 326 | func backtickIdentifier(name string) string { |
| 327 | return "`" + strings.ReplaceAll(name, "`", "``") + "`" |
| 328 | } |
| 329 | |
| 330 | // isObjectIdentifierCandidate reports whether a candidate type names a schema |
| 331 | // object referenced as an identifier in SQL (and so must be backtick-quoted |
no outgoing calls
no test coverage detected