isUnicodeQuote checks if a rune is a Unicode quote character for identifiers. In SQL, double quotes (and their Unicode equivalents) are used for quoted identifiers, while single quotes are for string literals. Recognized Unicode double quote characters: - U+201C (") LEFT DOUBLE QUOTATION MARK - U+
(r rune)
| 77 | // |
| 78 | // Returns true for Unicode double quote characters, false otherwise. |
| 79 | func isUnicodeQuote(r rune) bool { |
| 80 | // Only double quotes and their Unicode equivalents are for identifiers |
| 81 | return r == '\u201C' || r == '\u201D' |
| 82 | } |
| 83 | |
| 84 | // normalizeQuote converts Unicode quote characters to standard ASCII quotes. |
| 85 | // |