Skip to content

Commit 3d8627e

Browse files
Merge pull request #281 from guzman-raphael/handle-attach
Fix regex and be more explicit on default for class tier
2 parents 0d250bc + bbd1e6e commit 3d8627e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

+dj/+internal/Declare.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
'STRING', '^((var)?char|enum|date|(var)?year|time|timestamp)', ...
1212
'INTERNAL_BLOB', '^(tiny|medium|long)?blob$', ...
1313
'EXTERNAL_BLOB', '^blob@(?<store>[a-z]\w*)$', ...
14-
'INTERNAL_ATTACH', 'attach$', ...
14+
'INTERNAL_ATTACH', '^attach$', ...
1515
'EXTERNAL_ATTACH', '^attach@(?<store>[a-z]\w*)$', ...
1616
'FILEPATH', '^filepath@(?<store>[a-z]\w*)$', ...
17-
'UUID', 'uuid$' ...
17+
'UUID', '^uuid$' ...
1818
)
1919
SPECIAL_TYPES = {'UUID', 'INTERNAL_ATTACH', 'EXTERNAL_ATTACH', 'EXTERNAL_BLOB', ...
2020
'FILEPATH', 'ADAPTED'}

+dj/+internal/TableAccessor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
name = splitName{2};
2828
addprop(self, name);
2929
tableName = schema.tableNames(className{1});
30-
tierClass = dj.Schema.tierClasses{2}; % default to Manual table
30+
tierClass = 'dj.Manual';
3131
for k=1:numel(dj.Schema.tierPrefixes)
3232
tierCharLen = length(dj.Schema.tierPrefixes{k});
3333
if tierCharLen > 0 && ~isempty(regexp(dj.Schema.tierPrefixes{k}, ...

0 commit comments

Comments
 (0)