~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to test/ext/declarative/test_inheritance.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        class Bar(Foo):
77
77
 
78
78
            __tablename__ = 'bar'
79
 
            id = Column('id', Integer, primary_key=True)
 
79
            bar_id = Column('id', Integer, primary_key=True)
80
80
            foo_id = Column('foo_id', Integer)
81
81
            __mapper_args__ = {'inherit_condition': foo_id == Foo.id}
82
82
 
151
151
 
152
152
        # assert that the "id" column is available without a second
153
153
        # load. as of 0.7, the ColumnProperty tests all columns
154
 
        # in it's list to see which is present in the row.
 
154
        # in its list to see which is present in the row.
155
155
 
156
156
        sess.expunge_all()
157
157