Commit Graph

3191 Commits

Author SHA1 Message Date
Mike Bayer f1cb136a62 - added a mapper() flag "eager_defaults"; when set to
True, defaults that are generated during an INSERT
or UPDATE operation are post-fetched immediately,
instead of being deferred until later.  This mimics
the old 0.3 behavior.
2008-01-10 22:32:51 +00:00
Mike Bayer 062b8c0eb1 - added extra fk override test
- proper error message is raised when trying to
access expired instance attributes with no session
present
2008-01-10 18:05:20 +00:00
Lele Gaifax 37570dc25e Recognize another Firebird exception in dialect.is_disconnect() 2008-01-10 17:40:38 +00:00
Mike Bayer 63662e37ca - finally added PGMacAddr type to postgres
[ticket:580]
2008-01-10 15:24:14 +00:00
Mike Bayer fc537e41cb converted tests to use remote_side and foreign_keys. but...wow these are hard tests.. 2008-01-10 06:51:51 +00:00
Jason Kirtland bf36c648f2 Reworked r4042- undeclared deprecation warnings are now *fatal* to tests. No surprises. 2008-01-10 02:37:39 +00:00
Jason Kirtland 84576e3258 test suite deprecation rampage 2008-01-09 22:54:51 +00:00
Jason Kirtland 046ec98a0b bump. 2008-01-09 22:53:33 +00:00
Mike Bayer 0a860c6fb0 formatting, added UnicodeText rel_0_4_2p3 2008-01-09 21:37:42 +00:00
Jason Kirtland 912432179a Silenced deprecation warnings when testing deprecated extensions... 2008-01-09 20:41:14 +00:00
Jason Kirtland 4c705b6089 Added explicit length to more testing String columns. 2008-01-09 20:29:04 +00:00
Jason Kirtland 54f7111662 re-bump 2008-01-09 20:23:53 +00:00
Jason Kirtland c83bb94e0d Added UnicodeText alias 2008-01-09 20:22:41 +00:00
Mike Bayer 979c9323dc - fixed bug with session.dirty when using "mutable scalars"
(such as PickleTypes)

- added a more descriptive error message when flushing on a
relation() that has non-locally-mapped columns in its primary or
secondary join condition
2008-01-09 18:52:35 +00:00
Mike Bayer eefd1f78a2 redid the _for_ddl String/Text deprecation warning correctly [ticket:912] 2008-01-09 18:09:49 +00:00
Mike Bayer 6eb9c11e7b - fixed bug in union() so that select() statements which don't derive
from FromClause objects can be unioned
2008-01-08 21:53:37 +00:00
Mike Bayer 93d6f1d58a - Text type is properly exported now and does not raise a warning
on DDL create
2008-01-08 08:55:18 +00:00
Jason Kirtland c111f6f93d Fixed reflection of mysql empty string column defaults. 2008-01-08 07:46:37 +00:00
Mike Bayer 2fc1bf2615 bump 2008-01-07 20:13:29 +00:00
Mike Bayer 500982b7b3 logged [ticket:923] fix rel_0_4_2b 2008-01-07 19:59:23 +00:00
Rick Morrison 46720f0bbc Fix for ticket [923] 2008-01-07 19:33:29 +00:00
Mike Bayer e8feacf1db - fixed an attribute history bug whereby assigning a new collection
to a collection-based attribute which already had pending changes
would generate incorrect history [ticket:922]

- fixed delete-orphan cascade bug whereby setting the same
object twice to a scalar attribute could log it as an orphan
[ticket:925]
- generative select.order_by(None) / group_by(None) was not managing to
reset order by/group by criterion, fixed [ticket:924]
2008-01-07 18:52:02 +00:00
Mike Bayer acd13f99f1 - suppressing *all* errors in InstanceState.__cleanup() now. 2008-01-06 20:41:48 +00:00
Mike Bayer d879135085 - fixed bug which could occur with polymorphic "union" mapper
which falls back to "deferred" loading of inheriting tables

- the "columns" collection on a mapper/mapped class (i.e. 'c')
is against the mapped table, not the select_table in the
case of polymorphic "union" loading (this shouldn't be
noticeable)
2008-01-06 20:32:45 +00:00
Mike Bayer a78914942c - synonyms can now be created against props that don't exist yet,
which are later added via add_property().  This commonly includes
backrefs. (i.e. you can make synonyms for backrefs without
worrying about the order of operations) [ticket:919]
2008-01-05 23:27:02 +00:00
Mike Bayer 8fe38c7e95 - changed name of TEXT to Text since its a "generic" type; TEXT name is
deprecated until 0.5.  The "upgrading" behavior of String to Text
when no length is present is also deprecated until 0.5; will issue a
warning when used for CREATE TABLE statements (String with no length
for SQL expression purposes is still fine) [ticket:912]
2008-01-05 22:59:18 +00:00
Jason Kirtland 68a9e6cb1f Added 'function_call_count' assertion decorator. The full-suite vs. isolated run call count discrepancy needs to be ironed out before this can be applied to zoomark. 2008-01-05 21:56:22 +00:00
Jason Kirtland 40efd3a9c1 Updates 2008-01-05 21:46:08 +00:00
Jason Kirtland 35f7a0b594 Added lots o' info. 2008-01-05 20:50:10 +00:00
Jason Kirtland 2bc1c28c44 More overloads: fix cascades for += on a list relation, added operator support to association proxied lists. 2008-01-05 19:11:58 +00:00
Jason Kirtland f9fd5bfb86 bump. 2008-01-05 18:42:46 +00:00
Mike Bayer 829e9f8a91 calling this 0.4.2a rel_0_4_2a 2008-01-05 18:27:12 +00:00
Mike Bayer e5b6c7bc33 - 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
2008-01-05 18:26:28 +00:00
Jason Kirtland 9123a1d5ce Experimental: modestly more informative repr() for some expressions (using .description) 2008-01-05 00:37:08 +00:00
Jason Kirtland 5e12394aac Migrated a few in-function 'from x import y' to the 'global x; if x is None' style. 2008-01-05 00:25:57 +00:00
Jason Kirtland 38bcc2b2f8 Refined bulk-assignment aspects of the r3999 in-place collection operator fix. Also? r4000! 2008-01-04 20:40:22 +00:00
Jason Kirtland a230391a37 Fixed in-place set mutation operator support [ticket:920] 2008-01-04 20:17:42 +00:00
Jason Kirtland 0c515c5117 Added REPLACE statements to mysql autocommit list. 2008-01-04 19:10:18 +00:00
Mike Bayer 57a5b5f58e func unittest fix 2008-01-04 03:13:20 +00:00
Mike Bayer 64de56e55e fix select tests for labeled functions 2008-01-04 03:09:17 +00:00
Mike Bayer 1e69e26924 add anonymous labels to function calls 2008-01-04 01:00:42 +00:00
Ants Aasma efb89f2113 fix not calling the result processor of PGArray subtypes. (a rather embarrasing copypaste error) [ticket:913] 2008-01-03 23:38:55 +00:00
Mike Bayer ebe83b95ad - 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.
2008-01-02 23:13:02 +00:00
Mike Bayer e12075efa8 fix weakref issue seen on one buildbot test rel_0_4_2 2008-01-02 01:34:25 +00:00
Mike Bayer a8b62a02dd - further fix to new TypeDecorator, so that subclasses of TypeDecorators work properly
- _handle_dbapi_exception() usage changed so that unwrapped exceptions can be rethrown with the original stack trace
2008-01-02 01:29:38 +00:00
Mike Bayer 02a4176a65 happy new year 2008-01-01 17:42:17 +00:00
Mike Bayer 226a95cb4f fix to new TypeDecorator 2008-01-01 01:47:58 +00:00
Mike Bayer 65c618534f fix up oracle handling of LOB/string [ticket:902], slight fixes to defaults.py but we
will need to fix up result-type handling some more
2008-01-01 00:43:24 +00:00
Mike Bayer 85ab0501f4 filter() criterion takes mapper equivalent_columns into account when it adapts to select_table. more to come in [ticket:917] . 2007-12-31 10:23:21 +00:00
Mike Bayer 7cc356a701 remove "is None" from boolean tests 2007-12-29 20:52:50 +00:00