From e964aef27a863664c341e5c1dc05a770aafe743d Mon Sep 17 00:00:00 2001 From: Yunfei Ma Date: Tue, 24 Aug 2021 15:17:18 +0800 Subject: [PATCH] Fix: array string find end has wrong regular expression for missing case --- src/infi/clickhouse_orm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infi/clickhouse_orm/utils.py b/src/infi/clickhouse_orm/utils.py index c0d0325..d6f3da5 100644 --- a/src/infi/clickhouse_orm/utils.py +++ b/src/infi/clickhouse_orm/utils.py @@ -106,7 +106,7 @@ def parse_array(array_string): array_string = array_string[1:] elif array_string[0] == "'": # Start of quoted value, find its end - match = re.search(r"[^\\]'", array_string) + match = re.search(r"[^\\]'(?:,|])", array_string) if match is None: raise ValueError('Missing closing quote: "%s"' % array_string) values.append(array_string[1 : match.start() + 1])