]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
8 years agofix pep8 errors in association example
Paul Brown [Fri, 17 Mar 2017 05:24:15 +0000 (00:24 -0500)] 
fix pep8 errors in association example

(cherry picked from commit 6aad7fb4217ef294f68f693be5b3137c28184949)

8 years agofix pep8 errors in adjacency_list example
Paul Brown [Fri, 17 Mar 2017 05:23:49 +0000 (00:23 -0500)] 
fix pep8 errors in adjacency_list example

(cherry picked from commit ff230f1862892eb2b479ed85e6858a82159b435f)

8 years ago- re-set no ad-hoc-engines for oracle, previously low-connections
Mike Bayer [Mon, 13 Mar 2017 22:08:43 +0000 (18:08 -0400)] 
- re-set no ad-hoc-engines for oracle, previously low-connections
disabled this

Change-Id: I3ceceaea7a3969248121ff4dc97c11296831fc99
(cherry picked from commit 4a886e519ff227039a9d603aa4727c6f828f93ff)

8 years agoRepair _execute_scalar for WITH_UNICODE mode
Mike Bayer [Mon, 13 Mar 2017 16:27:51 +0000 (12:27 -0400)] 
Repair _execute_scalar for WITH_UNICODE mode

cx_Oracle 5.3 seems to code this flag ON now, so
remove the warning and ensure WITH_UNICODE handling works.

Additionally, the XE setup on jenkins is having more
problems here, in particular low-connections mode is
causing cx_Oracle to fail more frequently now.  Turning
off low-connections fixes those but then we get the
TNS errors, so adding an emergency "retry" flag that
is not yet a feature available to users.  Real world
applications are not dropping/creating thousands of
tables the way our test suite is.

Change-Id: Ie95b0e697276c404d3264c2e624e870463d966d6
Fixes: #3937
8 years ago- 1.0.18 setup
Mike Bayer [Mon, 13 Mar 2017 16:34:05 +0000 (12:34 -0400)] 
- 1.0.18 setup

Change-Id: Ief1c6285871544a4d699345040ee57276dbcf49b

8 years ago- document ForeignKeyConstraint columns / elements, fixes #2904
Mike Bayer [Tue, 7 Mar 2017 19:54:53 +0000 (14:54 -0500)] 
- document ForeignKeyConstraint columns / elements, fixes #2904

Change-Id: Ia50a3100d1bd88020c30224932b16aeadd7f4c75
(cherry picked from commit 74bec18c2a3cc8e9c031808fc44bc0f2c5af8b43)

8 years ago- update asktom link, fixes #3925
Mike Bayer [Mon, 6 Mar 2017 21:50:13 +0000 (16:50 -0500)] 
- update asktom link, fixes #3925

Change-Id: Ibd63311dfccebbdf67e8ad7dc56ad311bf573895
(cherry picked from commit 3a6b75870bdc7aa8fe70296cc3fc94ea06f16417)

8 years agoUpdate profiles for psycopg2 2.7
Mike Bayer [Mon, 6 Mar 2017 21:16:45 +0000 (16:16 -0500)] 
Update profiles for psycopg2 2.7

psycopg2 has updated their unicode / string handling, greatly
reducing callcounts on Python 2.x.

Change-Id: Idffd242b303ffea9c7733068a4be290da4dbe679

8 years ago- document Query.with_session(), direct constructor usage
Mike Bayer [Wed, 8 Feb 2017 22:47:29 +0000 (17:47 -0500)] 
- document Query.with_session(), direct constructor usage

Change-Id: I47499d040623202dd9b3be0ea65f2d9ad03c11a4
(cherry picked from commit 7db699163bed203d8060f06097e1489eea7ba079)

8 years ago- add missing param tag
Mike Bayer [Sat, 28 Jan 2017 14:53:10 +0000 (09:53 -0500)] 
- add missing param tag

Change-Id: Ic2cc0bdafbf3f1bc2993a9ad3475530eed91d0f1
(cherry picked from commit f55d466cad2d7c741f391eb2df15a23652132fe4)

8 years ago- remove misleading comment, ref #3902
Mike Bayer [Fri, 27 Jan 2017 17:08:57 +0000 (12:08 -0500)] 
- remove misleading comment, ref #3902

Change-Id: I481628146ff31bc9ea2f8a3687f375832b17e501
(cherry picked from commit 3bd845f3ff2af203a79c76a5b493ccf9c58ad79e)

8 years ago- document that "column" and "where" are arbitrary SQL expressions
Mike Bayer [Thu, 26 Jan 2017 21:01:20 +0000 (16:01 -0500)] 
- document that "column" and "where" are arbitrary SQL expressions
for ExcludeConstraint, if string is used then quoting must
be applied manually.  fixes #3899

Change-Id: I5885c90179e4056b84fc4776464bba7c8c70a80a
(cherry picked from commit a24801ae8de469f1e78bdb0c02b28de263c2310e)

8 years agoFix typo in documentation
Frederic Junod [Fri, 20 Jan 2017 08:52:15 +0000 (09:52 +0100)] 
Fix typo in documentation

(cherry picked from commit 8795472c875d5f424f96a1e19e93d6dd4a7df6a8)

8 years agofix example re such that the listen modifier example works
Brian [Sat, 17 Dec 2016 17:09:13 +0000 (12:09 -0500)] 
fix example re such that the listen modifier example works

(cherry picked from commit 3c0fc9b95f458f608bf10c266e52b2cd919467d5)

8 years agoImprove server-side Sequence documentation
Mike Bayer [Thu, 19 Jan 2017 19:12:19 +0000 (14:12 -0500)] 
Improve server-side Sequence documentation

Include the metadata argument for the Sequence
and explain the rationale.  Correct inconsistencies
between Core / ORM examples and update language
regarding client side vs. server side Sequence
directive.

Co-authored-by: Stéphane Raimbault <stephane.raimbault@gmail.com>
Change-Id: I65c522acf9bdf25041a5baf2e10be41f0927999a
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/341
(cherry picked from commit 42027de3fce1d4ce2e3a684c59ee87f440b51ae8)

8 years ago- 1.0.17 rel_1_0_17
Mike Bayer [Tue, 17 Jan 2017 21:21:36 +0000 (16:21 -0500)] 
- 1.0.17

8 years ago- this test is too brittle under load, not worth it, remove it
Mike Bayer [Tue, 17 Jan 2017 21:13:19 +0000 (16:13 -0500)] 
- this test is too brittle under load, not worth it, remove it

Change-Id: I3f294b4d153979c308532360d03ab7be3c5d994a

8 years agoCorrect pytest deprecation warning
Gábor Lipták [Tue, 17 Jan 2017 17:13:34 +0000 (12:13 -0500)] 
Correct pytest deprecation warning

WC1 None [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.

Change-Id: I099c8207730ae1226f7357ff8be0d8ab149878ed
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/334
(cherry picked from commit f624a3ae8baadba4dabb55e5851a27d40a6cf73e)

8 years ago- repair an errant docstring w/o r
Mike Bayer [Tue, 17 Jan 2017 17:08:38 +0000 (12:08 -0500)] 
- repair an errant docstring w/o r

Change-Id: I2e9c8dbc79c00b54520748d1d7cae5230a612c96
(cherry picked from commit 3a6c55fb5175ec9ffa03dd7c1325a4746f081486)

8 years ago- happy new year
Mike Bayer [Tue, 17 Jan 2017 16:42:24 +0000 (11:42 -0500)] 
- happy new year

Change-Id: Iaaff6a66e7611320eca711add8a2e11aae42acf1

8 years agoMerge "Support python3.6" into rel_1_0
mike bayer [Fri, 13 Jan 2017 20:43:29 +0000 (15:43 -0500)] 
Merge "Support python3.6" into rel_1_0

8 years agoSupport python3.6
Andrii Soldatenko [Wed, 11 Jan 2017 15:12:12 +0000 (10:12 -0500)] 
Support python3.6

Corrects some warnings and adds tox config.  Adds DeprecationWarning
to the error category.   Large sweep for string literals w/ backslashes
as this is common in docstrings

Co-authored-by: Andrii Soldatenko
Fixes: #3886
Change-Id: Ia7c838dfbbe70b262622ed0803d581edc736e085
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/337

8 years ago- document how to use autocommit isolation level for CONCURRENTLY,
Mike Bayer [Thu, 12 Jan 2017 20:57:46 +0000 (15:57 -0500)] 
- document how to use autocommit isolation level for CONCURRENTLY,
fixes #3887

Change-Id: I6d1a13b7bb4169204105c7a100d17cfed3ded9d1
(cherry picked from commit 0460bc79d9986132646049d8167bd5dbe3388a65)

8 years agoAdapt from "localparent" in joinedloader
Mike Bayer [Mon, 9 Jan 2017 19:16:22 +0000 (14:16 -0500)] 
Adapt from "localparent" in joinedloader

Fixed bug involving joined eager loading against multiple entities
when polymorphic inheritance is also in use which would throw
"'NoneType' object has no attribute 'isa'".  The issue was introduced
by the fix for :ticket:`3611`.

Change-Id: I296ecda38c01ec8f69dcd843beaebed6949cecfa
Fixes: #3884
(cherry picked from commit 51a72503b0279ca71ee6f0454bfd36a4c84d508f)

8 years ago- prep for 1.0.17
Mike Bayer [Mon, 9 Jan 2017 19:17:37 +0000 (14:17 -0500)] 
- prep for 1.0.17

Change-Id: I686bcadd54ea674c011bb3777e410b69627bab72

8 years ago- add a section for ARRAY of JSON to complement ARRAY of ENUM. references #3467
Mike Bayer [Thu, 5 Jan 2017 15:02:58 +0000 (10:02 -0500)] 
- add a section for ARRAY of JSON to complement ARRAY of ENUM. references #3467

Change-Id: I9836b842be01ef24138071fa022d80f5f77be14f
(cherry picked from commit 2b4d028a69270c1c7918281a60280dd0b65963a2)

8 years agoTypo
Francisco Capdevila [Thu, 22 Dec 2016 18:08:23 +0000 (15:08 -0300)] 
Typo
(cherry picked from commit 8f191ec3b87ccf9038d532ea672bdd5978793891)

8 years ago- xmin example requires a server default declaration to function
Mike Bayer [Mon, 12 Dec 2016 17:07:11 +0000 (12:07 -0500)] 
- xmin example requires a server default declaration to function
correctly

Change-Id: I1cc50da6fe1c0eeef1d00201b45d998daddfd8ac
(cherry picked from commit a1de76c42f6b64808448aed6e821fbb3b988f99b)

8 years ago- 1.0.16 rel_1_0_16
Mike Bayer [Tue, 15 Nov 2016 17:47:31 +0000 (12:47 -0500)] 
- 1.0.16

8 years ago- experiment with union merge for changelog
Mike Bayer [Mon, 14 Nov 2016 21:26:50 +0000 (16:26 -0500)] 
- experiment with union merge for changelog

Change-Id: Ieed0199c58d7eacdb26db6e1754c1ef3ee5c8c7d
(cherry picked from commit 5def69c0cdc5025b1194e8339446b6e5e528df1e)

8 years agoAdds missing word "of" in docs
jfinkels [Mon, 31 Oct 2016 02:22:54 +0000 (22:22 -0400)] 
Adds missing word "of" in docs
(cherry picked from commit d0d4e391c5788bf08432dbd333b5702fd6248bae)

8 years agoQuote URL tokens with semicolons for pyodbc, adodbapi
Mike Bayer [Thu, 10 Nov 2016 22:08:06 +0000 (17:08 -0500)] 
Quote URL tokens with semicolons for pyodbc, adodbapi

Fixed bug in pyodbc dialect (as well as in the mostly non-working
adodbapi dialect) whereby a semicolon present in the password
or username fields could be interpreted as a separator for another
token; the values are now quoted when semicolons are present.

Change-Id: I5f99fd8db53ebf8e805e7d9d60bc09b8f1af603f
Fixes: #3762
8 years ago - oragnize the changelog with tokens per .. change:: to allow
Mike Bayer [Fri, 11 Nov 2016 17:04:37 +0000 (12:04 -0500)] 
 - oragnize the changelog with tokens per .. change:: to allow
   three way merges to succeed (hopefully). requires bump of changelog
   package.

Change-Id: Ia23b1754ad7e0841c6513647f0dd4987112a0511

8 years agoUse configured props for mapper.attrs, mapper.all_orm_descriptors
Mike Bayer [Thu, 10 Nov 2016 19:24:48 +0000 (14:24 -0500)] 
Use configured props for mapper.attrs, mapper.all_orm_descriptors

Fixed bug where the :attr:`.Mapper.attrs`,
:attr:`.Mapper.all_orm_descriptors` and other derived attributes would
fail to refresh when mapper properties or other ORM constructs were
added to the mapper/class after these  accessors were first called.

Change-Id: Iaecdb4b3d8c3a3b44302a5880476e60a1f4e27d9
Fixes: #3778
(cherry picked from commit 6319eb0ce7c095ba7d4f60746ce12cf575730b46)

8 years agoConsider version_id_prop when emitting bulk UPDATE
Mike Bayer [Wed, 5 Oct 2016 20:55:43 +0000 (16:55 -0400)] 
Consider version_id_prop when emitting bulk UPDATE

The version id needs to be part of _changed_dict()
so that the value is present to send to
_emit_update_statements()

Change-Id: Ia85f0ef7714296a75cdc6c88674805afbbe752c8
Fixes: #3781
8 years agoEnsure attribute keys used for bulk update pk set
Mike Bayer [Thu, 10 Nov 2016 16:08:52 +0000 (11:08 -0500)] 
Ensure attribute keys used for bulk update pk set

Fixed bug in :meth:`.Session.bulk_update_mappings` where an alternate-named
primary key attribute would not track properly into the UPDATE statement.

Change-Id: I33e9140f45827772768fa548adcfeb4dbfc2208d
Fixes: #3849
(cherry picked from commit 6a688b736429e27a892bc02111414491fe4103b0)

8 years agoMinor fixes in the ext.hybrid documentation.
Randy Barlow [Sun, 23 Oct 2016 14:34:25 +0000 (10:34 -0400)] 
Minor fixes in the ext.hybrid documentation.

(cherry picked from commit 9974ab67f508a16423e8bc22122180b0bcdee807)

8 years agoRemove some legacy dead code from the declared_attr logic
Pierre Jaury [Sun, 16 Oct 2016 14:45:54 +0000 (16:45 +0200)] 
Remove some legacy dead code from the declared_attr logic

The second 'if' condition was never called because the original
condition always returns.

(cherry picked from commit d18221c542bf4d7381be2afdcd4c098698ff8eae)

8 years agoFix a minor grammatical error in the ORM tutorial.
Randy Barlow [Thu, 13 Oct 2016 16:58:14 +0000 (12:58 -0400)] 
Fix a minor grammatical error in the ORM tutorial.

Change-Id: I50daaee2645dd8aa2ee7217f4065589492ed0b7d
(cherry picked from commit 055b207a9f80e1899a30cce8d11e79eb1136612a)

8 years agoUpdate the Column.nullable docstring for the primary_key=True case
Matt Riedemann [Mon, 10 Oct 2016 15:43:07 +0000 (11:43 -0400)] 
Update the Column.nullable docstring for the primary_key=True case

While reviewing a change that created a new table, the
primary_key column value was set to True but nullable was not
explicitly set, which led to some confusion over the default
behavior for the nullable column value when setting a primary_key.

Looking at the docs it's not clear, but the code shows that if
nullable is not specified, then nullable = not primary_key, so
nullable defaults to False when primary_key is True.

This patch adds a simple clarification to the docs so people
don't have to check the code.

Change-Id: I8553339d56fbae11370c7c6af6d8d4723163be1c
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/312
(cherry picked from commit 4b94ee113baab901aee881ad94851587c912f785)

8 years agoCatch DBAPIError instead of ProgrammingError for pyodbc fail
Mike Bayer [Fri, 7 Oct 2016 13:16:22 +0000 (09:16 -0400)] 
Catch DBAPIError instead of ProgrammingError for pyodbc fail

This is part of release 1.1.1 but the broken version
was unreleased in 1.0.16.

Change-Id: Ide9e916d02fbbef549aa2838d1402c2b091e701d
Fixes: #3820
(cherry picked from commit ae9300cac0ec398f92d9e523273403126a709134)

8 years agoMinor grammatical improvements in doc/build/intro.rst.
Randy Barlow [Wed, 5 Oct 2016 19:07:57 +0000 (15:07 -0400)] 
Minor grammatical improvements in doc/build/intro.rst.

(cherry picked from commit df4639ab717273490b17085d5cdb240eef3cf0c0)

8 years ago- add a note to baked documentation indicating it is not
Mike Bayer [Tue, 4 Oct 2016 16:01:12 +0000 (12:01 -0400)] 
- add a note to baked documentation indicating it is not
really of general use.  This extension is there only
for those who really want it based on observed performance
characteristics.

Change-Id: I2f612f26fdef4ddbeb1158ab1b344fad7083b11c
(cherry picked from commit cbe99b06679e2d2da1312f7d69b41f63bda1b41f)

8 years agoUse schema_name() for SQL Server default schema
Mike Bayer [Tue, 4 Oct 2016 15:32:20 +0000 (11:32 -0400)] 
Use schema_name() for SQL Server default schema

Changed the query used to get "default schema name", from one that
queries the database principals table to using the
"schema_name()" function, as issues have been reported that the
former system was unavailable on the Azure Data Warehouse edition.
It is hoped that this will finally work across all SQL Server
versions and authentication styles.

Change-Id: Ic11bd4162c0d6a60432ae44876e86512703c1f81
Fixes: #3810
(cherry picked from commit 562e37ee7eaab8b19a9f081d4b170b95fce4f619)

8 years agoUse SQL Server SERVERPROPERTY for version info w/ pyodbc
Mike Bayer [Tue, 4 Oct 2016 15:17:26 +0000 (11:17 -0400)] 
Use SQL Server SERVERPROPERTY for version info w/ pyodbc

Updated the server version info scheme for pyodbc to use SQL Server
SERVERPROPERTY(), rather than relying upon pyodbc.SQL_DBMS_VER, which
continues to be unreliable particularly with FreeTDS.

Change-Id: I4ff49ae13c8ff51bd764980131d41c18d73d87ce
Fixes: #3814
(cherry picked from commit f0ea9e37f94bd39fa4f0785dbdcd0ee1759c4a11)

8 years ago- make sure dispose() is mentioned as a strategy for
Mike Bayer [Sat, 1 Oct 2016 23:01:19 +0000 (19:01 -0400)] 
- make sure dispose() is mentioned as a strategy for
dealing with os.fork().

Change-Id: I6d85f330327e79c353e191096d71528d8300f22f
(cherry picked from commit a02a75588d87fcbec84b4689ee8ed462c631838c)

8 years ago- some documentation hits
Mike Bayer [Sat, 1 Oct 2016 13:42:21 +0000 (09:42 -0400)] 
- some documentation hits

Change-Id: I468fe70168804b08cf0d5e8b57e235bca904b1ff
(cherry picked from commit 9bfd0289383bfcaf650fe516862df545dcf95c2e)

8 years agoRemove extra "return" statement in orm.ext.declared_attr.cascading examples
Dmitry Bogun [Sat, 1 Oct 2016 13:22:06 +0000 (09:22 -0400)] 
Remove extra "return" statement in orm.ext.declared_attr.cascading examples

Also improves some naming in the examples.

Change-Id: I51e5b1d9a730885aed10e5e6ade2123f5e736359
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/306
(cherry picked from commit dce32062236001ed89258cfe60c89bbca5db18c5)

8 years ago- improve documentation for SessionTransaction re: parent
Mike Bayer [Sat, 24 Sep 2016 04:49:22 +0000 (00:49 -0400)] 
- improve documentation for SessionTransaction re: parent
and nested attributes and what these mean
- improve linking for after_transaction_create() / after_transaction_end()
events
- add public .parent attribute to detect top-level transaction within
these events

Change-Id: Ie7382bc8fe5de226160dcb6a5019e19fcc5af38e
(cherry picked from commit e9b2625753fba02358d9cb4ef1d9dd07b8761d21)

8 years ago- clarify documentation on timezone flag, since Oracle has both
Mike Bayer [Thu, 22 Sep 2016 15:08:09 +0000 (11:08 -0400)] 
- clarify documentation on timezone flag, since Oracle has both
DATE / TIMESTAMP separately the timezone flag will not bump the
type to TIMESTAMP WITH TIMEZONE on that backend.

Change-Id: I185992093472e1620b8cf84872631a4d48f8edc3
(cherry picked from commit 0cc8267286f848f3cc3ab46c1e543956866a561e)

8 years agoEnsure mapper.polymorphic_on is polymorphic_prop.columns[0]
Mike Bayer [Wed, 21 Sep 2016 21:55:39 +0000 (17:55 -0400)] 
Ensure mapper.polymorphic_on is polymorphic_prop.columns[0]

Fixed bug where joined eager loading would fail for a polymorphically-
loaded mapper, where the polymorphic_on was set to an un-mapped
expression such as a CASE expression.

Change-Id: Iffe68196aaac592165c89684f09f4c06cd78ce54
Fixes: #3800
(cherry picked from commit 97b294093617eca7298a2fe97bd23bd6dc3b59bf)

8 years ago- disable two phase testing for mysql entirely, build servers
Mike Bayer [Tue, 20 Sep 2016 17:56:17 +0000 (13:56 -0400)] 
- disable two phase testing for mysql entirely, build servers
have no time to deal with MySQL 5.7's issues

Change-Id: Ic5f4e5b0aff1b4b5210bc7b5da203f536561e585
(cherry picked from commit 0c90cac2c37453a6688d9c1da62bbfb0bfa13d02)

8 years agoFix ArgumentError access in Session._add_bind
Mike Bayer [Wed, 14 Sep 2016 19:11:13 +0000 (15:11 -0400)] 
Fix ArgumentError access in Session._add_bind

Fixes: #3798
Change-Id: Ib4e6344b599e871f9d46d36a5aeb7ba3104dc99b
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/293
(cherry picked from commit 7ea54611516147a1af917691c60e1823b77c7ecf)

8 years agoAdd "message 20017" (unexpected EOF from the server) to mssql.
Ken Robbins [Wed, 14 Sep 2016 19:13:30 +0000 (15:13 -0400)] 
Add "message 20017" (unexpected EOF from the server) to mssql.

Fixes: #3791
Change-Id: I0dade4fe0ecbb53b4a66881594f362986ba73ae8
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/89
(cherry picked from commit 285d7bbb3e11abdc9a931e35e4ee08ef611af5d4)

8 years ago- latest mysql 5.7 also crashing on XA recovery, disable
Mike Bayer [Fri, 16 Sep 2016 16:55:33 +0000 (12:55 -0400)] 
- latest mysql 5.7 also crashing on XA recovery, disable
XA recovery for all MySQL

Change-Id: I4f77de521cd80c09fdf97e5bbe5dfd1c830dc3cb
(cherry picked from commit 65d8deac95b63ea5702a9ce6b5d9a6c9a6a60991)

8 years agoRepair foreign_keys population for Join._refresh_for_new_column
Mike Bayer [Thu, 15 Sep 2016 04:50:17 +0000 (00:50 -0400)] 
Repair foreign_keys population for Join._refresh_for_new_column

Fixed bug where setting up a single-table inh subclass of a joined-table
subclass which included an extra column would corrupt the foreign keys
collection of the mapped table, thereby interfering with the
initialization of relationships.

Change-Id: I04a0cf98fd456d12d5a5b9e77a46a01246969a63
Fixes: #3797
(cherry picked from commit 8967099c3ba8b04fa20536bc0a026f6adc8e096f)

8 years ago- placeholder for 1.0.16
Mike Bayer [Thu, 15 Sep 2016 04:51:31 +0000 (00:51 -0400)] 
- placeholder for 1.0.16

Change-Id: I33405513dc216ad33c5ec4796bff73f75d5866c4

8 years ago- also caveats for update() / delete() regarding single
Mike Bayer [Mon, 12 Sep 2016 22:36:01 +0000 (18:36 -0400)] 
- also caveats for update() / delete() regarding single
table inheritance

Change-Id: If1511812a22a53537409f902f73e2e52ae3e4a3d

8 years ago- add caveat for bulk deletes that they are generally not feasible
Mike Bayer [Mon, 12 Sep 2016 22:17:18 +0000 (18:17 -0400)] 
- add caveat for bulk deletes that they are generally not feasible
for joined inheritance

Change-Id: I043a5842401d586aa3ff96d05e06b443ff03fa60
(cherry picked from commit 2cd53196ea2df7b9006dcc48fb79555eb533f5cc)

8 years ago- 1.0.15 rel_1_0_15
Mike Bayer [Thu, 1 Sep 2016 17:10:50 +0000 (13:10 -0400)] 
- 1.0.15

8 years agoSupport all MySQL/Connector int/bool arguments
Mike Bayer [Thu, 1 Sep 2016 13:34:33 +0000 (09:34 -0400)] 
Support all MySQL/Connector int/bool arguments

Added support for parsing MySQL/Connector boolean and integer
arguments within the URL query string: connection_timeout,
connect_timeout, pool_size, get_warnings,
raise_on_warnings, raw, consume_results, ssl_verify_cert, force_ipv6,
pool_reset_session, compress, allow_local_infile, use_pure.

Change-Id: I2a1a17d13d47d56871bff32e94fdbed8bc003ad7
Fixes: #3787
(cherry picked from commit 16dcc8bec1218835590766f0cb2a019a1b30e340)

8 years agoCorrects typo
Edouard Berthe [Wed, 31 Aug 2016 06:52:48 +0000 (16:52 +1000)] 
Corrects typo

This example doesn't work with 'back_populates' because 'parent_associations' and 'child_associations' are not defined in Parent and Child classes respectively.
Alternatively, we could create 'parent_associations' and 'child_associations' into the classes.
(cherry picked from commit 53c3119ebb6801cbfcaf2841311d117eba250444)

8 years agoFix table reference in PostgreSQL documentation
Michael Williamson [Sun, 28 Aug 2016 11:22:42 +0000 (12:22 +0100)] 
Fix table reference in PostgreSQL documentation
(cherry picked from commit 2b0fa0f8a190a65aea5a284e4f7d0a22488ae560)

8 years agoFix documentation basic example (missing imports)
Romuald Brunet [Thu, 11 Aug 2016 15:24:05 +0000 (17:24 +0200)] 
Fix documentation basic example (missing imports)

(cherry picked from commit 096a74d7c5bea560ab68423e2d7293af22afbfa3)

8 years agoRework _apply_joins(), _prep_for_joins() totally
Mike Bayer [Mon, 15 Aug 2016 20:39:12 +0000 (16:39 -0400)] 
Rework _apply_joins(), _prep_for_joins() totally

The approach here is still error prone
and hard to follow.  Reorganize the whole
thing to take a pretty blunt approach to
the structure of to_join().  Also fix some never-called
code (!) in _prep_for_joins() and ensure we re-use
an aliased object.

Fixes: #3774
Change-Id: Ie6319415ae7213b4a33eac2ab70803ad2880d340
(cherry picked from commit 323e6e7f9f6a731103cfd19d774024f7f0f84377)

8 years agoMerge "Ensure final link in subqueryload join is correct" into rel_1_0
mike bayer [Sat, 13 Aug 2016 14:40:02 +0000 (10:40 -0400)] 
Merge "Ensure final link in subqueryload join is correct" into rel_1_0

8 years ago- fill in forwards-ports for 1.1 in 1.0 changelog
Mike Bayer [Sat, 13 Aug 2016 03:39:49 +0000 (23:39 -0400)] 
- fill in forwards-ports for 1.1 in 1.0 changelog

Change-Id: I8d44b90bb9d05275de19d3ce2d9124050add5f01
(cherry picked from commit 14154b2910087a7879ca23cf7995026a79a215c2)

8 years agoEnsure final link in subqueryload join is correct
Mike Bayer [Sat, 13 Aug 2016 03:35:40 +0000 (23:35 -0400)] 
Ensure final link in subqueryload join is correct

Fixed bug in subquery eager loading where a subqueryload
of an "of_type()" object linked to a second subqueryload of a plain
mapped class would fail to link the joins correctly.

Change-Id: I4be89e6f5e492438464a2ded01eb9c84d7ff7d4e
Fixes: #3773
(cherry picked from commit b07eb3cb45d1a344759a2eee9d2166fbf3e44888)

8 years ago- add another example for chained polymorphic eager loading
Mike Bayer [Thu, 11 Aug 2016 16:03:38 +0000 (12:03 -0400)] 
- add another example for chained polymorphic eager loading

Change-Id: I87918ab4cd294d4b4a87a377c7b6b21105f4fd55

8 years ago- small updates to polymorphic eager loading, cross-link from
Mike Bayer [Thu, 11 Aug 2016 15:45:03 +0000 (11:45 -0400)] 
- small updates to polymorphic eager loading, cross-link from
loading documentation

Change-Id: I3ce7e2cc521c4dd155195819a919017d4cc63b3c
(cherry picked from commit 09cf0376524dc0bac6c1ab05d3c43cdd29c362b1)

9 years agoWarn that bulk save groups inserts/updates by type
brln [Tue, 2 Aug 2016 22:37:35 +0000 (18:37 -0400)] 
Warn that bulk save groups inserts/updates by type

Users who pass many different object types to bulk_save_objects
may be surprised that the INSERT/UPDATE batches must necessarily
be broken up by type.  Add this to the list of caveats.

Co-authored-by: Mike Bayer
Change-Id: I8390c1c971ced50c41268b479a9dcd09c695b135
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/294
(cherry picked from commit ce1492ef3aae692a3dc10fff400e178e7b2edff8)

9 years agoFix typo
Jeff Widman [Tue, 26 Jul 2016 02:07:19 +0000 (19:07 -0700)] 
Fix typo
(cherry picked from commit 4aad91f687e905ef58132ab21af1ae60e56a9c8c)

9 years agoFix reference to _declarative_constructor in docstring
Michael Williamson [Mon, 25 Jul 2016 13:08:43 +0000 (13:08 +0000)] 
Fix reference to _declarative_constructor in docstring
(cherry picked from commit 924a47fc4fd0012bad151af5a99e5faea41bad8b)

9 years ago- Document how SQL Server does MAX with VARCHAR, NVARCHAR
Mike Bayer [Wed, 27 Jul 2016 14:04:52 +0000 (10:04 -0400)] 
- Document how SQL Server does MAX with VARCHAR, NVARCHAR
Fixes #3760

Change-Id: I0613eb66bfdc9d7118688c74e29c8da322c3b4db
(cherry picked from commit 0d92f79fd86073203a2a956460140c311c85a396)

9 years agoAllow Table._reset_exported to silently pass
Mike Bayer [Sun, 24 Jul 2016 21:37:25 +0000 (17:37 -0400)] 
Allow Table._reset_exported to silently pass

Fixed bug in :class:`.Table` where the internal method
``_reset_exported()`` would corrupt the state of the object.  This
method is intended for selectable objects and is called by the ORM
in some cases; an erroneous mapper configuration would could lead the
ORM to call this on on a :class:`.Table` object.

Change-Id: I63fa34ee0cdf16358bb125c556390df79758bcbc
Fixes: #3755
(cherry picked from commit 149fb5f55a5df3f31f6575919a5a5a2e5ba9cb0c)

9 years ago- a variety of test adjustments to accomodate for MySQL 5.7
Mike Bayer [Sun, 24 Jul 2016 20:36:27 +0000 (16:36 -0400)] 
- a variety of test adjustments to accomodate for MySQL 5.7

Change-Id: Ied4245433d0d7b469dae6e7394c4931d8405f387
(cherry picked from commit 02190234a25bb5ed2b07d25e6adcece2f5bba763)

9 years agoFix issue with unbaking subqueries
Mark Hahnenberg [Tue, 12 Jul 2016 18:07:52 +0000 (14:07 -0400)] 
Fix issue with unbaking subqueries

Fix improper capture of a loop variable inside a lambda during unbaking
of subquery eager loaders, which would cause the incorrect query
to be invoked.

Fixes: #3743
Change-Id: I995110deb8ee2dae8540486729e1ae64578d28fc
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/290
(cherry picked from commit bfa57063d49bcf355b00caaeb5e58d0b9d23acb3)

9 years ago- 1.0.15 for dev
Mike Bayer [Tue, 12 Jul 2016 18:04:40 +0000 (14:04 -0400)] 
- 1.0.15 for dev

Change-Id: I2d75b6d9ca533e662bc8160cf5fc52355e5e549e

9 years agoUpdate index.rst
Shige Takeda [Mon, 11 Jul 2016 22:58:43 +0000 (15:58 -0700)] 
Update index.rst
(cherry picked from commit 2045689ff27708292d8effa782777ec55a8477d0)

9 years agoUpdate index.rst
Shige Takeda [Mon, 11 Jul 2016 22:56:12 +0000 (15:56 -0700)] 
Update index.rst
(cherry picked from commit b5bf8632170d2d3ee5382c0de153829ee6857518)

9 years ago- fix typo
Mike Bayer [Thu, 7 Jul 2016 20:07:08 +0000 (16:07 -0400)] 
- fix typo

Change-Id: Ie66d419a5188529a64fcb2e2463c15c26863889f

9 years agoAdd additional documentation re: JSONEncodedDict
Mike Bayer [Thu, 7 Jul 2016 20:00:18 +0000 (16:00 -0400)] 
Add additional documentation re: JSONEncodedDict

Add an example of how to use coerce_compared_value()
specific to JSONEncodedDict, as this example class
is frequently dropped into applications.

Change-Id: I61639ac03dc5a37673ee8201b99a3c36ab944f00
Fixes: #3742
(cherry picked from commit b33caa64189f3fdbbabe4b381460b7610025aa6b)

9 years ago- 1.0.14 rel_1_0_14
Mike Bayer [Wed, 6 Jul 2016 21:10:19 +0000 (17:10 -0400)] 
- 1.0.14

9 years agoAdapt "FOR UPDATE OF" with Oracle limit/offset
Mike Bayer [Tue, 5 Jul 2016 16:48:41 +0000 (12:48 -0400)] 
Adapt "FOR UPDATE OF" with Oracle limit/offset

This modifies the Oracle ROWNUM limit/offset approach
to accommodate for the "OF" clause in a "FOR UPDATE"
phrase.  The column expressions must be added to the selected
subquery if necessary and adapted on the outside.

Change-Id: Ia71b5fc4df6d326e73863f8ae9f96e8f1a5acfc1
Fixes: #3741
(cherry picked from commit d23797943786914cced58ed71ffb7b749e64c449)

9 years agoRepair PG BIGSERIAL w/ TypeDecorator, Variant
Mike Bayer [Mon, 4 Jul 2016 20:37:26 +0000 (16:37 -0400)] 
Repair PG BIGSERIAL w/ TypeDecorator, Variant

Some of the dialect impl memoization for TypeDecorator
necessarily keeps the top-level TypeDecorator type
around, since a user-defined type will have bind and result
set processing behavior.  For both TypeDecorator and Variant,
PG dialect needs to ensure it's looking at the SQLAlchemy
type to check for SmallInteger / BigInteger.

Fixes: 3739
Change-Id: I2d45fb997f17c6272d6bb826a77d2dba665adae7

9 years ago- add backports
Mike Bayer [Fri, 1 Jul 2016 18:57:49 +0000 (14:57 -0400)] 
- add backports

Change-Id: Iee0bf9e60a5991bedbe29b305803b4c79ac5c511

9 years agoPreserve type for math negation
Mike Bayer [Fri, 1 Jul 2016 16:44:47 +0000 (12:44 -0400)] 
Preserve type for math negation

Fixed issue in SQL math negation operator where the type of the
expression would no longer be the numeric type of the original.
This would cause issues where the type determined result set
behaviors.

Change-Id: If0e339614a3686e251235fc94b6f59310c4630a5
Fixes: #3735
(cherry picked from commit 5c60aaefd32a7bdee611fb340911409e0b8223ed)

9 years ago- revert the RTD reqs workaround, we are self-hosting now
Mike Bayer [Fri, 1 Jul 2016 14:39:05 +0000 (10:39 -0400)] 
- revert the RTD reqs workaround, we are self-hosting now

Change-Id: Ie11361147d497c6eb6418cdc850ed277dfbd1de4
(cherry picked from commit f8781840aff51058bc8b1180012eed2a722a3e6f)

9 years agoRepair pickling for Properties object
Pieter Mulder [Wed, 29 Jun 2016 15:15:44 +0000 (11:15 -0400)] 
Repair pickling for Properties object

Fixed bug whereby the ``__getstate__`` / ``__setstate__``
methods for sqlalchemy.util.Properties were
non-working due to the transition in the 1.0 series to ``__slots__``.
The issue potentially impacted some third-party applications.
Pull request courtesy Pieter Mulder.

Fixes: #3728
Change-Id: I01ebd425bbfe145747fea2edd0d2d412c74fd84d
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/286
(cherry picked from commit cab57e9bab04fbdea44690c08dff379a29eaab32)

9 years ago- update alembic link
Mike Bayer [Sat, 18 Jun 2016 13:35:54 +0000 (09:35 -0400)] 
- update alembic link

Change-Id: I5ac6ba8234873fdd19bee6c1decd311a9cb4d55e
(cherry picked from commit 13f9578082ae669734d65a38cb6058e21df88362)

9 years ago- dont use id() to test identity as these can be recycled
Mike Bayer [Wed, 15 Jun 2016 22:15:46 +0000 (18:15 -0400)] 
- dont use id() to test identity as these can be recycled

Change-Id: Ie4cb4924909d55c5962f66e36cd5325e8e8f0538
(cherry picked from commit e5bdf96bc0b1503c4e4c8461748cd061f624e346)

9 years ago- flake8
Mike Bayer [Wed, 15 Jun 2016 22:10:46 +0000 (18:10 -0400)] 
- flake8

Change-Id: I74e369d1d71c98cb0af58dde80b7d535d17cbdf7
(cherry picked from commit 345cc1e304f3dc75bf5362e6c9f1975230a94753)

9 years agoDeprecate FromClause.count() (pending for 1.1)
Mike Bayer [Mon, 13 Jun 2016 19:18:13 +0000 (15:18 -0400)] 
Deprecate FromClause.count() (pending for 1.1)

count() here is misleading in that it not only
counts from an arbitrary column in the table, it also
does not make accommodations for DISTINCT, JOIN, etc.
as the ORM-level function does.  Core should not be
attempting to provide a function like this.

Change-Id: I9916fc51ef744389a92c54660ab08e9695b8afc2
Fixes: #3724
9 years agoEnsure CTE internals are handled during clone
Mike Bayer [Fri, 10 Jun 2016 21:24:36 +0000 (17:24 -0400)] 
Ensure CTE internals are handled during clone

The CTE construct was missing a _copy_internals() method
which would handle CTE-specific structures including _cte_alias,
_restates during a clone operation.

Change-Id: I9aeac9cd24d8f7ae6b70e52650d61f7c96cb6d7e
Fixes: #3722
(cherry picked from commit 7189d0bc82598c2d6dcbb55b054837416db2ee7d)

9 years ago- use a mock here, do away with timing problems for good. need to do this
Mike Bayer [Thu, 2 Jun 2016 22:40:46 +0000 (18:40 -0400)] 
- use a mock here, do away with timing problems for good.  need to do this
for the rest of the timing tests

Change-Id: I06a815b1500222126a4dbc2a9a5da3ef7847e321
(cherry picked from commit 74ca7f627ea8f31a8312f965d5249ce1f701d627)

9 years agoMerge "Skip UniqueConstraint marked by unique=True in tometadata" into rel_1_0
mike bayer [Fri, 3 Jun 2016 14:56:33 +0000 (10:56 -0400)] 
Merge "Skip UniqueConstraint marked by unique=True in tometadata" into rel_1_0

9 years ago- limit oracle DB reaps to identifiers generated from this
Mike Bayer [Thu, 2 Jun 2016 21:42:51 +0000 (17:42 -0400)] 
- limit oracle DB reaps to identifiers generated from this
run to prevent race conditions against concurrent runs

Change-Id: I065d1cec346ea7af03792c3cc2f30766f73c2bd3
(cherry picked from commit eb28ebb0f8a48ba57f68f21d64479b56bf689d24)

9 years agoSkip UniqueConstraint marked by unique=True in tometadata
Mike Bayer [Thu, 2 Jun 2016 17:52:27 +0000 (13:52 -0400)] 
Skip UniqueConstraint marked by unique=True in tometadata

Fixes an issue where a Column would be copied with unique=True
and at the same time the UniqueConstraint would also be copied,
leading to duplicate UniqueConstraints in the target table,
when tometadata() is used.   Imitates the same logic used
by index=True/Index to avoid duplicates.  For some reason
a fix was implemented for Index long ago but never for
UniqueConstraint.

Change-Id: Ie622ee912a6fb8bf0ea900a8b09d78c7ebc79fc0
Fixes: #3721
(cherry picked from commit afb466fb8bd9c2f8709e79fd0fce422b83ff1d6b)

9 years agoConvert readthedocs link for their .org -> .io migration for hosted projects
Adam Chainz [Sun, 29 May 2016 13:28:55 +0000 (14:28 +0100)] 
Convert readthedocs link for their .org -> .io migration for hosted projects

As per their email ‘Changes to project subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.

(cherry picked from commit 513a045395b4cb5d8e1a9deb69bc9761d79eee37)

9 years agoSpelling fixes: "an SQL" -> "a SQL", see #266
Ville Skyttä [Thu, 5 May 2016 06:02:07 +0000 (09:02 +0300)] 
Spelling fixes: "an SQL" -> "a SQL", see #266

(cherry picked from commit 61f9e3761245a55f8997ec40b6983bb0770fdec4)