Re: [SQLObject] Problem with LEFTJOINOn

2007-08-03 Thread Jim Steil
Oleg: Thanks much for all the info. Although it wasn't what I wanted to hear, it's better off to know so I don't waste time beating my head against it. Thanks again. -Jim Oleg Broytmann wrote: On Fri, Aug 03, 2007 at 01:19:10PM -0500, Jim Steil wrote: The only way in SQLObject to

Re: [SQLObject] Problem with LEFTJOINOn

2007-08-03 Thread Oleg Broytmann
On Fri, Aug 03, 2007 at 01:19:10PM -0500, Jim Steil wrote: > > The only way in SQLObject to select columns from multiple tables is > >sqlbuilder.Select(). > > I've tried that in the past, but I seem to recall that it doesn't return > the same type of object as a regular .select(), and that is w

Re: [SQLObject] Problem with LEFTJOINOn

2007-08-03 Thread Jim Steil
Oleg Broytmann wrote: On Fri, Aug 03, 2007 at 10:55:06AM -0500, Jim Steil wrote: Thanks for the response. I do understand all of that, but in the doc (http://www.sqlobject.org/SQLObject.html#left-join-and-other-joins), it gives the following example: MyTable.select( join=LEFTJOINOn(Non

Re: [SQLObject] Problem with LEFTJOINOn

2007-08-03 Thread Oleg Broytmann
On Fri, Aug 03, 2007 at 10:55:06AM -0500, Jim Steil wrote: > Thanks for the response. I do understand all of that, but in the doc > (http://www.sqlobject.org/SQLObject.html#left-join-and-other-joins), it > gives the following example: > > MyTable.select( >join=LEFTJOINOn(None, Table1, >

Re: [SQLObject] Problem with LEFTJOINOn

2007-08-03 Thread Jim Steil
Thanks for the response. I do understand all of that, but in the doc (http://www.sqlobject.org/SQLObject.html#left-join-and-other-joins), it gives the following example: MyTable.select( join=LEFTJOINOn(None, Table1, MyTable.q.name == Table1.q.value)) will return the foll

Re: [SQLObject] Problem with LEFTJOINOn

2007-08-03 Thread Oleg Broytmann
On Fri, Aug 03, 2007 at 10:15:50AM -0500, Jim Steil wrote: > x = RailCar.select(...) > > The problem is that I don't get any of the fields from the RailStatus > table in the select. The problem is not with the join, but with your understanding of .select(). SQLObject.select() can do simple or

[SQLObject] Problem with LEFTJOINOn

2007-08-03 Thread Jim Steil
Hi: I'm having a problem with my left join. I'm joining two tables using: x = RailCar.select(join=LEFTJOINOn(RailCar, RailStatus, RailCar.q.id==RailStatus.q.railCarID)) if I then print x, I get: SELECT RailCar.railCarId, RailCar.carInitials, RailCar.carNumber, RailCar.active, RailCar.created