Commit Graph

10240 Commits

Author SHA1 Message Date
Mike Bayer e602a73197 - use a template database for PG so extensions get created automatically 2014-07-25 20:19:06 -04:00
Mike Bayer 306047c006 Merge branch 'master' into xdist_poc 2014-07-25 19:15:11 -04:00
Mike Bayer 54d086253e - restore non_updating_cascade to test_manytomany_nonpassive, but also
add sane_multi_rowcount requirement, as pg8000 doesn't do "multi" row count.
2014-07-25 18:51:44 -04:00
Mike Bayer 9e6624c049 - proof of concept for parallel testing 2014-07-25 18:33:04 -04:00
Mike Bayer fe878f5aff - more pg8000 tests passing 2014-07-25 16:39:44 -04:00
Mike Bayer 3c0efe508f Merge remote-tracking branch 'origin/pr/117' into pg8000 2014-07-25 16:17:15 -04:00
Mike Bayer d92177cede - Fixed bug in :class:.postgresql.array object where comparison
to a plain Python list would fail to use the correct array constructor.
Pull request courtesy Andrew.  fixes #3141
2014-07-25 16:08:21 -04:00
Mike Bayer b7e75172b3 Merge remote-tracking branch 'origin/pr/124' into issue3141 2014-07-25 16:05:38 -04:00
Mike Bayer 31178db914 - flake8 all of test/dialect/postgresql
- add __backend__ to most tests so that pg8000 can start coming in
2014-07-25 16:04:35 -04:00
Mike Bayer 6b60d3a9e6 - The MySQL dialect will now disable :meth:.ConnectionEvents.handle_error
events from firing for those statements which it uses internally
to detect if a table exists or not.   This is achieved using an
execution option ``skip_user_error_events`` that disables the handle
error event for the scope of that execution.   In this way, user code
that rewrites exceptions doesn't need to worry about the MySQL
dialect or other dialects that occasionally need to catch
SQLAlchemy specific exceptions.
2014-07-25 12:14:22 -04:00
Mike Bayer 8560522ff0 - use a variant with expected collation here for mysql 2014-07-25 12:02:05 -04:00
Mike Bayer 0df977ccad - Added a supported :meth:.FunctionElement.alias method to functions,
e.g. the ``func`` construct.  Previously, behavior for this method
was undefined.  The current behavior mimics that of pre-0.9.4,
which is that the function is turned into a single-column FROM
clause with the given alias name, where the column itself is
anonymously named.
fixes #3137
2014-07-24 14:33:50 -04:00
Mike Bayer 07c01b77f1 merge 0.9.8 start 2014-07-24 14:04:23 -04:00
Andrew ba58708643 Fix argument to array() in array._bind_param()
array.__init__() expects a list as its sole parameter but inside _bind_param(), instead of sending a list it's sending each item in the list as a separate argument which is incorrect.
2014-07-24 15:56:50 +10:00
Mike Bayer f2b267043e forwards port 0.9 changelog update 2014-07-22 17:12:17 -04:00
Mike Bayer bcfe30a238 - forwards port 0.8 changelog update 2014-07-22 17:10:33 -04:00
Mike Bayer 15b0cf56ff - missing 0.8 change forwards port 2014-07-22 16:53:46 -04:00
Mike Bayer dba17c8ca6 spelling 2014-07-22 16:36:59 -04:00
Mike Bayer 23f3621d01 - ticket inline 2014-07-22 16:25:58 -04:00
Mike Bayer 63c6aa0104 - update some SQL server tests, support
- add support for IDENTITY INSERT setting for INSERT with inline VALUES
2014-07-22 13:42:38 -04:00
Mike Bayer 76e127450c - allow 10 stray connections that need a gc
- be specific as to what occurred when we collect stray gc
2014-07-22 12:55:17 -04:00
Mike Bayer b7021b698d - fix missing release date 2014-07-21 17:25:13 -04:00
Mike Bayer a007c6e616 put a greater variance into this test to prevent sporadic failures 2014-07-21 12:09:12 -04:00
Mike Bayer c02e95ed33 - Fixed bug introduced in 0.9.5 by new pg8000 isolation level feature
where engine-level isolation level parameter would raise an error
on connect. fixes #3134
2014-07-21 11:58:44 -04:00
mike bayer 72ac9c1892 Merge pull request #120 from bogkyu/pr_fix_docgen
Fix doc gen on Windows platform
2014-07-21 10:42:05 -04:00
Bog 0cd79fb1f5 Fix doc gen on Windows platform
- replaced hardcoded ":" path separator with OS dependent one.
2014-07-21 00:52:58 +02:00
Mike Bayer 30ab1a02c5 - support args 2014-07-20 15:34:08 -04:00
Brian Jarrett cca03097f4 - apply pep8 formatting to sqlalchemy/sql, sqlalchemy/util, sqlalchemy/dialects,
sqlalchemy/orm, sqlalchemy/event, sqlalchemy/testing
2014-07-20 12:44:40 -04:00
Tony Locke a9d8d752ef PEP8 tidy of test/orm/test_dynamic.py 2014-07-20 11:59:33 +01:00
Tony Locke 7239f58742 Fixes for pg8000 for test/orm/test_dynamic.py 2014-07-20 11:59:33 +01:00
Tony Locke 0365a53c5d PEP8 tidy of test/orm/test_froms.py 2014-07-20 11:59:33 +01:00
Tony Locke b4f9a6949b Opened test_self_referential for pg8000
The test orm/test_froms.py test_self_referential works with pg8000 now,
so I've opened it up.
2014-07-20 11:59:33 +01:00
Tony Locke aa6ecc36b7 PEP8 tidy for test/orm/test_naturalpks.py 2014-07-20 11:59:33 +01:00
Tony Locke bdb99239f3 Remove requirement for manytomany_nonpassive
Removed the non_updating_cascade requirement from
test_manytomany_nonpassive. This is because setting
passive_updates=False in a relationship should work on *all* dialects.
2014-07-20 11:59:33 +01:00
Tony Locke 8646af82aa PEP8 tidy of test/orm/test_query.py 2014-07-20 11:59:33 +01:00
Tony Locke 4924058818 pg8000 passing test/orm/test_query.py 2014-07-20 11:59:09 +01:00
Tony Locke 6f5011a5c7 PEP8 tidy for test/orm/test_transaction.py 2014-07-19 20:20:12 +01:00
Tony Locke 8fb6a91f1b Fix support for two phase commit in pg8000 dialect
The postgresql base dialect has problems with two-phase commit because
there isn't a standard way of handling autocommit in DBAPI. This commit
modifies the pg8000 dialect to use the DBAPI tpc extension, which is
supported by pg8000 as of version 1.9.11.
2014-07-19 20:20:12 +01:00
Tony Locke ebf74bd659 PEP8 tidy for test/orm/test_versioning.py 2014-07-19 20:20:12 +01:00
Mike Bayer 827329a0cc - add E721 2014-07-18 17:46:51 -04:00
Mike Bayer bb5f4392a4 - update the flake8 rules again
- apply autopep8 + manual fixes to most of test/sql/
2014-07-18 17:40:58 -04:00
Mike Bayer 0eb53b2e79 - Fixed bug in oracle dialect test suite where in one test,
'username' was assumed to be in the database URL, even though
this might not be the case.  Fixes #3128
2014-07-18 14:27:59 -04:00
Mike Bayer 4020f2f440 - also add the alternate approach, name column distinctly from attribute name,
ref #3129
2014-07-16 15:24:32 -04:00
Mike Bayer 0083075b8e - add a documentation section for naming conflicts, fixes #3129 2014-07-16 15:18:03 -04:00
Mike Bayer 4597c1fe36 - reinstate E123, E125, E128
- edit strategies.py to conform
2014-07-16 14:30:35 -04:00
Mike Bayer 889013529f - forwards-port changelog for ref #3093 2014-07-16 13:44:27 -04:00
Mike Bayer 828cf1263a - use an odict here to ensure ordering of properties 2014-07-15 18:59:44 -04:00
Mike Bayer 921d487e41 - add a full env for pypy, name it funny to avoid hidden/undocumented
tox behavior
2014-07-15 15:55:37 -04:00
Mike Bayer e63767ed47 - fully flake8 this file 2014-07-15 13:34:55 -04:00
Mike Bayer 61384fd0e5 - Fixed a regression caused by 🎫2976 released in 0.9.4 where
the "outer join" propagation along a chain of joined eager loads
would incorrectly convert an "inner join" along a sibling join path
into an outer join as well, when only descendant paths should be
receiving the "outer join" propagation; additionally, fixed related
issue where "nested" join propagation would take place inappropriately
between two sibling join paths.

this is accomplished by re-introducing the removed flag "allow_innerjoin",
now inverted and named "chained_from_outerjoin".  Propagating this flag
allows us to know when we have encountered an outerjoin along a load
path, without confusing it for state obtained from a sibling path.

fixes #3131
ref #2976
2014-07-15 13:20:55 -04:00