mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 11:10:11 +03:00
Fix: array string find end has wrong regular expression for missing case
This commit is contained in:
parent
7c90c1e4c3
commit
e964aef27a
|
@ -106,7 +106,7 @@ def parse_array(array_string):
|
||||||
array_string = array_string[1:]
|
array_string = array_string[1:]
|
||||||
elif array_string[0] == "'":
|
elif array_string[0] == "'":
|
||||||
# Start of quoted value, find its end
|
# Start of quoted value, find its end
|
||||||
match = re.search(r"[^\\]'", array_string)
|
match = re.search(r"[^\\]'(?:,|])", array_string)
|
||||||
if match is None:
|
if match is None:
|
||||||
raise ValueError('Missing closing quote: "%s"' % array_string)
|
raise ValueError('Missing closing quote: "%s"' % array_string)
|
||||||
values.append(array_string[1 : match.start() + 1])
|
values.append(array_string[1 : match.start() + 1])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user