[SQL-CVS] [ sqlobject-Bugs-1764739 ] Buggs in Select
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: SourceForge.net <no...@so...> - 2007-09-07 13:15:12
|
Bugs item #1764739, was opened at 2007-07-31 19:27 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1764739&group_id=74338 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Johan Carlsson (johanc) >Assigned to: Oleg Broytmann (phd) Summary: Buggs in Select Initial Comment: This is for: sqlobject-0.10dev_r2829-py2.4.egg I've found some things that doesn't work in the sqlbuilder.Select class. In the __sqlrepr__ method ops['limit'] isn't used correctly: def __sqlrepr__: ... if self.ops['limit'] is not NoDefault: end = start + limit Now it seem like when using slices ops['limit'] can be None (not NoDefault). Also as can be noted limit is never set, I supposed it to be self.ops['limit']. Resulting in: NameError: global name 'limit' is not defined Select(..., limit=2) does give (not sure why, I might be me): OperationalError: near "<": syntax error ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2007-09-07 17:15 Message: Logged In: YES user_id=4799 Originator: NO I think it's been fixed in the revision 2893. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1764739&group_id=74338 |