Testing a previous bug I noticed that somemapper.get_by and inheritance stopped
working (this refers to the trackeback from inheritance in 1117).

A test programm reproducing the error is atached.

Cheers,
Florian
from sqlalchemy import *

engine = create_engine('oracle://dsn=orcl&user=test&password=test')

foo = Table('foo', engine,
    Column('id', Integer, Sequence('foo_seq'), primary_key=True),
    Column('something', String(255))
    )
bar = Table('bar', engine, Column('id', Integer, ForeignKey('foo.id'), 
primary_key=True))

class Foo(object): pass
class Bar(object): pass

foos = mapper(Foo, foo)
bars = mapper(Bar, bar, inherits=foos)

bars.get_by(something='asdf')

Reply via email to