Skip to content

Commit 7be1541

Browse files
authored
Merge pull request #545 from dimitri-yatsenko/master
Fix #544: Accept all aliases for supported datatypes.
2 parents aa54734 + 53ff607 commit 7be1541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datajoint/declare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ def compile_attribute(line, in_key, foreign_key_sql):
271271
match['default'] = ''
272272
match = {k: v.strip() for k, v in match.items()}
273273
match['nullable'] = match['default'].lower() == 'null'
274-
acceptable_datatype_pattern = r'^(time|date|year|enum|(var)?char|float|double|decimal|' \
275-
r'(tiny|small|medium|big)?int|bool(ean)?|' \
274+
acceptable_datatype_pattern = r'^(time|date|year|enum|(var)?char|float|real|double|decimal|numeric|' \
275+
r'(tiny|small|medium|big)?int|bool|' \
276276
r'(tiny|small|medium|long)?blob|external|attach)'
277277
if re.match(acceptable_datatype_pattern, match['type']) is None:
278278
raise DataJointError('DataJoint does not support datatype "{type}"'.format(**match))

0 commit comments

Comments
 (0)