You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pin down REGEXP_* edge cases shared across functions
Adds a final layer of tests that exercise behaviors which involve more
than one of REGEXP_LIKE / _REPLACE / _SUBSTR / _INSTR at once and only
become testable once all four functions are available:
- Empty pattern raises "Illegal argument to a regular expression."
uniformly (MySQL ERROR 3685).
- Empty subject with a zero-width-matching pattern still produces a
match (LIKE = 1, SUBSTR = "", INSTR = 1).
- Zero-width anchors ^ / $ report sensible 1-based positions and an
empty-string match for SUBSTR rather than NULL.
- Astral-plane (4-byte UTF-8) characters are counted as one code
point by both SUBSTR and INSTR.
- Negative pos rejects consistently across REPLACE / SUBSTR / INSTR.
0 commit comments