We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c777d5f commit 47bd684Copy full SHA for 47bd684
spyne/test/test_sqlalchemy.py
@@ -674,6 +674,19 @@ class D(TableModel):
674
C.append_field('d', D.store_as('table'))
675
assert C.Attributes.sqla_mapper.get_property('d').argument is D
676
677
+ def test_add_field_complex_existing_column_2(self):
678
+ class C(TableModel):
679
+ __tablename__ = "c"
680
+ id = Integer32(5, pk=True)
681
+
682
+ # c already also produces c_id. this is undefined behaviour, one of them
683
+ # gets ignored, whichever comes first.
684
+ class D(TableModel):
685
+ __tablename__ = "d"
686
+ id = Integer32(pk=True)
687
+ c = C.store_as('table')
688
+ c_id = Integer32(15)
689
690
def test_add_field_complex_new_column(self):
691
class C(TableModel):
692
__tablename__ = "c"
0 commit comments