On Tue, Dec 12, 2006 at 12:01:44PM -0500, David Turner wrote:
> You are probably using some released version of SQLObject and I am using
> svn head?  I just tested with 0.7.2 and it worked correctly.  So it must
> be something broken fairly recently.

for student in Student.select():
   print student

SQLObject 0.7.2:
 8/QueryR  :  SELECT student.id, student.child_name, student.year FROM student 
WHERE 1 = 1
<Student 1 year=1 department='CS'>

SQLObject 0.8 (from the trunk):
 7/QueryR  :  SELECT role.id, role.department, role.child_name FROM role WHERE 
((role.child_name) = ('Student'))
 7/Select children of the class Student:  SELECT student.id, student.year, 
student.child_name FROM student WHERE ((student.id) = (1))
 7/QueryR  :  SELECT student.id, student.year, student.child_name FROM student 
WHERE ((student.id) = (1))
<Student 1 year=1 department='CS'>

   The result is the same, but the way to achieve it is absolutely
different. It would be hard to apply MAX() in this situation.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to