On Tue, Dec 05, 2006 at 06:41:39PM +0100, Diez B. Roggisch wrote:
> I have to paraphrase that: the real problem seems not to be that the support 
> isn't there - it it that the childName columns value isn't distinguishing 
> _all_ subclasses on the topmost class, as I was expecting. Consider this 
> example:
> 
> class A(InhSQLO):
>     pass
> 
> class B(A):
>     pass
> 
> class C(B):
>    pass
> 
> This will result in a table "a" with a childName column. But additionally, 
> table "b" will have a childName column.
> 
> If creating an instance of C, you'd end up with a row in 'a' that has 
> childName set to 'B', and then a row in 'b' that has also a childName, which 
> then is set to 'C'.

   That's a correct behaviour.

> The problem here for me is: how do I create a sql query that filters over the 
> different types? 

   C.select()? Or may be I just understand what do yoy want.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
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
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to