• Alexander Freiherr von Buddenbrock's avatar
    MDEV-29381: SON paths containing dashes are reported as syntax errors in · 0225159a
    Alexander Freiherr von Buddenbrock authored
    procedures
    
    MDEV-22224 caused the parsing of keys with hyphens to break by setting
    the state transitions for parsing keys to JE_SYN (syntax error) when
    they encounter a hyphen. However json key names may contain hyphens and
    still be considered valid json.
    
    This patch changes the state transition table so that key names with
    hyphens remain valid. Note that unquoted key names in paths like
    $.key-name are also valid again. This restores the previous behaviour
    when hyphens were considered part of the P_ETC character class.
    0225159a
json_lib.c 56.6 KB