]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
9 years ago- adjust the MultiSchemaTest to handle multiple test_schemas / processes at the
Mike Bayer [Mon, 8 Feb 2016 18:35:36 +0000 (13:35 -0500)] 
- adjust the MultiSchemaTest to handle multiple test_schemas / processes at the
same time

(cherry picked from commit 80853059a9f4bebfe41f9c340eddc2d6a86ef70f)

9 years ago- adjust to allow dblink tests to work with multiprocess users.
Mike Bayer [Mon, 8 Feb 2016 18:13:39 +0000 (13:13 -0500)] 
- adjust to allow dblink tests to work with multiprocess users.
unfortunately the synonym doesn't work for SQL statements here
when the dblink is on a different user, testing this is not really
critical so just removed it.

(cherry picked from commit 7e619d0be41afc3b6cd5e5fceba9dbc5f39b012d)

9 years ago- more oracle fixes
Mike Bayer [Thu, 4 Feb 2016 01:37:42 +0000 (20:37 -0500)] 
- more oracle fixes

(cherry picked from commit 93c5328e66d8491e73027f6e789df2255c4fa767)

9 years ago- add multi-database provisioning for oracle
Mike Bayer [Wed, 3 Feb 2016 23:26:00 +0000 (18:26 -0500)] 
- add multi-database provisioning for oracle

(cherry picked from commit c01d11907cbc98ddefe323c6115bc954b908f101)

9 years ago- add literal_binds for delete() statements in addition to insert()/update()
Mike Bayer [Wed, 3 Feb 2016 16:07:44 +0000 (11:07 -0500)] 
- add literal_binds for delete() statements in addition to insert()/update()
- move tests to CRUDTest
- changelog, fixes #3643

(cherry picked from commit 150591f9e0a94902cb2a76b68ac7c9d8a1a3ec83)

9 years agofix passing literal_binds flag through for update and insert
Tim Tate [Tue, 2 Feb 2016 23:20:02 +0000 (15:20 -0800)] 
fix passing literal_binds flag through for update and insert

(cherry picked from commit c9b03fa8afd52646aba8c59fc038330eeee6db60)

9 years ago- changelog for #3621 fixes #3621
Mike Bayer [Tue, 2 Feb 2016 22:29:42 +0000 (17:29 -0500)] 
- changelog for #3621 fixes #3621

(cherry picked from commit 9149fd062b8b5f4d84902b4581288ab991fd25ce)

9 years agoRemoved entry that causes AttributeError (#3621) - Oracle zxJDBC fails with Attribute...
Carlos Rivas [Sat, 23 Jan 2016 09:23:46 +0000 (09:23 +0000)] 
Removed entry that causes AttributeError (#3621) - Oracle zxJDBC fails with AttributeError in object OracleCompiler_zxjdbc
(cherry picked from commit edc0b8678bc06ae27fa0f7e80c3eb074978fbe10)

9 years ago- D rules seem to have been added overnight to the flake8 plugin
Mike Bayer [Tue, 2 Feb 2016 17:07:39 +0000 (12:07 -0500)] 
- D rules seem to have been added overnight to the flake8 plugin
I'm using and many of these seem contradictory and/or undesirable.
block all until individual rules can be approved.

9 years ago- Fixed issue where inadvertent use of the Python ``__contains__``
Mike Bayer [Tue, 2 Feb 2016 15:15:40 +0000 (10:15 -0500)] 
- Fixed issue where inadvertent use of the Python ``__contains__``
override with a column expression (e.g. by using ``'x' in col``)
would cause an endless loop in the case of an ARRAY type, as Python
defers this to ``__getitem__`` access which never raises for this
type.  Overall, all use of ``__contains__`` now raises
NotImplementedError.
fixes #3642

(cherry picked from commit e0a580b3d055a600afae61840058a5a30ef5fe74)

9 years ago- put a retry in for PG database provisioning as it locks
Mike Bayer [Fri, 29 Jan 2016 17:19:17 +0000 (12:19 -0500)] 
- put a retry in for PG database provisioning as it locks
on database use

(cherry picked from commit c8b3d4ed3f2638599fc73486cf0f724fa033a638)

9 years ago- happy new year
Mike Bayer [Fri, 29 Jan 2016 16:24:35 +0000 (11:24 -0500)] 
- happy new year

(cherry picked from commit 859379e2fcc4506d036700ba1eca4c0ae526a8ee)

9 years ago- use a StaticPool for componentreflectiontest to ensure
Mike Bayer [Thu, 28 Jan 2016 22:59:48 +0000 (17:59 -0500)] 
- use a StaticPool for componentreflectiontest to ensure
temp tables are reflectable on the same session they were
created

(cherry picked from commit 14b1e6fe8e18d139846c1aba6761d4eea3dc25c3)

9 years ago- use schema argument correctly when we are dropping for a schema
Mike Bayer [Thu, 28 Jan 2016 22:16:55 +0000 (17:16 -0500)] 
- use schema argument correctly when we are dropping for a schema

(cherry picked from commit 13dfc532ac02657d75da40cc52d97b3b50a6bcfe)

9 years ago- revert the change first made in a6fe4dc, as we are now generalizing
Mike Bayer [Thu, 28 Jan 2016 20:01:31 +0000 (15:01 -0500)] 
- revert the change first made in a6fe4dc, as we are now generalizing
the warning here to all safe_reraise() cases in Python 2.
- Revisiting :ticket:`2696`, first released in 1.0.10, which attempts to
work around Python 2's lack of exception context reporting by emitting
a warning for an exception that was interrupted by a second exception
when attempting to roll back the already-failed transaction; this
issue continues to occur for MySQL backends in conjunction with a
savepoint that gets unexpectedly lost, which then causes a
"no such savepoint" error when the rollback is attempted, obscuring
what the original condition was.

The approach has been generalized to the Core "safe
reraise" function which takes place across the ORM and Core in any
place that a transaction is being rolled back in response to an error
which occurred trying to commit, including the context managers
provided by :class:`.Session` and :class:`.Connection`, and taking
place for operations such as a failure on "RELEASE SAVEPOINT".
Previously, the fix was only in place for a specific path within
the ORM flush/commit process; it now takes place for all transational
context managers as well.
fixes #2696

(cherry picked from commit 8a1e619fb20df1be6ad2e0c563e451e17eb17628)

9 years agofix %x string format to compatible with Python 3.5
Ruilin Huang [Wed, 27 Jan 2016 08:21:59 +0000 (08:21 +0000)] 
fix %x string format to compatible with Python 3.5
(cherry picked from commit 4b9f6f407ceedde247982501a6ae406242c80b4a)

9 years agofix %x string format to compatible with Python 3.5
xghrl [Wed, 27 Jan 2016 08:10:06 +0000 (08:10 +0000)] 
fix %x string format to compatible with Python 3.5
(cherry picked from commit 324e532d6081d9b9ea90bf3945cecfc792264f8d)

9 years ago- unfortunately we need to match within join where col.key does not match
Mike Bayer [Tue, 26 Jan 2016 22:28:40 +0000 (17:28 -0500)] 
- unfortunately we need to match within join where col.key does not match
what's given so we need to use a set() here.  contains_column is not within
any performance paths

(cherry picked from commit 5742e321b261c0c1303835b80418cd3cdc1b5643)

9 years ago- rework ColumnCollection to no longer persist "all_col_set"; we don't
Mike Bayer [Tue, 26 Jan 2016 21:41:26 +0000 (16:41 -0500)] 
- rework ColumnCollection to no longer persist "all_col_set"; we don't
need this collection except in the extend/update uses where we
create it ad-hoc.  simplifies pickling.  Compatibility with 1.0
should be OK as ColumnColleciton uses __getstate__ in any case
and the __setstate__ contract hasn't changed.
- Fixed bug in :class:`.Table` metadata construct which appeared
around the 0.9 series where adding columns to a :class:`.Table`
that was unpickled would fail to correctly establish the
:class:`.Column` within the 'c' collection, leading to issues in
areas such as ORM configuration.   This could impact use cases such
as ``extend_existing`` and others.  fixes #3632

(cherry picked from commit 8163de4cc9e01460d3476b9fb3ed14a5b3e70bae)

9 years ago- fix array test that was essentially taking a weird guess
Mike Bayer [Sat, 23 Jan 2016 23:30:37 +0000 (18:30 -0500)] 
- fix array test that was essentially taking a weird guess
at the primary key of a row based on other tests invoking around it

9 years ago- fix stray connection
Mike Bayer [Sat, 23 Jan 2016 22:31:02 +0000 (17:31 -0500)] 
- fix stray connection

(cherry picked from commit 2419bfe34cd5a1f4ead67d556ba74f3f1950762b)

9 years ago- restate the "secondary" / AssociationProxy warning more strongly.
Mike Bayer [Sat, 23 Jan 2016 21:38:44 +0000 (16:38 -0500)] 
- restate the "secondary" / AssociationProxy warning more strongly.
references #3638

(cherry picked from commit 67a69da3aa86c8b2b560ed79a9c91408ad704879)

9 years ago- use uuid fragments for provision names to enable multiple test suites
Mike Bayer [Sat, 23 Jan 2016 19:58:42 +0000 (14:58 -0500)] 
- use uuid fragments for provision names to enable multiple test suites
per server

(cherry picked from commit 65010e97bca995657c2843f6aa8ad48bab370182)

9 years ago- native unicode expectations are too difficult to maintain
Mike Bayer [Sat, 23 Jan 2016 19:30:30 +0000 (14:30 -0500)] 
- native unicode expectations are too difficult to maintain
w/ the number of drivers /DBURIs /  python versions

(cherry picked from commit d18d6d9baf4c98c47af70c0a7c796423396a51c1)

9 years ago- move out match compiler test to test_compiler
Mike Bayer [Sat, 23 Jan 2016 19:29:25 +0000 (14:29 -0500)] 
- move out match compiler test to test_compiler
- test_query isn't assertscompiledsql

(cherry picked from commit 269313218ddd06a21387085295c553becbd00e46)

9 years ago- add missing IGNORE_EXCEPTION_DETAIL flag
Mike Bayer [Thu, 21 Jan 2016 22:30:56 +0000 (17:30 -0500)] 
- add missing IGNORE_EXCEPTION_DETAIL flag

9 years ago- add a forwards-test here as well
Mike Bayer [Thu, 21 Jan 2016 20:32:53 +0000 (15:32 -0500)] 
- add a forwards-test here as well

(cherry picked from commit 38958f7b3f3e6009c419ba8e021f2b14c1f2b89a)

9 years ago- documenation updates to clarify specific SQLite versions
Mike Bayer [Thu, 21 Jan 2016 20:21:33 +0000 (15:21 -0500)] 
- documenation updates to clarify specific SQLite versions
that have problems with right-nested joins and UNION column keys;
references #3633 references #3634.   backport from 1.1 to 0.9
announcing 1.1 as where these behaviors will be retired based
on version-specific checks
- fix test_resultset so that it passes when SQLite 3.10.0 is
present, references #3633

(cherry picked from commit 89fa08792e98b9e31452aa3c949d9b909b10e7cd)

9 years ago- generalize the verbiage on LargeBinary so that it doesn't
Mike Bayer [Wed, 20 Jan 2016 21:20:08 +0000 (16:20 -0500)] 
- generalize the verbiage on LargeBinary so that it doesn't
create confusion for inherited classes such as BYTEA, fixes

(cherry picked from commit 47d8858c54401cdf10285b7935049faf87432f55)

9 years ago- update oracle JDBC driver URL, fixes #3554
Mike Bayer [Wed, 20 Jan 2016 20:58:24 +0000 (15:58 -0500)] 
- update oracle JDBC driver URL, fixes #3554

(cherry picked from commit 24dba714cb56e1f5a4dca5453cc5f442e6ee08ab)

9 years ago- cross link for concrete helper classes
Mike Bayer [Wed, 20 Jan 2016 20:28:35 +0000 (15:28 -0500)] 
- cross link for concrete helper classes
- remove redundant concrete helper docs from declarative docs,
two places is enough

(cherry picked from commit a53bd6f74b4f41fd04c8cde1f8b58bbb766fe18d)

9 years ago- typo
Mike Bayer [Wed, 20 Jan 2016 19:03:29 +0000 (14:03 -0500)] 
- typo

(cherry picked from commit b53667526eb9b2fabccfb097a5b76906d6452249)

9 years ago- redo the docs for concrete inheritance to more strongly
Mike Bayer [Wed, 20 Jan 2016 18:34:57 +0000 (13:34 -0500)] 
- redo the docs for concrete inheritance to more strongly
favor declarative, fixes #2890

(cherry picked from commit 632c4f21fa3cab353b801f585183494c529c6896)

9 years ago- clarify the "Adding" section also illustrates updates, fixes #2942
Mike Bayer [Wed, 20 Jan 2016 17:22:17 +0000 (12:22 -0500)] 
- clarify the "Adding" section also illustrates updates, fixes #2942

(cherry picked from commit 02271efd8976154f855646478b5438db078f7101)

9 years ago- add a note that the literal_binds flag should be used
Mike Bayer [Wed, 20 Jan 2016 17:10:40 +0000 (12:10 -0500)] 
- add a note that the literal_binds flag should be used
when cross-compiling from DDL to SQL, fixes #3615

(cherry picked from commit 165fa15b0f9dbca50539aa7da377c5da5ac0fc79)

9 years agoFix ArrayOfEnum's handling of empty arrays.
Chase [Wed, 20 Jan 2016 06:36:15 +0000 (22:36 -0800)] 
Fix ArrayOfEnum's handling of empty arrays.

Prior to this change a value of `'{}'` would split into the list `['']`.
(cherry picked from commit a2badb751f09299c925bd96a9fd2e76acca04269)

9 years ago- Fixed bug where some exception re-raise scenarios would attach
Mike Bayer [Mon, 18 Jan 2016 22:35:44 +0000 (17:35 -0500)] 
- Fixed bug where some exception re-raise scenarios would attach
the exception to itself as the "cause"; while the Python 3 interpreter
is OK with this, it could cause endless loops in iPython.
fixes #3625
- add tests for reraise, raise_from_cause
- raise_from_cause is the same on py2k/3k, use just one function

(cherry picked from commit d4d9a6524886eb33644e8ce42212267fa569e555)

9 years agoFix typo in relationships docs
rmn [Sat, 16 Jan 2016 18:19:02 +0000 (21:19 +0300)] 
Fix typo in relationships docs

(cherry picked from commit f9b21855861c1c8983acc934fe47546d71a1df05)

9 years ago- fix People -> Person , fixes #3628
Mike Bayer [Sun, 17 Jan 2016 03:04:10 +0000 (22:04 -0500)] 
- fix People -> Person , fixes #3628

(cherry picked from commit 66560cef7457d69f56cd2ca3bab93cb033a61a84)

9 years ago- illustrate these using the newer exception doctest format.
Mike Bayer [Thu, 14 Jan 2016 23:20:00 +0000 (18:20 -0500)] 
- illustrate these using the newer exception doctest format.
unfortunately we can't show the SQL unless we filtered it out
from doctest...not worth it

(cherry picked from commit 7bb578b1bd61ec9a2506d1bdb60bb28579204808)

9 years ago- there was a DATEPART test after all, fix format
Mike Bayer [Thu, 14 Jan 2016 22:50:03 +0000 (17:50 -0500)] 
- there was a DATEPART test after all, fix format

(cherry picked from commit 0ff3f95d5b41335c977e1bdbe88b7dfd4ae581e1)

9 years ago- fix some old verbiage that refers to text() as an "implicit" thing
Mike Bayer [Thu, 14 Jan 2016 22:18:21 +0000 (17:18 -0500)] 
- fix some old verbiage that refers to text() as an "implicit" thing
for SQL fragments; we've deprecated that in 1.0 and its a good idea
to document like this for 0.9 as well.

(cherry picked from commit d5d7284bdd0ffc96e7a79354944627cf9b5d8e4d)

9 years agoRemove quote on first DATEPART paramater
Guillaume DOUMENC [Tue, 12 Jan 2016 04:46:32 +0000 (04:46 +0000)] 
Remove quote on first DATEPART paramater
(cherry picked from commit c4f415d97988bc8a8d901b150bfb67571f29712e)
- changelog for pr bitbucket:70, fixes #3624

(cherry picked from commit 215167d8d38a381d27c8448f5c6e50c70b9ba0cc)

9 years ago- fix link to types in metadata, fixes #3618
Mike Bayer [Sun, 10 Jan 2016 16:48:53 +0000 (11:48 -0500)] 
- fix link to types in metadata, fixes #3618
- fix "version" got whacked into "f" in core tutorial
- fix short underline in automap
- fix unmatched boldface in session events

(cherry picked from commit d03477d4b761132f44c48417be09d622ad9adfd3)

9 years agoUpdate SQLAlchemy-Migrate link to the new repo
Jeff Widman [Thu, 24 Dec 2015 10:17:02 +0000 (02:17 -0800)] 
Update SQLAlchemy-Migrate link to the new repo
(cherry picked from commit 56b76ce7a823a076bd91490f940df95ad409db61)

9 years agoFix typo in session docs
Adrian Moennich [Sat, 9 Jan 2016 19:35:19 +0000 (20:35 +0100)] 
Fix typo in session docs

(cherry picked from commit bb294497558f96c92253a4a68129a7c7984d3af9)

9 years ago- Fixed regression since 0.9 where the 0.9 style loader options
Mike Bayer [Sat, 9 Jan 2016 15:10:20 +0000 (10:10 -0500)] 
- Fixed regression since 0.9 where the 0.9 style loader options
system failed to accommodate for multiple :func:`.undefer_group`
loader options in a single query.   Multiple :func:`.undefer_group`
options will now be taken into account even against the same
entity. fixes #3623

(cherry picked from commit c7ae0daf0ed24e2697d6f948db2d9fdc5953c795)

9 years agoupdated sphinx tageting
jonathan vanasco [Thu, 2 Apr 2015 19:21:21 +0000 (15:21 -0400)] 
updated sphinx tageting

(cherry picked from commit a0612a4d345019ea603a4d0bccb4ddcab3848af6)

9 years ago- dont forwards-report tons of 1.0.x changes in the unreleased 1.1;
Mike Bayer [Tue, 5 Jan 2016 20:12:56 +0000 (15:12 -0500)] 
- dont forwards-report tons of 1.0.x changes in the unreleased 1.1;
only when a 1.1.x is released would we want to capture what's still
sitting in a 1.0.x changelog

(cherry picked from commit 16746dd1a63198e3c27422517fa22ec76f441ceb)

9 years ago- version bump
Mike Bayer [Tue, 5 Jan 2016 15:26:22 +0000 (10:26 -0500)] 
- version bump

9 years ago- Fixed 1.0 regression where the eager fetch of cursor.rowcount was
Mike Bayer [Tue, 5 Jan 2016 15:25:36 +0000 (10:25 -0500)] 
- Fixed 1.0 regression where the eager fetch of cursor.rowcount was
no longer called for an UPDATE or DELETE statement emitted via plain
text or via the :func:`.text` construct, affecting those drivers
that erase cursor.rowcount once the cursor is closed such as SQL
Server ODBC and Firebird drivers.
fixes #3622

(cherry picked from commit 197ffa2be2cadce3df8bfb0799b3c80158250286)

9 years ago1.0.11 rel_1_0_11
Mike Bayer [Wed, 23 Dec 2015 01:40:53 +0000 (20:40 -0500)] 
1.0.11

9 years ago- An adjustment to the regular expression used to parse MySQL views,
Mike Bayer [Tue, 22 Dec 2015 17:04:45 +0000 (12:04 -0500)] 
- An adjustment to the regular expression used to parse MySQL views,
such that we no longer assume the "ALGORITHM" keyword is present in
the reflected view source, as some users have reported this not being
present in some Amazon RDS environments.
fixes #3613

(cherry picked from commit 8c54b14b5c0feee41bd9b9032f6b17b2dbd560a9)

9 years ago- changelog for pullreq github:222
Mike Bayer [Tue, 22 Dec 2015 16:56:02 +0000 (11:56 -0500)] 
- changelog for pullreq github:222

(cherry picked from commit 5c7ade2f4218b55db8f758949b82a3414474aeb2)

9 years agoAdd new reserved words for MySQL 5.7.
Hanno Schlichting [Mon, 14 Dec 2015 07:14:35 +0000 (08:14 +0100)] 
Add new reserved words for MySQL 5.7.

(cherry picked from commit 03ee4bbda671f9d33dd2e990101840cdfde71e81)

9 years ago- varchar requires a length
Mike Bayer [Tue, 22 Dec 2015 16:19:44 +0000 (11:19 -0500)] 
- varchar requires a length

(cherry picked from commit 0c8242b26e6c7c2d373ae11ad5a3f97d75e6299c)

9 years ago- add the test from ref #3614 as well for testing ref #3611
Mike Bayer [Tue, 22 Dec 2015 02:42:45 +0000 (21:42 -0500)] 
- add the test from ref #3614 as well for testing ref #3611

(cherry picked from commit 4b708c48398f6451b6ab0a940a1f247ebcfe26ac)

9 years ago- just use *arg straight without "key" for pop
Mike Bayer [Thu, 17 Dec 2015 16:47:14 +0000 (11:47 -0500)] 
- just use *arg straight without "key" for pop

(cherry picked from commit 5e5b8a96a7978f5a73a4bd248767122efc5ea265)

9 years ago- Further fixes to :ticket:`3605`, pop method on :class:`.MutableDict`,
Mike Bayer [Thu, 17 Dec 2015 16:24:35 +0000 (11:24 -0500)] 
- Further fixes to :ticket:`3605`, pop method on :class:`.MutableDict`,
where the "default" argument was not included.
fixes #3605

(cherry picked from commit 913858c949ae9ca6250217d82d72c7d79e9f6585)

9 years agoMake docs listing of param order for event.listen match the code
Jeff Widman [Thu, 17 Dec 2015 13:54:50 +0000 (05:54 -0800)] 
Make docs listing of param order for event.listen match the code
(cherry picked from commit 30be49c157e6ebe47c32abb98a570a013418b1e6)

9 years agosome spelling fixes
jonathan vanasco [Wed, 16 Dec 2015 16:12:07 +0000 (11:12 -0500)] 
some spelling fixes

(cherry picked from commit 738d515b95f1ff94d7dfd265883237d247d1c153)

9 years ago- remove errant pdb, references #3612
Mike Bayer [Wed, 16 Dec 2015 03:08:47 +0000 (22:08 -0500)] 
- remove errant pdb, references #3612

(cherry picked from commit 03ee22f342bbef9b15bfc989edda6a4ac3910508)

9 years ago- Fixed bug in baked loader system where the systemwide monkeypatch
Mike Bayer [Wed, 16 Dec 2015 02:44:00 +0000 (21:44 -0500)] 
- Fixed bug in baked loader system where the systemwide monkeypatch
for setting up baked lazy loaders would interfere with other
loader strategies that rely on lazy loading as a fallback, e.g.
joined and subquery eager loaders, leading to ``IndexError``
exceptions at mapper configuration time.
fixes #3612

(cherry picked from commit a22b2085068f860d05dbb98631d2ac2079a12b39)

9 years ago- hyperlink default-related parameters
Mike Bayer [Tue, 15 Dec 2015 23:30:54 +0000 (18:30 -0500)] 
- hyperlink default-related parameters

9 years ago- Fixed regression caused in 1.0.10 by the fix for :ticket:`3593` where
Mike Bayer [Tue, 15 Dec 2015 19:00:50 +0000 (14:00 -0500)] 
- Fixed regression caused in 1.0.10 by the fix for :ticket:`3593` where
the check added for a polymorphic joinedload from a
poly_subclass->class->poly_baseclass connection would fail for the
scenario of class->poly_subclass->class.
fixes #3611

(cherry picked from commit a8ec3491983ed5e68452514b4d52a4347377809f)

9 years ago- add some more oracle skips
Mike Bayer [Tue, 15 Dec 2015 01:22:04 +0000 (20:22 -0500)] 
- add some more oracle skips

(cherry picked from commit c42725ed54a61d7e5a0931404ee83aa6b94d0aea)

9 years ago- a few tweaks to allow "server_defaults" to be a little more linkable;
Mike Bayer [Mon, 14 Dec 2015 23:01:32 +0000 (18:01 -0500)] 
- a few tweaks to allow "server_defaults" to be a little more linkable;
remove "undoc members" that was putting some random server_default
atributes from ColumnClause

9 years ago- since we are mutating the statement in a loop, start with
Mike Bayer [Mon, 14 Dec 2015 22:53:56 +0000 (17:53 -0500)] 
- since we are mutating the statement in a loop, start with
the same cached starting statement each time.  no issue has been observed
with the former but it could perhaps have issues w/ versioning
or eager_defaults

(cherry picked from commit d0fc7269888247517ffa16d9472f961ebec892a7)

9 years ago- Fixed bug where :meth:`.Session.bulk_update_mappings` and related
Mike Bayer [Mon, 14 Dec 2015 22:39:50 +0000 (17:39 -0500)] 
- Fixed bug where :meth:`.Session.bulk_update_mappings` and related
would not bump a version id counter when in use.  The experience
here is still a little rough as the original version id is required
in the given dictionaries and there's not clean error reporting
on that yet.
fixes #3610

(cherry picked from commit 26ed90ab22dde7bdafe933cb1d16acfe70c1ab78)

9 years ago- Fixed bug in :meth:`.Update.return_defaults` which would cause all
Mike Bayer [Mon, 14 Dec 2015 22:24:47 +0000 (17:24 -0500)] 
- Fixed bug in :meth:`.Update.return_defaults` which would cause all
insert-default holding columns not otherwise included in the SET
clause (such as primary key cols) to get rendered into the RETURNING
even though this is an UPDATE.

- Major fixes to the :paramref:`.Mapper.eager_defaults` flag, this
flag would not be honored correctly in the case that multiple
UPDATE statements were to be emitted, either as part of a flush
or a bulk update operation.  Additionally, RETURNING
would be emitted unnecessarily within update statements.

fixes #3609

(cherry picked from commit 0e4c4d7efc08d04c3c0ae960428b08ada37e4a91)

9 years ago- 1.0.11
Mike Bayer [Sun, 13 Dec 2015 02:12:15 +0000 (21:12 -0500)] 
- 1.0.11

9 years ago- Fixed bug where use of the :meth:`.Query.select_from` method would
Mike Bayer [Sun, 13 Dec 2015 02:07:25 +0000 (21:07 -0500)] 
- Fixed bug where use of the :meth:`.Query.select_from` method would
cause a subsequent call to the :meth:`.Query.with_parent` method to
fail. fixes #3606
- add mark-as-fail test for #3607

(cherry picked from commit 7d96ad4d535dc02a8ab1384df1db94dea2a045b5)

9 years ago1.0.10 rel_1_0_10
Mike Bayer [Fri, 11 Dec 2015 20:55:17 +0000 (15:55 -0500)] 
1.0.10

9 years ago- Added support for the ``dict.pop()`` and ``dict.popitem()`` methods
Mike Bayer [Fri, 11 Dec 2015 16:21:46 +0000 (11:21 -0500)] 
- Added support for the ``dict.pop()`` and ``dict.popitem()`` methods
to the :class:`.mutable.MutableDict` class.
fixes #3605

(cherry picked from commit 5710a1e88bf669227959ca950b56d1072520b255)

9 years ago- convert ORM tutorial and basic_relationships to favor
Mike Bayer [Thu, 10 Dec 2015 23:27:14 +0000 (18:27 -0500)] 
- convert ORM tutorial and basic_relationships to favor
back_populates while still maintaining great familiarity
w/ backref so as not to confuse people.  fixes #3390

(cherry picked from commit 741b8af31bb436356b9e8950c045761a0e054fe0)

9 years ago- The ORM and Core tutorials, which have always been in doctest format,
Mike Bayer [Thu, 10 Dec 2015 22:09:47 +0000 (17:09 -0500)] 
- The ORM and Core tutorials, which have always been in doctest format,
are now exercised within the normal unit test suite in both Python
2 and Python 3.
- remove the old testdocs.py runner and replace with test/base/test_tutorials.py
- use pytest's unicode fixer so that we can test for unicode strings
in both py2k/3k
- use py3k format overall for prints, exceptions
- add other fixers to guarantee deterministic results
- add skips and ellipses to outputs that aren't worth matching

(cherry picked from commit d533b8e9223b9c938655e5b666fc928e2d996cd3)

9 years agofix some typos
Nils Philippsen [Tue, 8 Dec 2015 22:38:11 +0000 (23:38 +0100)] 
fix some typos

(cherry picked from commit 7e6f3312333d09a051d01509d8c423708d3fbca3)

9 years ago- Fixed issue within the :meth:`.Insert.from_select` construct whereby
Mike Bayer [Wed, 9 Dec 2015 23:15:25 +0000 (18:15 -0500)] 
- Fixed issue within the :meth:`.Insert.from_select` construct whereby
the :class:`.Select` construct would have its ``._raw_columns``
collection mutated in-place when compiling the :class:`.Insert`
construct, when the target :class:`.Table` has Python-side defaults.
The :class:`.Select` construct would compile standalone with the
erroneous column present subsequent to compilation of the
:class:`.Insert`, and the the :class:`.Insert` statement itself would
fail on a second compile attempt due to duplicate bound parameters.
fixes #3603

(cherry picked from commit e57bf796169282f69187f50665f5ea233c2c9ab7)

9 years ago- fix changelog for #3602
Mike Bayer [Tue, 8 Dec 2015 18:49:56 +0000 (13:49 -0500)] 
- fix changelog for #3602
- add version switch for backend fsp test

9 years ago- make this DROP conditional, attempting to isolate why jenkins has
Mike Bayer [Tue, 8 Dec 2015 15:40:45 +0000 (10:40 -0500)] 
- make this DROP conditional, attempting to isolate why jenkins has
an issue with just one test

(cherry picked from commit 7df4054b04ed54504be2c2ab8a83721748130780)

9 years ago- Fixed bug in MySQL reflection where the "fractional sections portion"
Mike Bayer [Mon, 7 Dec 2015 22:24:09 +0000 (17:24 -0500)] 
- Fixed bug in MySQL reflection where the "fractional sections portion"
of the :class:`.mysql.DATETIME`, :class:`.mysql.TIMESTAMP` and
:class:`.mysql.TIME` types would be incorrectly placed into the
``timestamp`` attribute, which is unused by MySQL, instead of the
``fsp`` attribute.
fixes #3602

(cherry picked from commit 3f42743d6aa1326a80a0ed720a92266aa5fbf209)

9 years ago- flake8 test_reflection and rework the type-based tests into
Mike Bayer [Mon, 7 Dec 2015 22:09:11 +0000 (17:09 -0500)] 
- flake8 test_reflection and rework the type-based tests into
individual categories w/ modernized fixtures, assert attributes
within type objects.

(cherry picked from commit d7eae8c95ca8c5963fc78fc997ed0f2da76aed31)

9 years ago- write a real inline documentation section for from_self(),
Mike Bayer [Mon, 7 Dec 2015 17:36:36 +0000 (12:36 -0500)] 
- write a real inline documentation section for from_self(),
building on the example of query.join().  Ideally all the methods
in Query would have this kind of thing.  fixes #3544

(cherry picked from commit 8fa62d652b8d1834e23ba36e56c7bd711cc37e37)

9 years ago- and NLS_LANG....
Mike Bayer [Sat, 5 Dec 2015 22:17:40 +0000 (17:17 -0500)] 
- and NLS_LANG....

(cherry picked from commit 077f26af5f6fefdc98f6720ab5e02b0fad6eff7a)

9 years ago- add ORACLE_HOME to passenv allowing oracle to work w/ tox 2.0
Mike Bayer [Sat, 5 Dec 2015 21:56:53 +0000 (16:56 -0500)] 
- add ORACLE_HOME to passenv allowing oracle to work w/ tox 2.0

(cherry picked from commit 7f423e875669ee549b1f53f90d2db340b6c957cd)

9 years ago- Fixed issue where post_update on a many-to-one relationship would
Mike Bayer [Wed, 2 Dec 2015 17:13:57 +0000 (12:13 -0500)] 
- Fixed issue where post_update on a many-to-one relationship would
fail to emit an UPDATE in the case where the attribute were set to
None and not previously loaded.
fixes #3599

(cherry picked from commit 935bc34dc50d5e4bdf181a8287d6e4cdbde073d0)

9 years ago- Fixed bug where CREATE TABLE with a no-column table, but a constraint
Mike Bayer [Wed, 2 Dec 2015 00:03:03 +0000 (19:03 -0500)] 
- Fixed bug where CREATE TABLE with a no-column table, but a constraint
such as a CHECK constraint would render an erroneous comma in the
definition; this scenario can occur such as with a Postgresql
INHERITS table that has no columns of its own.
fixes #3598

(cherry picked from commit 9695faf32981406b12a6468b98d5c9b673f8e219)

9 years ago- Added the error "20006: Write to the server failed" to the list
Mike Bayer [Mon, 30 Nov 2015 18:15:40 +0000 (13:15 -0500)] 
- Added the error "20006: Write to the server failed" to the list
of disconnect errors for the pymssql driver, as this has been observed
to render a connection unusable.
fixes #3585

(cherry picked from commit ab6946769742602e40fb9ed9dde5f642885d1906)

9 years ago- changelog for #3573, fixes #3573
Mike Bayer [Mon, 30 Nov 2015 18:06:11 +0000 (13:06 -0500)] 
- changelog for #3573, fixes #3573

(cherry picked from commit f4cb3f8cacaf96f064c2c7e4c1e579c7cf6544da)

9 years ago- Postgres: Do not prefix table with schema in: "FOR UPDATE of <table>"
Diana Clarke [Tue, 24 Nov 2015 18:41:07 +0000 (13:41 -0500)] 
- Postgres: Do not prefix table with schema in: "FOR UPDATE of <table>"

For example, this query:

    SELECT s1.users.name FROM s1.users FOR UPDATE OF s1.users

should actually be:

    SELECT s1.users.name FROM s1.users FOR UPDATE OF users

fixes #3573

(cherry picked from commit fd47fea6fbb11ee84b7eea5772f40855703ebe47)

9 years ago- changelog for pullreq github:215
Mike Bayer [Mon, 30 Nov 2015 18:01:07 +0000 (13:01 -0500)] 
- changelog for pullreq github:215

(cherry picked from commit c3fbfa8257dd198f1020166ce3c94556984abed0)

9 years agofix postgresql exclude contraint to check when= against None rather than __bool__...
aisch [Mon, 23 Nov 2015 18:22:50 +0000 (10:22 -0800)] 
fix postgresql exclude contraint to check when= against None rather than __bool__ eval

(cherry picked from commit 0921a6abbc8246c57f447af7a6ac240778127fae)

9 years agoMerge remote-tracking branch 'origin/pr/217'
Mike Bayer [Mon, 30 Nov 2015 17:55:26 +0000 (12:55 -0500)] 
Merge remote-tracking branch 'origin/pr/217'

(cherry picked from commit 954aafa0645f6e1ccbcfdc358a9f2930a24461a4)

9 years agoMerge remote-tracking branch 'origin/pr/214'
Mike Bayer [Mon, 30 Nov 2015 17:53:56 +0000 (12:53 -0500)] 
Merge remote-tracking branch 'origin/pr/214'

(cherry picked from commit 38e043a475db210143c46588fca70838c9c47c8a)

9 years ago- restore 'declarative' classifier
Mike Bayer [Mon, 30 Nov 2015 17:52:01 +0000 (12:52 -0500)] 
- restore 'declarative' classifier

(cherry picked from commit be24b3ea8371583d9ccd6fb834ae6f22f39c556e)

9 years agopy2k: accept unicode literals on :func:`backref`, too
Nils Philippsen [Mon, 9 Nov 2015 13:50:23 +0000 (14:50 +0100)] 
py2k: accept unicode literals on :func:`backref`, too

Fixed bug where in Py2K a unicode literal would not be accepted as the
string name of a class or other argument within declarative using
:func:`.backref` on :func:`.relationship`.

amends commit e6f67f48054d906856f879bc1803ea639aa4b670

(cherry picked from commit 58f73d2278393d813c7f39736fc96c5086f18f6d)

9 years ago- update changelog for all the py3.5/3.6 related prs at once
Mike Bayer [Mon, 30 Nov 2015 17:40:51 +0000 (12:40 -0500)] 
- update changelog for all the py3.5/3.6 related prs at once

9 years agoChange generator termination from StopIteration to return.
pgjones [Fri, 30 Oct 2015 20:20:58 +0000 (20:20 +0000)] 
Change generator termination from StopIteration to return.

From [PEP 479](https://www.python.org/dev/peps/pep-0479/) the correct way to
terminate a generator is to return (which implicitly raises StopIteration)
rather than raise StopIteration.

Without this change using sqlalchemy in python 3.5 or greater results in
these warnings
    PendingDeprecationWarning: generator '__iter__' raised StopIteration
which this commit should remove.

(cherry picked from commit 6ab120558078bdcbfbe06d2ca55bd7a0d417bbb4)

9 years ago- A descriptive ValueError is now raised in the event that SQL server
Mike Bayer [Mon, 30 Nov 2015 17:19:26 +0000 (12:19 -0500)] 
- A descriptive ValueError is now raised in the event that SQL server
returns an invalid date or time format from a DATE or TIME
column, rather than failing with a NoneType error.  Pull request
courtesy Ed Avis.
pullreq github:206

(cherry picked from commit 03a3b5ffd3027c79ce9b17b9388fd074e69b889d)

9 years ago- update changelog to accommodate pr github:218
Mike Bayer [Mon, 30 Nov 2015 16:55:03 +0000 (11:55 -0500)] 
- update changelog to accommodate pr github:218