On Tue, 2006-12-12 at 19:11 +0300, Oleg Broytmann wrote:
> > This gives an error, because year isn't a column in the 'role' table.
> > 
> > The SQL should be 'SELECT MAX(year) FROM student'.
> 
>    A bug in the inheritance - it doesn't handle RelatedJoin.

Actually:

class Role(InheritableSQLObject):
    department = StringCol()

class Student(Role):
    year = IntCol()

Role.createTable()
Student.createTable()

first_year = Student(department="CS", year=1)

print Student.select().max('year')
---
No RelatedJoin, but it still fails.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to