Commits

Author Commit Message Labels Comments Date
Mike Bayer
remove "is None" from boolean tests
Mike Bayer
limit scope of try/except
Mike Bayer
use long for query runid counter
Mike Bayer
- added is_disconnect() support for oracle - fixed _handle_dbapi_error to detect endless loops, doesn't call rollback/cursor.close etc. in case of disconnect
Mike Bayer
- mapped classes which extend "object" and do not provide an __init__() method will now raise TypeError if non-empty *args or **kwargs are present at instance construction time (and are not consumed by any extensions such as the scoped_session mapper), consistent with the behavior of normal Python classes [ticket:908]
Mike Bayer
- fixed Query bug when filter_by() compares a relation against None [ticket:899]
Mike Bayer
- MapperExtension.before_update() and after_update() are now called symmetrically; previously, an instance that had no modified column attributes (but had a relation() modification) could be called with before_update() but not after_update() [ticket:907]
Mike Bayer
- fixed session.refresh() with instance that has custom entity_name [ticket:914]
Mike Bayer
some rudimentary fixes to get instance-level deferreds/lazy loads to transfer over on merge()
Mike Bayer
cruft ! who knew
Mike Bayer
added assertion for expiry's current inability to detect a PK switch in the DB
Mike Bayer
- disabled the "populate expired/deferred attributes as we come across them" functionality in mapper._instance(), as its not completed, doesn't properly handle mutable scalar attributes, and has poor test coverage
Mike Bayer
mass load wont overwrite modified expired attributes
Mike Bayer
broke up various class-level mapper/instance fanfare into class_level_loader; load-time setup_loader just returns a loader object with no checks
Mike Bayer
- reworked all lazy/deferred/expired callables to be serializable class instances, added pickling tests - cleaned up "deferred" polymorphic system so that the mapper handles it entirely - columns which are missing from a Query's select statement now get automatically deferred during load.
Mike Bayer
- inheriting mappers now inherit the MapperExtensions of their parent mapper directly, so that all methods for a particular MapperExtension are called for subclasses as well. As always, any MapperExtension can return either EXT_CONTINUE to continue extension processing or EXT_STOP to stop processing. The order of mapper resolution is: <extensions declared on the classes mapper> <extensions declared on the classes' parent mapper> <globally declared extensions>. Note that if you instantiate the same extension class separately and then apply it individually for two mappers in the same inheritance chain, the extension will be applied twice to the inheriting class, and each method will be called twice. To apply a mapper extension explicitly to each inheriting class but have each method called only once per operation, use the same instance of the extension f…
Mike Bayer
- sqlite SLDate type will not erroneously render "microseconds" portion of a datetime or time object when sent to the DB.
ram
forgot CHANGES
ram
Fix for autoload of non-identity PK integer columns [824] Better datetime checking/conversion for pyodbc adodbapi [842] Fix for autoloading schema-qualified tables [901] Convert_unicode support for all dialects [839]
jason kirtland
- Re-raise SystemExit et al in _ConnectionRecord.close - Little code cleanup- decreased verbosity of string formatting.
Mike Bayer
- auto-reconnect support improved; a Connection can now automatically reconnect after its underlying connection is invalidated, without needing to connect() again from the engine. This allows an ORM session bound to a single Connection to not need a reconnect. Open transactions on the Connection must be rolled back after an invalidation of the underlying connection else an error is raised. Also fixed bug where disconnect detect was not being called for cursor(), r…
Lele Gaifax
Fix the unpacking of the refered table name under Firebird This fixes a little glitch introduced in [3959], in case of "implicit FKs" (that is, {{{ForeignKey("orders")}}}, where the field(s) is missing).
Mike Bayer
introductory docstring bonanza
jason kirtland
Apply default cascade rules for firebird self-ref ForeignKeys.
Mike Bayer
a little pre-lunch decrufting and cleanup
Lele Gaifax
Use an explicit ordering in the query
Lele Gaifax
Add Firebird to the list of DBs that needs explicit sequences
Mike Bayer
get most oracle tests in sql working again....
Mike Bayer
- cleanup; lambdas removed from properties; properties mirror same-named functions (more like eventual decorator syntax); remove some old methods, factor out some "raiseerr" ugliness to outer lying functions. - corresponding_column() integrates "require_embedded" flag with other set arithmetic
Mike Bayer
- select().as_scalar() will raise an exception if the select does not have exactly one expression in its columns clause. - added "helper exception" to select.type access, generic functions raise the chance of this happening - a slight behavioral change to attributes is, del'ing an attribute does *not* cause the lazyloader of that attribute to fire off again; the "del" makes the effective value of the attribute "None". To re-trigger the "loader" for an attribute, use ses…
  1. Prev
  2. Next