Commit Graph

6285 Commits

Author SHA1 Message Date
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
Philip Jenvey 74f2e214c4 minor cleanup 2011-04-13 16:33:25 -07:00
Mike Bayer 674d4f8d3f - a "having" clause would be copied from the
inside to the outside query if from_self()
were used; in particular this would break
an 0.7 style count() query [ticket:2130].
(also in 0.6.7)
2011-04-13 19:27:40 -04:00
Mike Bayer c67b0c56a3 test only runs on sqlite 2011-04-10 20:53:14 -04:00
Mike Bayer 1da499a838 - Added checks inside the UOW to detect the unusual
condition of being asked to UPDATE or DELETE
on a primary key value that contains NULL
in it.  [ticket:2127]

- Some refinements to attribute history.  More
changes are pending possibly in 0.8, but
for now history has been modified such that
scalar history doesn't have a "side effect"
of populating None for a non-present value.
This allows a slightly better ability to
distinguish between a None set and no actual
change, affects [ticket:2127] as well.

- rewriting the history tests in test_attributes to be
individual per operation/assertion.   its a huge job
so this is partial for the moment.
2011-04-10 20:22:11 -04:00
Mike Bayer fb97a666bb - Fixed bug where reflection of foreign key
created as "REFERENCES <tablename>" without
col name would fail.  [ticket:2115]
(also in 0.6.7)
2011-04-10 10:47:34 -04:00
Mike Bayer 3b22a2ac97 - adjust this to work normally with current logging approach 2011-04-09 14:56:23 -04:00
Mike Bayer 5eee7e2eef changelog 2011-04-08 16:44:15 -04:00