hey all - 0.4.2a fixes a fairly serious issue that may arise when multiple __init__ calls are used in the construction of an object, in conjunction with an auto-saving routine such as ScopedSession.mapper. It also has a fix for the PGArray type and some advanced collection methods, as well as a new "yield_per()" method on Query which can be used in very special circumstances to yield objects as they are constructed (and will drive you insane if the circumstances are not sufficiently special...so use with caution !).
Get SQLAlchemy 0.4.2a at : http://www.sqlalchemy.org/download.html 0.4.2a ----- - orm - fixed fairly critical bug whereby the same instance could be listed more than once in the unitofwork.new collection; most typically reproduced when using a combination of inheriting mappers and ScopedSession.mapper, as the multiple __init__ calls per instance could save() the object with distinct _state objects - added very rudimentary yielding iterator behavior to Query. Call query.yield_per(<number of rows>) and evaluate the Query in an iterative context; every collection of N rows will be packaged up and yielded. Use this method with extreme caution since it does not attempt to reconcile eagerly loaded collections across result batch boundaries, nor will it behave nicely if the same instance occurs in more than one batch. This means that an eagerly loaded collection will get cleared out if it's referenced in more than one batch, and in all cases attributes will be overwritten on instances that occur in more than one batch. - Fixed in-place set mutation operators for set collections and association proxied sets. [ticket:920] - dialects - Fixed the missing call to subtype result processor for the PGArray type. [ticket:913] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---