Commit Graph

6292 Commits

Author SHA1 Message Date
Mike Bayer 425b7388cc - Removed the usage of the "collections.MutableMapping"
abc from the ext.mutable docs as it was being used
incorrectly and makes the example more difficult
to understand in any case.  [ticket:2152]
2011-04-28 12:10:24 -04:00
Mike Bayer d03226426c - removed the ancient "polymorphic association"
examples and replaced with an updated set of
examples that use declarative mixins,
"generic_associations".   Each presents an alternative
table layout.
2011-04-27 22:33:37 -04:00
Mike Bayer 7df21e5a1f - a non_primary mapper will inherit the _identity_class
of the primary mapper.  This so that a non_primary
established against a class that's normally in an
inheritance mapping will produce results that are
identity-map compatible with that of the primary
mapper [ticket:2151] (also in 0.6.8)
2011-04-27 12:54:15 -04:00
Mike Bayer fdbfed3f30 - this helps oracle here since it has a panic attack otherwise 2011-04-25 22:51:58 -04:00
Mike Bayer 1092fd6590 uurg, add a use_reaper argument and have zoomark skip the reaping for its very special mode of operation... 2011-04-25 22:29:59 -04:00
Mike Bayer e1ec36fc9e - hardcore force every connection into a strong-referenced set, rollback on every test, close on every context.
this uses pool events but bypasses the pool's fairy/record/dispose services.   pypy still seems to expose
some holes in that at least as far as what some (or maybe just one, cant find it yet) of the tests does.
haven't tested this too deeply, just on sqlite + postgres, cypthon 2.7 + pypy.   will see what the buildbot
says
2011-04-25 21:50:26 -04:00
Mike Bayer 81a025fca4 - Fixed a potential KeyError which under some
circumstances could occur with the identity
    map, part of [ticket:2148]
2011-04-25 11:33:06 -04:00
Mike Bayer e5712e34a7 merge stuff 2011-04-25 11:32:50 -04:00
Michael Trier b435b01f7a Exclude serializer test on pypy. Problem in pickle. 2011-04-24 20:52:15 -04:00
Mike Bayer 815e4ef482 extra change note 2011-04-23 18:42:26 -04:00
Mike Bayer 02fa8bacaa - added Query.with_session() method, switches
Query to use a different session.

- horizontal shard query should use execution
options per connection as per [ticket:2131]
2011-04-23 18:38:01 -04:00
Philip Jenvey 24e6c56da8 update warnings per zxjdbc 2011-04-23 14:15:08 -07:00
Philip Jenvey 2a2cd33314 utilize the zxjdbc PostgresqlHandler for better Decimal handling. hopefully
this won't be necessary eventually (refs http://bugs.jython.org/issue1499)
2011-04-23 13:10:53 -07:00
Mike Bayer 46ee78431c mark all aaa_profiling tests with __requires__ = 'cpython', 2011-04-23 12:34:38 -07:00
Mike Bayer e1ec48b6d9 - close the result here for non refcounting gcs 2011-04-23 12:10:56 -07:00
Mike Bayer 55f87348f3 - add test for [ticket:2142] 2011-04-23 15:05:50 -04:00
Mike Bayer d216298073 - metadata.reflect() and reflection.Inspector()
had some reliance on GC to close connections
  which were internally procured, fixed this.
- added --zero-timeout option to nose fixture, sets pool_timeout to zero
2011-04-23 10:45:11 -07:00
Mike Bayer 3452a2ba03 - Fixed bug whereby if FetchedValue was passed
to column server_onupdate, it would not
have its parent "column" assigned, added
test coverage for all column default assignment
patterns.  [ticket:2147]  also in 0.6.8
2011-04-23 12:34:17 -04:00
Mike Bayer 7ab1eb81d6 - this passes --mockpool for test_execute 100% with pypy. still makes test_reflection later on hang. 2011-04-22 23:52:01 -04:00
Mike Bayer c29ece8b09 - ensure test_execute passes with --mockpool 2011-04-22 23:28:45 -04:00
Philip Jenvey 8b8fb2902b might as well explicitly disable the cext on Jython too 2011-04-22 19:38:39 -07:00
Mike Bayer 7b2a76c4a3 grumpy fix 2011-04-22 22:17:43 -04:00
Mike Bayer 0c1c6431bc document the behavior of get() regarding invalid usages as per [ticket:2144] 2011-04-22 18:41:13 -04:00
Mike Bayer eb569b672b - It is an error to call query.get() when the
given entity is not a single, full class
entity or mapper (i.e. a column).  This is
a deprecation warning in 0.6.8.
[ticket:2144]
2011-04-22 18:33:55 -04:00
Mike Bayer 5b8a84ea44 remove erroneously committed pdb 2011-04-20 15:51:28 -04:00
Mike Bayer 0c560edee7 - Added explicit check for when Column .name
is assigned as blank string [ticket:2140]
2011-04-20 15:49:33 -04:00
Mike Bayer b364021ee9 merge tip 2011-04-19 10:07:03 -04:00
Mike Bayer c718dea749 - Fixed the psycopg2_version parsing in the
psycopg2 dialect.
2011-04-18 12:38:08 -04:00
Mike Bayer 214efa53a0 css fix 2011-04-17 21:33:44 -04:00
Mike Bayer b02193bd7e - Fixed regression introduced in 0.7b4 (!) whereby
query.options(someoption("nonexistent name")) would
fail to raise an error.  Also added additional
error catching for cases where the option would
try to build off a column-based element, further
fixed up some of the error messages tailored
in [ticket:2069]
- added another huge crapload of tests to the existing
crapload of tests we already had for options..._get_paths()
and dependencies are covered 100% now
- one case still doesn't do the "right" thing, using an option
specific to relationships will silently pass if the endpoint
is a column-based attribute, and vice versa.
2011-04-17 21:03:02 -04:00
Mike Bayer 733e05f17c Added tag rel_0_7b4 for changeset 4dd69ff878 2011-04-17 16:55:50 -04:00
Mike Bayer 4dd69ff878 - remove obsolete test regarding PG server side cursors + ORM query, was failing + hanging jenkins rel_0_7b4 2011-04-17 16:51:04 -04:00
Mike Bayer 566f468877 - move documentation of available execution options to Connection - this is the main
place these should be used
- Executable disallows "compiled_cache" option for now which was previously being ignored
[ticket:2131]
- Query now passes execution options to the Connection rather than the statement
so that all options are allowed including compiled cache.
2011-04-17 16:10:59 -04:00
Mike Bayer 69dcd805d2 - Added explicit true()/false() constructs to expression
lib - coercion rules will intercept "False"/"True"
into these constructs.  In 0.6, the constructs were
typically converted straight to string, which was
no longer accepted in 0.7.  [ticket:2117]
2011-04-17 15:37:12 -04:00
Mike Bayer fbcfd079de callcount update for cext + 2.7 2011-04-17 15:00:27 -04:00
Mike Bayer ae363b0663 - Before/after attach events for PrimaryKeyConstraint
now function, tests added for before/after events
on all constraint types.  [ticket:2105]
2011-04-17 13:53:21 -04:00
Mike Bayer 509f3fb492 - Fixed incorrect usage of "," in over() clause
being placed between the "partition" and "order by"
clauses.  [ticket:2134]
2011-04-17 13:40:37 -04:00
Mike Bayer fcded554df - rework setup.py script to work with:
- Python 3
   - Python 3 builds if Distribute isn't installed
- rework install documentation again
- raise if doc build with mako < 0.4.1
- Python 3.1 builds force doctest parse but then fails due to distribute bug,
  so remove usage of backslash \\ in hybrid.py docstring
- put in the latest ez_setup.py
2011-04-17 13:22:33 -04:00
Mike Bayer 4f6f0edd78 a crapload of doc tweaks including [ticket:1666], thanks Toby ! 2011-04-16 12:04:54 -04:00
Mike Bayer f8a7045f89 try a between here since 'in' looks for exact matches, doesn't work
with extra thingies in the version
2011-04-15 20:55:15 -04:00
Mike Bayer e155e0554a merge tip + tidy 2011-04-15 20:43:17 -04:00
Mike Bayer 33e906638a some font changes to match the site style 2011-04-15 20:41:13 -04:00
Michael Trier 04b56603cd Exclude test on MySQL 5.1.49 - 5.1.52.
See https://bugs.launchpad.net/ubuntu/+source/mysql-5.1/+bug/706988
2011-04-15 15:24:20 -04:00
Mike Bayer 5cd415d264 no idea what "auto-commit" means here. some reorg. 2011-04-15 12:55:31 -04:00
Mike Bayer 2d34ded2d8 - fixed bug where "from" clause gathering from an
over() clause would be an itertools.chain() and
    not a list, causing "can only concatenate list"
    TypeError when combined with other clauses.
2011-04-14 23:44:03 -04:00
Mike Bayer 7cd4ccabaf fix for pdf 2011-04-14 21:08:54 -04:00
Mike Bayer 3f06806cff - add a new "documentation overview" page. rip off a project widely known
to start with "Dj".
2011-04-14 20:50:52 -04:00
Mike Bayer f9113b5dbf - Fixed support for precision numerics when using
pg8000. [ticket:2132]
2011-04-14 13:54:47 -04:00
Philip Jenvey e6fd32e173 explicitly disable the cextension on Python 3 until it's updated for it 2011-04-13 18:45:58 -07:00
Philip Jenvey a2094b1b6f enable the cextension by default, falling back to pure python when the
extension fails to compile
fixes #2129
2011-04-13 18:32:15 -07:00