Skip to content

Commit ff9a04e

Browse files
bugfix in renamed foreign keys
1 parent fceaec1 commit ff9a04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+dj/+internal/Table.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ case regexp(line, ['^[a-z][a-z\d_]*\s*' ... % name
862862
if length(newattrs)==1
863863
% unambiguous single attribute
864864
if length(rel.primaryKey)==1
865-
attrs = self.primaryKey;
865+
attrs = rel.primaryKey;
866866
elseif isempty(attrs) && length(setdiff(rel.primaryKey, existingFields))==1
867867
attrs = setdiff(rel.primaryKey, existingFields);
868868
end

0 commit comments

Comments
 (0)