We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fks.aliased
1 parent 8fdfe14 commit a3b4c20Copy full SHA for a3b4c20
+dj/Relvar.m
@@ -92,7 +92,7 @@ function cleanup(self)
92
@(x) strcmp(x.from, rels(ix).fullTableName), ...
93
self.schema.conn.foreignKeys, 'uni', true);
94
fks = self.schema.conn.foreignKeys(fk_index);
95
- if ~fks.aliased
+ if ~all([fks.aliased])
96
% If matched foreign keys are not aliased, no renaming
97
% necessary. Restrict table based on normal projection.
98
rels(ix).restrict(proj(rels(i)));
tests/test_schemas/+TestLab/Duty.m
@@ -0,0 +1,9 @@
1
+%{
2
+duty_date: date
3
+-----
4
+(duty_first) -> TestLab.User(user_id)
5
+(duty_second) -> TestLab.User(user_id)
6
+%}
7
+
8
+classdef Duty < dj.Manual
9
+end
tests/test_schemas/+TestLab/User.m
@@ -0,0 +1,6 @@
+user_id: varchar(32)
+classdef User < dj.Manual
0 commit comments