Skip to content

Commit a750ae7

Browse files
committed
update coltype_with_args pattern
1 parent ef89cb8 commit a750ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyobvector/schema/reflection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _prep_regexes(self):
3636
self._re_array_column = _re_compile(
3737
r"\s*"
3838
r"%(iq)s(?P<name>(?:%(esc_fq)s|[^%(fq)s])+)%(fq)s\s+"
39-
r"(?P<coltype_with_args>(?i:array)\s*\([^()]*(?:\([^()]*\)[^()]*)*\))"
39+
r"(?P<coltype_with_args>(?i:(?<!\w)array(?!\w))\s*\([^()]*(?:\([^()]*\)[^()]*)*\))"
4040
r"(?:\s+(?P<notnull>(?:NOT\s+)?NULL))?"
4141
r"(?:\s+DEFAULT\s+(?P<default>(?:NULL|'(?:''|[^'])*'|\(.+?\)|[\-\w\.\(\)]+)))?"
4242
r"(?:\s+COMMENT\s+'(?P<comment>(?:''|[^'])*)')?"

0 commit comments

Comments
 (0)