Skip to content

Commit 5a17452

Browse files
Merge pull request #548 from ixcat/fix-547
fix mixcase attributes (#547)
2 parents 7be1541 + 08dd73b commit 5a17452

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']) 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)