Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
more fixes to bound parameter exception reporting
Tags
rel_0_5_4p2
Mike Bayer
- added unit test for exception formatting - Deprecated the hardcoded TIMESTAMP function, which when used as func.TIMESTAMP(value) would render "TIMESTAMP value". This breaks on some platforms as Postgres doesn't allow bind parameters to be used in this context. The hard-coded uppercase is also inappropriate and there's lots of other PG casts that we'd need to support. So instead, use text constructs i.e. select(["timestamp '12/05/09'"])…
Mike Bayer
- Repaired the printing of SQL exceptions which are not based on parameters.
Mike Bayer
- Fixed an attribute error introduced in 0.5.4 which would occur when merge() was used with an incomplete object.
Tags
rel_0_5_4p1
Mike Bayer
- Back-ported the "compiler" extension from SQLA 0.6. This is a standardized interface which allows the creation of custom ClauseElement subclasses and compilers. In particular it's handy as an alternative to text() when you'd like to build a construct that has database-specific compilations. See the extension docs for details.
Tags
rel_0_5_4
Mike Bayer
unusual ...
Mike Bayer
- The "polymorphic discriminator" column may be part of a primary key, and it will be populated with the correct discriminator value. [ticket:1300]
Mike Bayer
- Reflecting a FOREIGN KEY construct will take into account a dotted schema.tablename combination, if the foreign key references a table in a remote schema. [ticket:1405]
Mike Bayer
- Exception messages are truncated when the list of bound parameters is larger than 10, preventing enormous multi-page exceptions from filling up screens and logfiles for large executemany() statements. [ticket:1413]
Mike Bayer
- Removed all* O(N) scanning behavior from the flush() process, i.e. operations that were scanning the full session, including an extremely expensive one that was erroneously assuming primary key values were changing when this was not the case. * one edge case remains which may invoke a full scan, if an existing primary key attribute is modified to a new value.
Mike Bayer
- Significant performance enhancements regarding Sessions/flush() in conjunction with large mapper graphs, large numbers of objects: - The Session's "weak referencing" behavior is now *full* - no strong references whatsoever are made to a mapped object or related items/collections in its __dict__. Backrefs and other cycles in objects no longer affect the Session's ability to lose all references to unmodified objects. Objects with pending changes still are maintained strongly until…
Mike Bayer
fix mysql tests
Mike Bayer
- Fixed obscure mapper compilation issue when inheriting mappers are used which would result in un-initialized attributes.
Mike Bayer
- It is now an error to specify both columns of a binary primaryjoin condition in the foreign_keys or remote_side collection. Whereas previously it was just nonsensical, but would succeed in a non-deterministic way.
Mike Bayer
- Fixed bug which prevented "mutable primary key" dependency logic from functioning properly on a one-to-one relation(). [ticket:1406] - moved MySQL to use innodb for naturalpks tests
Michael Trier
Corrected the SQLite SLBoolean type so that it properly treats 1 only as True. Fixes #1402
Mike Bayer
- MapperOptions and other state associated with query.options() is no longer bundled within callables associated with each lazy/deferred-loading attribute during a load. The options are now associated with the instance's state object just once when it's populated. This removes the need in most cases for per-instance/attribute loader objects, improving load speed and memory overhead for individual instances. [ticket:1391]
Mike Bayer
this falls back to "expire" in any case since concat_op is not supported by the evaluator
Michael Trier
Corrected missing stop in the ORM Tutorial. Fixes #1395.
Michael Trier
Modified savepoint logic in mssql to ensure that it does not step on non-savepoint oriented routines. Savepoint support is still very experimental.
Mike Bayer
- Allowed pickling of PropertyOption objects constructed with instrumented descriptors; previously, pickle errors would occur when pickling an object which was loaded with a descriptor-based option, such as query.options(eagerload(MyClass.foo)).
Michael Trier
Modified query_cls on DynamicAttribteImpl to accept a full mixin version of the AppenderQuery.
Mike Bayer
we work with sphinx 0.6.1 now
Ants Aasma
Query.update() and Query.delete() should turn off eagerloads. Fixes #1378.
Michael Trier
Fixed adding of deferred or othe column properties to a declarative class.
Michael Trier
Removed allow_column_override documentation. Fixes #1381.
Michael Trier
Added copy and __copy__ methods to the OrderedDict. Fixes #1377.
Michael Trier
Cleaned up the deprecation problems with the examples.
Michael Trier
Corrected the sqlite float type so that it properly gets reflected as a SLFloat type. Fixes #1273.
Michael Trier
Added in MSSQL reserved words list. Fixes #1310
  1. Prev
  2. Next