Skip to content

Commit 08dd73b

Browse files
author
Chris Turner
committed
s/.lower()/, re.I/g
1 parent 4a7b25c commit 08dd73b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/declare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def compile_attribute(line, in_key, foreign_key_sql):
274274
acceptable_datatype_pattern = r'^(time|date|year|enum|(var)?char|float|real|double|decimal|numeric|' \
275275
r'(tiny|small|medium|big)?int|bool|' \
276276
r'(tiny|small|medium|long)?blob|external|attach)'
277-
if re.match(acceptable_datatype_pattern, match['type'].lower()) is None:
277+
if re.match(acceptable_datatype_pattern, match['type'], re.I) is None:
278278
raise DataJointError('DataJoint does not support datatype "{type}"'.format(**match))
279279

280280
literals = ['CURRENT_TIMESTAMP'] # not to be enclosed in quotes

0 commit comments

Comments
 (0)