File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -348,3 +348,21 @@ class ThingC(dj.Manual):
348
348
-> [unique, nullable] ThingB
349
349
"""
350
350
351
+
352
+ @schema
353
+ class Parent (dj .Manual ):
354
+ definition = """
355
+ parent_id: int
356
+ ---
357
+ name: varchar(30)
358
+ """
359
+
360
+
361
+ @schema
362
+ class Child (dj .Manual ):
363
+ definition = """
364
+ -> Parent
365
+ child_id: int
366
+ ---
367
+ name: varchar(30)
368
+ """
Original file line number Diff line number Diff line change @@ -243,3 +243,6 @@ def test_fetch_format(self):
243
243
assert_dict_equal (l1 , l2 , 'Primary key is not returned correctly' )
244
244
# revert configuration of fetch format
245
245
dj .config ['fetch_format' ] = 'array'
246
+
247
+ def test_same_secondary_attribute (self ):
248
+ print (schema .Child * schema .Parent ().proj ())
You can’t perform that action at this time.
0 commit comments