(value)
| 23 | """ |
| 24 | |
| 25 | def escaper(value): |
| 26 | if all(_ < 128 for _ in getOrds(value)): |
| 27 | return "0x%s" % getUnicode(binascii.hexlify(getBytes(value))) |
| 28 | else: |
| 29 | return "CONVERT(0x%s USING utf8)" % getUnicode(binascii.hexlify(getBytes(value, "utf8"))) |
| 30 | |
| 31 | return Syntax._escape(expression, quote, escaper) |
nothing calls this directly
no test coverage detected