Expanding capabilities of MySQL to correctly retrieve UTF8MB4 chars

This commit is contained in:
Miroslav Štampar 2026-07-27 11:35:14 +02:00
parent 69108bcf01
commit ec58f57fa9
6 changed files with 18 additions and 3 deletions

View file

@ -672,8 +672,8 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
shiftTable = None
elif continuousOrder and shiftTable is None:
# Used for gradual expanding into unicode charspace (Note: leading value covers MySQL's
# 3-byte ORD() range up to 0xEFBFBF, restoring CJK/non-Latin extraction - see issue #5171)
shiftTable = [4, 2, 2, 3, 3, 3]
# 4-byte ORD() range for emoji/supplementary-plane, then 3-byte for CJK - see issue #5171)
shiftTable = [8, 4, 2, 2, 3, 3, 3]
if "'%s'" % CHAR_INFERENCE_MARK in payload:
for char in ('\n', '\r'):