On Mon, Mar 06, 2006 at 09:32:22AM +0200, Max Ischenko wrote:
> sr = cls.select(...)
cls.select() is supposed to return a list of instances of the cls class
filled with all columns (mapped to attributes).
> IMO, it'd be great if SelectResults.distinct just accepted column and
> then put it into SELECT clause.
This would be against the SQLObject spirit as I understand it. What
object would such SelectResults return? A list of lists of simple values
instead of a list of instances? That's the job for sqlbuilder.Select(). If
you want to merge SelectResults and sqlbuilder.Select() - you know the
drill: patch in the SF tracker, tests, documentation...
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss