]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
6 years agotypo
Raphael [Fri, 30 Nov 2018 00:11:24 +0000 (19:11 -0500)] 
typo

typo

(cherry picked from commit 0a0b36686d5da0e7d04974c8df0ece574b71f3cb)

6 years agoMove links etc. to github, new alembic links
Mike Bayer [Tue, 27 Nov 2018 03:58:50 +0000 (22:58 -0500)] 
Move links etc. to github, new alembic links

Change-Id: I59392d355a216ae59552a04c5508f548b901aa7b
(cherry picked from commit 50417cf758508e970f3fccc99af6a501ceac8eb2)
(cherry picked from commit d04575c55467da57ad7091615b313db2486908b6)

6 years ago- remove @HEAD indicator from docs requirements, fixes #4375
Mike Bayer [Mon, 26 Nov 2018 04:54:44 +0000 (23:54 -0500)] 
- remove @HEAD indicator from docs requirements, fixes #4375

Change-Id: I50b1622c2c2236bf9e436f61c7eea31faaeaa3e1
(cherry picked from commit b5cb68ac432bb7477642305504ddcfdb3edaf87f)

6 years agoImprove documentation re: Session.binds and partitioning strategies
Mike Bayer [Tue, 6 Nov 2018 20:13:03 +0000 (15:13 -0500)] 
Improve documentation re: Session.binds and partitioning strategies

Update documentation to include background on arbitrary superclass
usage, add full cross-linking between all related methods and parameters.
De-emphasize "twophase" and document that it is not well-supported
in drivers.

Change-Id: Id99894bb62cc506e896c9aa7c256e9f6e602243e
(cherry picked from commit 1f13c8c833ebd96c09d1499b2504aa4950dca709)

6 years agoDon't call rollback on DBAPI connection that's "closed"
Mike Bayer [Sun, 14 Oct 2018 19:55:46 +0000 (15:55 -0400)] 
Don't call rollback on DBAPI connection that's "closed"

Use the existence of ConnectionRecord.connection to estimate
that this connection is likely closed, and if so, don't
try to call "rollback" on it.  This rollback is normally harmless
but is causing segfaults in mysqlclient due to
https://github.com/PyMySQL/mysqlclient-python/issues/270.

Change-Id: I1d7c5f5a520527d8268b6334795c2051f7ceeea6
(cherry picked from commit a8781b51b4039eee56791b9dbfdee183f7a5b797)

6 years ago- get the "now" date for this test in terms of the database to accommodate
Mike Bayer [Sat, 13 Oct 2018 03:02:12 +0000 (23:02 -0400)] 
- get the "now" date for this test in terms of the database to accommodate
for local timezone doesn't match that of the DB

Change-Id: I0899d9294e8a2bd8f7f2c3e66cf396e2e8bd4bcc
(cherry picked from commit 7405392299492c83e6fa1546d3b36f52042e3c5e)

6 years agoAdd additional documentation for ORM fetched defaults
Mike Bayer [Tue, 2 Oct 2018 17:54:00 +0000 (13:54 -0400)] 
Add additional documentation for ORM fetched defaults

Add additional examples to the section first added as part
of #4317 to cover the use cases requested in #3921.

Fixes: #3921
Change-Id: I6ec283aa0a6fbabedef40bb4320751ab4cd990ea
(cherry picked from commit ffd27cef48241e39725c4e9cd13fd744a2806bdd)

6 years agoAdd link to Code of Conduct
Mike Bayer [Sat, 29 Sep 2018 23:12:40 +0000 (19:12 -0400)] 
Add link to Code of Conduct

Change-Id: Ib07db7c2fc97739a172e541a0681176a67f89a2f
(cherry picked from commit 29d54ab69b689c2bc4b9be8273f4c0a96e37153f)

6 years agoRemove unnecessary unicode and raw string prefix
Denis Kataev [Fri, 28 Sep 2018 07:40:30 +0000 (12:40 +0500)] 
Remove unnecessary unicode and raw string prefix

(cherry picked from commit fc5dbc30168710ef20c467a54610979cd06a58c7)

6 years agoAdd non-primary mapper example illustrating a row-limited relationship
Mike Bayer [Fri, 28 Sep 2018 01:27:59 +0000 (21:27 -0400)] 
Add non-primary mapper example illustrating a row-limited relationship

Change-Id: Ifcb3baa6b220e375dc029794dd10c111660eac94
(cherry picked from commit 888d122dcf5881ad1bca07df2ba444e293538d99)

6 years agoFix doc type
Wouter Overmeire [Tue, 11 Sep 2018 12:17:02 +0000 (14:17 +0200)] 
Fix doc type

(cherry picked from commit 82006fcc937eaea99c767f35fcb642bc35da0a15)

6 years agominor spelling correction
Glyph [Thu, 6 Sep 2018 22:58:12 +0000 (15:58 -0700)] 
minor spelling correction

(cherry picked from commit 35a458c7822a8071a61da84fce021fb42cd9b086)

6 years agoClarify init_scalar event use case
Mike Bayer [Thu, 6 Sep 2018 14:44:09 +0000 (10:44 -0400)] 
Clarify init_scalar event use case

Since I didn't even realize what this was for when reading the docs,
make it clearer that this is to mirror a Column default and remove
the extra verbiage about the mechanics of INSERTs.

Change-Id: Id2c6a29800f7b723573610e4707aec7e6ea38f5f
(cherry picked from commit 71b01adc7b31baab7bbcf40123633b87ee53bf64)

6 years agoMariaDB 10.3 updates
Mike Bayer [Thu, 30 Aug 2018 21:12:58 +0000 (17:12 -0400)] 
MariaDB 10.3 updates

MariaDB seems to handle some additional UPDATE/DELETE FROM
syntaxes as well as some forms of INTERSECT and EXCEPT. Open
up tests that expect failure for MySQL to allow success for
MariaDB 10.3.

Change-Id: Ia9341a82485ef7201bb8130d8dbf4a9b6976035a
(cherry picked from commit 081d4275cf5c3e6842c8e0198542ff89617eaa96)

6 years agoFix links and update verbiage for reset_on_return
Mike Bayer [Tue, 28 Aug 2018 18:58:05 +0000 (14:58 -0400)] 
Fix links and update verbiage for reset_on_return

Change-Id: I642056b78570b44fdefe7f0874a8e4c720389f14
(cherry picked from commit d8bb208a85f6366c58426a85b3d4ec1d6e43ac6c)

6 years agoDocument binary_prefix for mysqlclient and PyMySQL
Mike Bayer [Fri, 17 Aug 2018 23:25:20 +0000 (19:25 -0400)] 
Document binary_prefix for mysqlclient and PyMySQL

Also, remove the section on "use_unicode=0", there is no reason
anyone should be using that now.

Fixes: #4216
Change-Id: I5b8b53e40903adf339af2934a4f2d8b068818ebf
(cherry picked from commit c3869f23836bd35d5ed565a4b84b4ab70293c0f7)

6 years agoCorrect for the INSERT statement, typos
Mike Bayer [Thu, 9 Aug 2018 18:35:52 +0000 (14:35 -0400)] 
Correct for the INSERT statement, typos

Change-Id: I036f3eb9b5e591515920678bc9a76f707fda142c
(cherry picked from commit c85378d9841177b067a93c564edb1787703c6595)

6 years agoWrite a much better section about server defaults
Mike Bayer [Thu, 9 Aug 2018 17:34:03 +0000 (13:34 -0400)] 
Write a much better section about server defaults

Include information about eager_defaults etc.  These
docs were written before we had all the features
we do now.

Change-Id: Ie62e58c5986698824f717e9f8c802b07a27517d4
Fixes: #4317
(cherry picked from commit 82dfcf43de1d1647306ee2840b79be4f9df7588a)

7 years agoReplace 'with' with 'which'
Kevin Horn [Fri, 27 Jul 2018 16:06:50 +0000 (11:06 -0500)] 
Replace 'with' with 'which'

(cherry picked from commit 8601e86f1179d93d5d072c8774bfae41caa8cf56)

7 years agoDocument sticky behavior of loader options
Mike Bayer [Tue, 10 Jul 2018 17:30:05 +0000 (13:30 -0400)] 
Document sticky behavior of loader options

References #4301

Change-Id: If921e3b8369e2cd5312b5964a99bcf7731b3ecfc
(cherry picked from commit 3cc832992d6820a3cbc88d1b8aca958af8175a49)

7 years ago- add some context to the declarative section indicating this is not
Mike Bayer [Thu, 5 Jul 2018 04:05:42 +0000 (00:05 -0400)] 
- add some context to the declarative section indicating this is not
the introductory material for these topics

Change-Id: I358ba8c32520ce3950a727216bc019e33377e7b9
(cherry picked from commit 284009683d9e48e19cc09e740e7b928c2c02997c)

7 years ago- fix linking for the query.rst page
Mike Bayer [Wed, 4 Jul 2018 21:48:31 +0000 (17:48 -0400)] 
- fix linking for the query.rst page

Change-Id: I269fdd72e372e1bf4f0f85e9fc8e6938adc4f686
(cherry picked from commit b6fb6f6b60e87d00fcd702b92e883cf3c61d07c6)

7 years agoUpdate URL for PyMySQL documentation
Logan Rosen [Thu, 28 Jun 2018 20:04:27 +0000 (16:04 -0400)] 
Update URL for PyMySQL documentation

(cherry picked from commit b694a309e89e7c3e57e83dd10e9a75c66672c396)

7 years agoRemove stale ON UPDATE/ON DELETE comment.
Andrew Gaul [Wed, 20 Jun 2018 00:29:34 +0000 (17:29 -0700)] 
Remove stale ON UPDATE/ON DELETE comment.

SQLite supports both of these features.

(cherry picked from commit 6bb50e12930dce0471f74b24f93b3ff1569d94dd)

7 years agoupdate client-side/server-side SQL default expression documentation
Mike Bayer [Wed, 13 Jun 2018 16:01:20 +0000 (12:01 -0400)] 
update client-side/server-side SQL default expression documentation

These docs were inaccurate and verbose, try to modernize them
with up to date information and add cues to allow the reader
to understand them quickly.

Change-Id: I997d9b8963d90c73f5960fe29d8f1b5005299da7
(cherry picked from commit da5323c2fae39aab45d305f723a73483563b2307)

7 years ago- add a tl;dr to postgresql search_path section as it's long
Mike Bayer [Sun, 6 May 2018 13:02:02 +0000 (09:02 -0400)] 
- add a tl;dr to postgresql search_path section as it's long
and will be easier to read if we know where it's going first.

Change-Id: I2766cf4655451ed514d4dc95ac60406b9f4a8ddb
(cherry picked from commit 513a6e5bcea5dccabaf86166906233542a4669e7)

7 years ago- modernize versioning examples
Mike Bayer [Sat, 5 May 2018 21:42:57 +0000 (17:42 -0400)] 
- modernize versioning examples
- add new example versioned_rows_w_versionid

Change-Id: I592cd5eb7db50162b4c4ad6191813d9def2b6d7c
(cherry picked from commit 70f8f6a169daa3e4f25f2b6983ff4750443a8307)

7 years ago- add sap-hana
Mike Bayer [Thu, 3 May 2018 13:59:36 +0000 (09:59 -0400)] 
- add sap-hana

Change-Id: Id3ddd78fceb31df40c5f00f8b21320b0da8488af
(cherry picked from commit 21b6ec97318e87ab1bf36acf469eb9deb9823e0e)

7 years agoFix bindparam type param fixes #4220
Mike Bayer [Sun, 1 Apr 2018 14:33:40 +0000 (10:33 -0400)] 
Fix bindparam type param fixes #4220

Change-Id: I0f40bc3145d4cab1a12d2174b9f0f60b4ce736f5
(cherry picked from commit 55371f4cffa730f65f1b687e9f6287d2ac189227)

7 years agoLink to the ExpireRelationshipOnFKChange recipe for deletes
Mike Bayer [Mon, 26 Mar 2018 22:10:16 +0000 (18:10 -0400)] 
Link to the ExpireRelationshipOnFKChange recipe for deletes

The recipe now supports interception of delete() and a
corresponding update of related objects.

Change-Id: I2aa3bfdd477ceccff6cfb3e66ed73311705010c7

7 years agoMake it much more clear that concrete mapping is limited
Mike Bayer [Wed, 7 Mar 2018 23:05:07 +0000 (18:05 -0500)] 
Make it much more clear that concrete mapping is limited

Change-Id: Icb2ea787b0defbf5f1244b144759c1e8acff3f0f
(cherry picked from commit ea20a1181774a282de298d75212af6f8daf359c9)

7 years agoAdd notes regarding flat=True
Mike Bayer [Wed, 7 Mar 2018 21:03:07 +0000 (16:03 -0500)] 
Add notes regarding flat=True

Start documenting that flat=True and aliased=True don't work
with selectable particularly when selectable is an aliased select
already.  References #4212

Change-Id: I6e576165f06387350ae97e43ad979e575a4912b9
(cherry picked from commit 39d7dfa08accf6cce6d53b0807603bf43d580791)

7 years agoVersion 1.1.19 placeholder
Mike Bayer [Tue, 6 Mar 2018 19:10:39 +0000 (14:10 -0500)] 
Version 1.1.19 placeholder

7 years ago- 1.1.18 rel_1_1_18
Mike Bayer [Tue, 6 Mar 2018 19:04:26 +0000 (14:04 -0500)] 
- 1.1.18

7 years agoOnly replace first occurrence for COLLATE/ARRAY syntax
Mike Bayer [Mon, 5 Mar 2018 16:33:30 +0000 (11:33 -0500)] 
Only replace first occurrence for COLLATE/ARRAY syntax

Fixed bug in Postgresql COLLATE / ARRAY adjustment first introduced
in :ticket:`4006` where new behaviors in Python 3.7 regular expressions
caused the fix to fail.

Change-Id: Ied3893d7cac210befa0277b55b3b895b0ba1f0d2
Fixes: #4208
(cherry picked from commit 7300469f71f161d47795dcf7415d5a22db8e2ef0)

7 years agoGet MySQL version info from @@version
Mike Bayer [Fri, 2 Mar 2018 20:08:08 +0000 (15:08 -0500)] 
Get MySQL version info from @@version

MySQL dialects now query the server version using ``SELECT @@version``
explicitly to the server to ensure we are getting the correct version
information back.   Proxy servers like MaxScale interfere with the value
that is passed to the DBAPI's connection.server_version value so this
is no longer reliable.

Change-Id: Iafd39be8c9bf1982d58b34cc997ae1016ad6c48c
Fixes: #4205
(cherry picked from commit 9ba77e8d3b682bff89fdab5e80271a96a52fe8c8)
(cherry picked from commit 5c1ebbc3706c810f936d9e252ee5d16800e561ea)

7 years ago- add some seealsos for the transient object that loads use case
Mike Bayer [Fri, 2 Mar 2018 16:58:52 +0000 (11:58 -0500)] 
- add some seealsos for the transient object that loads use case

Change-Id: Ibfa79a3721f31806223906cccf4547673b3d42f1
(cherry picked from commit 5de2e17b6e6686adf0a87038e90b001978187c0a)

7 years agoFix enable_relationship_loading() works fine w/ one-to-many
Mike Bayer [Fri, 2 Mar 2018 15:45:42 +0000 (10:45 -0500)] 
Fix enable_relationship_loading() works fine w/ one-to-many

Change-Id: I6efb62afa02be4d42482cfdbec739a5c6ab32bd7
(cherry picked from commit fde2f77fd1978d4162ab01bc05bb5c793bc733b2)

7 years agoFix typo in python example
Anton Vlasenko [Wed, 14 Feb 2018 10:31:36 +0000 (11:31 +0100)] 
Fix typo in python example

(cherry picked from commit 31d28179c29e987a6ed844f6b8abf5dc1574e594)

7 years agoVersion 1.1.18 placeholder
Mike Bayer [Thu, 22 Feb 2018 21:16:11 +0000 (16:16 -0500)] 
Version 1.1.18 placeholder

7 years ago- 1.1.17 rel_1_1_17
Mike Bayer [Thu, 22 Feb 2018 21:08:56 +0000 (16:08 -0500)] 
- 1.1.17

7 years agoDefault to using current mapped class as owner if none found
Mike Bayer [Tue, 20 Feb 2018 17:15:57 +0000 (12:15 -0500)] 
Default to using current mapped class as owner if none found

Repaired regression caused in 1.2.3 and 1.1.16 regarding association proxy
objects, revising the approach to :ticket:`4185` when calculating the
"owning class" of an association proxy to default to choosing the current
class if the proxy object is not directly associated with a mapped class,
such as a mixin.

Change-Id: I87d0ac09f695dc285bd4bbe0a547f1d5ce23e068
Fixes: #4185
(cherry picked from commit 93881f7873048403b62cc3e179354712ba8e9282)

7 years agoRewrite the "deleting from collections" section
Mike Bayer [Mon, 19 Feb 2018 23:13:24 +0000 (18:13 -0500)] 
Rewrite the "deleting from collections" section

This section documents an aspect of the ORM that is
more generalized than just collections as well as more general
than just using session.delete(), even though session.delete()
with collections is the most common use case.   Try to expand
out the scope here to explain the situation from the perspective
of any kind of relationship, include example with delete cascade
with many-to-one as well.

Change-Id: Ifacb91f90951d1b0da6dbadc2d72273d79b756e2
Fixes: #4191
7 years agoVersion 1.1.17 placeholder
Mike Bayer [Fri, 16 Feb 2018 22:36:45 +0000 (17:36 -0500)] 
Version 1.1.17 placeholder

7 years ago- 1.1.16 rel_1_1_16
Mike Bayer [Fri, 16 Feb 2018 21:55:40 +0000 (16:55 -0500)] 
- 1.1.16

7 years agofix formatting
Mike Bayer [Fri, 16 Feb 2018 21:54:43 +0000 (16:54 -0500)] 
fix formatting

Change-Id: Ie4687c970508cf8bf183e342db6b89a8aca9d6f9

7 years agoAdd ssl "operation timed out" message for psycopg2
André Cruz [Thu, 15 Feb 2018 16:09:47 +0000 (11:09 -0500)] 
Add ssl "operation timed out" message for psycopg2

Added "SSL SYSCALL error: Operation timed out" to the list
of messages that trigger a "disconnect" scenario for the
psycopg2 driver.  Pull request courtesy André Cruz.

Change-Id: Ie1a8fc97e74b6906ccacf53dad70fed973c42b7f
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/3
(cherry picked from commit 2f03ec08b5a1c633133c0a38d82b05eb83708f69)

7 years agoFixed link to Flask-SQLAlchemy in documentation
Tim Shaffer [Wed, 17 Jan 2018 12:04:16 +0000 (07:04 -0500)] 
Fixed link to Flask-SQLAlchemy in documentation

(cherry picked from commit 9feb900f3ec979725a9d3ee68f607f5b7606c061)

7 years agoAdd dependency for parent_pre post updates to parent deletes
Mike Bayer [Mon, 12 Feb 2018 21:45:39 +0000 (16:45 -0500)] 
Add dependency for parent_pre post updates to parent deletes

Fixed issue in post_update feature where an UPDATE is emitted
when the parent object has been deleted but the dependent object
is not.   This issue has existed for a long time however
since 1.2 now asserts rows matched for post_update, this
was raising an error.

Change-Id: I31b1d22408e358962577435f0c4cb9a456ba0872
Fixes: #4187
(cherry picked from commit 8607ae51fc5b74c181cdde6b89ade3ee30c12dad)

7 years agoSearch through mapper superclass hierarchy for owner
Mike Bayer [Fri, 9 Feb 2018 21:12:31 +0000 (16:12 -0500)] 
Search through mapper superclass hierarchy for owner

Fixed regression caused by fix for issue :ticket:`4116` affecting versions
1.2.2 as well as 1.1.15, which had the effect of mis-calculation of the
"owning class" of an :class:`.AssociationProxy` as the ``NoneType`` class
in some declarative mixin/inheritance situations as well as if the
association proxy were accessed off of an un-mapped class.  The "figure out
the owner" logic has been replaced by an in-depth routine that searches
through the complete mapper hierarchy assigned to the class or subclass to
determine the correct (we hope) match; will not assign the owner if no
match is found.  An exception is now raised if the proxy is used
against an un-mapped instance.

Change-Id: I611b590df2babe077ce6c19bea89e84251d1a7f4
Fixes: #4185
(cherry picked from commit 650b9eddae0eb198c8f8dc2d1e1e3c6ac53b18f3)

7 years agoMerge "Ensure weakref finalize_fairy operates upon the current connection" into rel_1_1
mike bayer [Fri, 9 Feb 2018 13:40:17 +0000 (08:40 -0500)] 
Merge "Ensure weakref finalize_fairy operates upon the current connection" into rel_1_1

7 years ago- fix formatting
Mike Bayer [Thu, 8 Feb 2018 21:46:56 +0000 (16:46 -0500)] 
- fix formatting

Change-Id: Ic919048462520de8de84174a5e366d6c85316e87
(cherry picked from commit ea3fd424957620ae6a93b5e65d6a4bc7b4048ab7)

7 years agoEnsure weakref finalize_fairy operates upon the current connection
Mike Bayer [Thu, 8 Feb 2018 19:52:29 +0000 (14:52 -0500)] 
Ensure weakref finalize_fairy operates upon the current connection

Fixed a fairly serious connection pool bug where a connection that is
acquired after being refreshed as a result of a user-defined
:class:`.DisconnectionError` or due to the 1.2-released "pre_ping" feature
would not be correctly reset if the connection were returned to the pool by
weakref cleanup (e.g. the front-facing object is garbage collected); the
weakref would still refer to the previously invalidated DBAPI connection
which would have the reset operation erroneously called upon it instead.
This would lead to stack traces in the logs and a connection being checked
into the pool without being reset, which can cause locking issues.

Change-Id: Iabd9f3a63a1d0207d0de0054a6ced3560818cf9c
Fixes: #4184
(cherry picked from commit ab1f524c355c0bbac68485a60cb99e7a9d0f944a)

7 years ago- ensure it's clear that all DDLEvents can be associated
Mike Bayer [Fri, 2 Feb 2018 20:46:30 +0000 (15:46 -0500)] 
- ensure it's clear that all DDLEvents can be associated
using propagate=True, which is consulted within the scope
of Table.tometadata().  Fixes: #4179

Change-Id: I0cb0d8f6a894bb645cfc94b3d9083339039c9193
(cherry picked from commit 56ff3c5270b4393c1ae800756f3619583a0fb255)

7 years ago- don't scare off developers with the word "advanced" here
Mike Bayer [Wed, 31 Jan 2018 14:27:03 +0000 (09:27 -0500)] 
- don't scare off developers with the word "advanced" here

Change-Id: I72a0295634e228bacf6c92088e650183f91e4585
(cherry picked from commit 399988aaed401ea6fc69aa580b9b71c236a30f16)

7 years agoAdd note to FAQ that IN behavior is modernized in 1.2.
Mike Bayer [Thu, 25 Jan 2018 21:14:54 +0000 (16:14 -0500)] 
Add note to FAQ that IN behavior is modernized in 1.2.

Change-Id: Ibe05d8aaa8da90b52cd07f3bce89dcbd49b841c9

7 years agoAdd a new FAQ section explaining how to ensure parenthesis
Mike Bayer [Thu, 25 Jan 2018 21:11:29 +0000 (16:11 -0500)] 
Add a new FAQ section explaining how to ensure parenthesis
with op().

Not sure if this can be further improved at some point, such
as if a BinaryExpression automatically applied self_group()
when op() is called, however for the moment op() behaves consistently
as with all other operators without any ad-hoc effects.

Change-Id: Ia7f1ab43990450bd96757848b77a35e8fedeab63
References: #4174
(cherry picked from commit 1d435b9f49136f53aac4aa457f7744227be0b26a)

7 years agoFurther refine map_column verbiage
Mike Bayer [Thu, 25 Jan 2018 14:17:41 +0000 (09:17 -0500)] 
Further refine map_column verbiage

The verbiage here continues to be misleading as it implies that
a MapperProperty already exists for the Column when this is not
the case.

Change-Id: Iaa6990dc9693d47d50b15c4815c3c7f6f34d8577
(cherry picked from commit bc9cdd5de0781b93f9cf581f1c5e0d96179ad12e)

7 years agoRework synonym, synonym_for documentation
Mike Bayer [Wed, 24 Jan 2018 23:03:04 +0000 (18:03 -0500)] 
Rework synonym, synonym_for documentation

The map_column example was incorrect, and overall the purpose
of this parameter as well as that of synonym_for was not explained;
examples added along with more encouragement to use hybrids.

Change-Id: I20bd286f541f798daa81fa598c0f31db1f5aa6ed
(cherry picked from commit 8250a4248fceaa3f4fbaebea3ff6a7f626299659)

7 years ago- add missing 2018 update to conf.py
Mike Bayer [Mon, 15 Jan 2018 14:20:52 +0000 (09:20 -0500)] 
- add missing 2018 update to conf.py

Change-Id: Ie2d4ff9486375867ed6958b82cd2595bae43746d
(cherry picked from commit c3fe4b585bb6e3d238dc3283030f1f0c011cdc8d)

7 years agohappy new year
Mike Bayer [Fri, 12 Jan 2018 19:23:53 +0000 (14:23 -0500)] 
happy new year

Change-Id: I3ef36bfd0cb0ba62b3123c8cf92370a43156cf8f
(cherry picked from commit 699272e4dcb9aa71ebbc0d9487fb6de82d3abc2b)

7 years ago`ValuesBase.values` inconsistency fix
Aubrey Stark-Toller [Fri, 5 Jan 2018 20:06:23 +0000 (15:06 -0500)] 
`ValuesBase.values` inconsistency fix

Fixed bug in :meth:`.Insert.values` where using the "multi-values"
format in combination with :class:`.Column` objects as keys rather
than strings would fail.   Pull request courtesy Aubrey Stark-Toller.

Change-Id: I9d3b40b5950df8f5bfdc8b1d22f9c3afb277f17f
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/412
Fixes: #4162
(cherry picked from commit ab2165e6d6e9b33f772e9eb3668b3e32175093c4)

7 years agoturn off pytest's latest plugin we didn't ask for, logging
Mike Bayer [Fri, 5 Jan 2018 20:31:10 +0000 (15:31 -0500)] 
turn off pytest's latest plugin we didn't ask for, logging

Change-Id: I24d57894c519366febbce268b04474182dfbb0a1
(cherry picked from commit 3316890ffa9a51471ca7618e4a13e45494e03198)

7 years agoCheck for object was expunged before restoring after pk switch + rollback
Mike Bayer [Thu, 4 Jan 2018 19:09:32 +0000 (14:09 -0500)] 
Check for object was expunged before restoring after pk switch + rollback

Fixed bug where an object that is expunged during a rollback of
a nested or subtransaction which also had its primary key mutated
would not be correctly removed from the session, causing subsequent
issues in using the session.

Change-Id: I57e2888902015d67ee11857e44382818f1d2f8bc
Fixes: #4151
(cherry picked from commit 5811276bb7515af3418a6d20f5213d658e320121)

7 years agoAdd TRUNCATE to postgres autocommit regexp
Jacob Hayes [Fri, 15 Dec 2017 14:56:59 +0000 (09:56 -0500)] 
Add TRUNCATE to postgres autocommit regexp

Extends AUTOCOMMIT_REGEXP for the postgres dialect to include `TRUNCATE`.

Change-Id: I315e03674b89bb89aae669b8655481e4d890491e
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/407
(cherry picked from commit 756d5782870029f2d97b1aa171abd61dbf4cbcb4)

7 years agoAllow for the database to produce a UUID instance
Martijn Pieters [Wed, 22 Nov 2017 10:05:44 +0000 (10:05 +0000)] 
Allow for the database to produce a UUID instance

Some database adapters (specifically, pg8000) already produce a uuid.UUID()
instance for UUID columns. Account for this.

(cherry picked from commit e80a5adfd406e2392cfaad687e8b3f0ae9ed4e11)

7 years agoFix import in Inspector.reflecttable doc
Jacob Hayes [Thu, 9 Nov 2017 04:14:37 +0000 (22:14 -0600)] 
Fix import in Inspector.reflecttable doc

(cherry picked from commit e6b290df2774efbafaea8374b27f72eb712853e9)

7 years agoAdd tests for ARRAY propagate events re. MutableList
Mike Bayer [Mon, 4 Dec 2017 21:40:20 +0000 (16:40 -0500)] 
Add tests for ARRAY propagate events re. MutableList

Issue #4141 appears in version 1.2, however we are adding the
MutableList test for it to 1.1 as well.  The metadata test
does not apply as in 1.1 ARRAY is not a SchemaEventTarget.

Change-Id: If8c57615860883837f6cf72661e46180a77778c1
(cherry picked from commit 14bb6eae364f41b6acbce782ebf5f984b9364af9)

7 years agoFix a typo in basic_relationships.rst.
Randy Barlow [Wed, 15 Nov 2017 17:53:12 +0000 (12:53 -0500)] 
Fix a typo in basic_relationships.rst.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
(cherry picked from commit 096bace0da15c0fc903e55873518c7f47efbce19)

7 years agoMerge "add nullsfirst() / nullslast() to top-level imports" into rel_1_1
mike bayer [Fri, 17 Nov 2017 15:32:40 +0000 (10:32 -0500)] 
Merge "add nullsfirst() / nullslast() to top-level imports" into rel_1_1

7 years agoAdd license to Wheel metadata
Jeff Widman [Wed, 15 Nov 2017 23:10:25 +0000 (18:10 -0500)] 
Add license to Wheel metadata

https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file

Change-Id: Icf91b96ba534c8f835ad287e7840ac2a9d2ac502
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/397
(cherry picked from commit bcbff960a17654004a08401546d8c2d990ee9894)

7 years agoadd nullsfirst() / nullslast() to top-level imports
Lele Gaifax [Wed, 15 Nov 2017 23:11:05 +0000 (18:11 -0500)] 
add nullsfirst() / nullslast() to top-level imports

Change-Id: Ieefcc4c30c1c17f43f2908d961e00815bae862bb
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/378
(cherry picked from commit d507ea00a9523cf5dc00a7c663ed4a44d1fdddcf)

7 years agoPropagate kwargs for mysql concat, match
Mike Bayer [Mon, 13 Nov 2017 14:21:48 +0000 (09:21 -0500)] 
Propagate kwargs for mysql concat, match

Fixed bug where the MySQL "concat" and "match" operators failed to
propagate kwargs to the left and right expressions, causing compiler
options such as "literal_binds" to fail.

Also adds non-interpreted **kw for visit_create_index, visit_typeclause

Change-Id: Iaf54ac18949cc6a54f50678125f010b4f12c5673
Fixes: #4136
(cherry picked from commit 4f054550b768985f1c3393e46e0fc26bfefeeaf6)

7 years ago- fix loop logic that was leaving out 10K items from
Mike Bayer [Thu, 9 Nov 2017 16:38:22 +0000 (11:38 -0500)] 
- fix loop logic that was leaving out 10K items from
example suites, fixes #4132

Change-Id: Icf07f33fc99a880d6165d300579ef5d2c366f6f5
(cherry picked from commit 6448903b5287801aaefbf82b5fa108403d743e8f)

7 years agoVersion 1.1.16 placeholder
Mike Bayer [Fri, 3 Nov 2017 21:07:06 +0000 (17:07 -0400)] 
Version 1.1.16 placeholder

Change-Id: Ia563c801f5f467084c49fc367f31b2385e0777bb

7 years ago- 1.1.15 rel_1_1_15
Mike Bayer [Fri, 3 Nov 2017 20:47:02 +0000 (16:47 -0400)] 
- 1.1.15

7 years agoFix as many RST parse warnings as possible.
Mike Bayer [Fri, 3 Nov 2017 18:45:18 +0000 (14:45 -0400)] 
Fix as many RST parse warnings as possible.

Still a few I can't get.   Also 0.9 is EOL so hide the
unreleased notes.

Change-Id: If0e44d4a0b3e78e211f32d5c33b51b1a007c9c69
(cherry picked from commit 75bdcd096f12012bf45cffebd597c33b501c2ef2)

7 years agoAdd doc note for contains_eager() w/ subclasses.
Mike Bayer [Thu, 2 Nov 2017 17:53:34 +0000 (13:53 -0400)] 
Add doc note for contains_eager() w/ subclasses.

Change-Id: I9634136e1855a081c25b04bb6ae8248f0f94be1c
Fixes: #4130
(cherry picked from commit 152522b3f28de290d9ea2903fa2c414b8579515a)

7 years agoAccommodate tuples for ColumnDefault.__repr__
Nicolas CANIART [Tue, 31 Oct 2017 15:34:10 +0000 (11:34 -0400)] 
Accommodate tuples for ColumnDefault.__repr__

Fixed bug where ``__repr__`` of :class:`.ColumnDefault` would fail
if the argument were a tuple.  Pull request courtesy Nicolas Caniart.

Change-Id: I08aa2448ef91054c43d6068ac54cedbdf7a83d64
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/1
Fixes: #4126
(cherry picked from commit 5acc9b149a4f7c44b8e7fbe926c0c5de8f13b2c4)

7 years ago- add notes that @comparator and @expression don't go together.
Mike Bayer [Tue, 31 Oct 2017 00:02:21 +0000 (20:02 -0400)] 
- add notes that @comparator and @expression don't go together.

Change-Id: I3fb366f8b49454453e4b6dada565c24c5ccb975e
(cherry picked from commit 8965f3021539f3132311d6277aab475d6c44ebbe)

7 years agoFilter attributes we don't map during a load_scalar_attributes
Mike Bayer [Sat, 28 Oct 2017 17:28:58 +0000 (13:28 -0400)] 
Filter attributes we don't map during a load_scalar_attributes

Fixed bug where a descriptor that is elsewhere a mapped column
or relationship within a hierarchy based on :class:`.AbstractConcreteBase`
would be referred towards during a refresh operation, causing an error
as the attribute is not mapped as a mapper property.
A similar issue can arise for other attributes like the "type" column
added by :class:`.AbstractConcreteBase` if the class fails to include
"concrete=True" in its mapper, however the check here should also
prevent that scenario from causing a problem.

Change-Id: I407b07a3a3e2c374da19fc86ed44b987d595dcfa
Fixes: #4124
(cherry picked from commit fd4289c5829d6498495ac59fe1dccb23b4975281)

7 years agofix typo
wodim [Fri, 5 May 2017 20:40:16 +0000 (22:40 +0200)] 
fix typo

(cherry picked from commit 3380390b7a4160df56c409e078ab53de7c6590a1)

7 years agoFix typo: multidimentional --> multidimensional
Jeff Widman [Fri, 20 Oct 2017 22:24:15 +0000 (15:24 -0700)] 
Fix typo: multidimentional --> multidimensional

(cherry picked from commit 975081a3a86ad350966c2ff275759bd3721f3089)

7 years agoResolve AliasedClass when determining owning class of association proxy
Mike Bayer [Fri, 20 Oct 2017 18:34:16 +0000 (14:34 -0400)] 
Resolve AliasedClass when determining owning class of association proxy

Fixed bug where the association proxy would inadvertently link itself
to an :class:`.AliasedClass` object if it were called first with
the :class:`.AliasedClass` as a parent, causing errors upon subsequent
usage.

Change-Id: I9161bab67766bb75d73ca54d712ad1cad6de40dc
Fixes: #4116
(cherry picked from commit f14a58dea4b825beb4baaef44389880927543cc4)

7 years agoRemove deprecation warnings mysql5 7 20
Daniel Thorell [Fri, 20 Oct 2017 16:59:55 +0000 (12:59 -0400)] 
Remove deprecation warnings mysql5 7 20

MySQL 5.7.20 now warns for use of the @tx_isolation variable; a version
check is now performed and uses @transaction_isolation instead
to prevent this warning.

For 1.1, also backport our_warn() test fixture fix from
9f0fb6c601 1.2 branch.

(cherry picked from commit 41cfe44b5e5806b3d3b13949e41dbb347bfa29e1)
Co-authored by: Mike Bayer <mike_mp@zzzcomputing.com>
Fixes: #4120
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/391
Change-Id: I4d2e04df760c5351a71dde8b32145cdc69fa6115

7 years agoMerge "Get MariaDB normalized version relative to "MariaDB" token" into rel_1_1
mike bayer [Mon, 23 Oct 2017 23:05:05 +0000 (19:05 -0400)] 
Merge "Get MariaDB normalized version relative to "MariaDB" token" into rel_1_1

7 years agoAdd changelog for ticket #4097
Mike Bayer [Mon, 23 Oct 2017 22:58:37 +0000 (18:58 -0400)] 
Add changelog for ticket #4097

A changelog was not added for #4097 even though this issue
was ticketed and backported to 1.1.

Change-Id: I1aeb5cb344c95ad86daa166e68eca7073eca0b87
Fixes: #4097
(cherry picked from commit 1c025e9795315283e548ad4f1a2b31d923104a38)

7 years agoGet MariaDB normalized version relative to "MariaDB" token
Mike Bayer [Fri, 20 Oct 2017 20:07:49 +0000 (16:07 -0400)] 
Get MariaDB normalized version relative to "MariaDB" token

Fixed regression from 1.2.0b3 where "MariaDB" version comparison can
fail for some particular MariaDB version strings under Python 3.

For 1.1, this was merged as part of #4097

Change-Id: Iedf49f40c1614ccedf63e0fa26719dd704da104d
Fixes: #4115
(cherry picked from commit 57f7788ec2ea0de56137c8ac6909948e2ae91489)

7 years agoAdd missing space in repr of the sessionmaker class
Paul Anton Letnes [Mon, 16 Oct 2017 10:32:38 +0000 (12:32 +0200)] 
Add missing space in repr of the sessionmaker class

The missing space was driving me nuts.

(cherry picked from commit b343dc5611f0ab280f9a324948775c38b65efd1c)

7 years ago- make a note in 1.1 migration notes for ref #4102
Mike Bayer [Thu, 12 Oct 2017 15:15:11 +0000 (11:15 -0400)] 
- make a note in 1.1 migration notes for ref #4102

Change-Id: If9edba3af476bc4303246e55d0ecb53009084342
(cherry picked from commit 9ffee8c94a2ed586b2d1abe404276a044078b8ca)

7 years agoMerge "Don't include SelectBase when searching for surface column elements" into...
mike bayer [Tue, 10 Oct 2017 18:12:18 +0000 (14:12 -0400)] 
Merge "Don't include SelectBase when searching for surface column elements" into rel_1_1

7 years ago - add a note how to generate pg10 IDENTITY for now
Mike Bayer [Mon, 9 Oct 2017 15:12:34 +0000 (11:12 -0400)] 
 - add a note how to generate pg10 IDENTITY for now

Change-Id: I22dbf6ba322904a80c6df46f6a31daa2fcc1f946
(cherry picked from commit 2b2cdee7994d4af8dbd3dab28a5588c02e974fc8)

7 years agoFix array_agg to accommodate ARRAY arguments
Mike Bayer [Fri, 6 Oct 2017 15:14:29 +0000 (11:14 -0400)] 
Fix array_agg to accommodate ARRAY arguments

Fixed bug in :func:`.array_agg` function where passing an argument
that is already of type :class:`.ARRAY`, such as a Postgresql
:obj:`.postgresql.array` construct, would produce a ``ValueError``, due
to the function attempting to nest the arrays.

Change-Id: Ibe5f6275d90e4868e6ef8a733de05acd44c05d78
Fixes: #4107
(cherry picked from commit 4bb8397ae3a9d65bd18eb1d7c951bf5121ea280a)

7 years agoDon't include SelectBase when searching for surface column elements
Mike Bayer [Thu, 5 Oct 2017 15:25:10 +0000 (11:25 -0400)] 
Don't include SelectBase when searching for surface column elements

Fixed bug where correlated select used against single-table inheritance
entity would fail to render correctly in the outer query, due to adjustment
for single inheritance discriminator criteria inappropriately re-applying
the criteria to the outer query.

Change-Id: I38df21f1392af1843e10119682fa0635d346e2a8
Fixes: #4103
(cherry picked from commit 1281e6e6c41ad3d7240fe50f4fecab4083b79975)

7 years agoImprove check for overlapping FK targets on sibling classes
Mike Bayer [Tue, 3 Oct 2017 00:50:56 +0000 (20:50 -0400)] 
Improve check for overlapping FK targets on sibling classes

Fixed bug where ORM relationship would warn against conflicting sync
targets (e.g. two relationships would both write to the same column) for
sibling classes in an inheritance hierarchy, where the two relationships
would never actually conflict during writes.

Change-Id: I9367a7978cadc59066e89fc4917d7eb6c78dedee
Fixes: #4078
(cherry picked from commit 8ba8dd23b7cbf9aa423b6aa965abc4d7174b84de)

7 years agoSupport pg10
Mike Bayer [Mon, 2 Oct 2017 15:50:05 +0000 (11:50 -0400)] 
Support pg10

One test appears to use some awkward calling style
with the current_date function that isn't working in pg10
anymore, this looks like an extremely
old test that can be removed

Also cherry-picks f846a789b78f977b4d7e8e16b412b07e77f2ab13 from master
to repair 'postgres'-deprecation warning test for multiple
calls within a single process

Change-Id: I5f8aee0f5ed423461be5a9060c812eb0acdc7df5
(cherry picked from commit 67ee56be69687a828d3998b2f6e2caccb3fe9072)

7 years agoTake schema name into account when querying sqlite_master
Mike Bayer [Thu, 28 Sep 2017 20:47:28 +0000 (16:47 -0400)] 
Take schema name into account when querying sqlite_master

Fixed bug where SQLite CHECK constraint reflection would fail
if the referenced table were in a remote schema, e.g. on SQLite a
remote database referred to by ATTACH.

Also add suite support for general CHECK constraint reflection.

Change-Id: I073a72cb47dc4f8c5683000d708768523759332f
Fixes: #4099
(cherry picked from commit 68b52c48b775f9a99d0bc3666ebe02c54e401303)

7 years agoSupport mariadb 10.2
Mike Bayer [Sat, 19 Aug 2017 22:39:08 +0000 (18:39 -0400)] 
Support mariadb 10.2

Fixed issue where CURRENT_TIMESTAMP would not reflect correctly
in the MariaDB 10.2 series due to a syntax change, where the function
is now represented as ``current_timestamp()``.

Fixes: #4096
MariaDB 10.2 now supports CHECK constraints (warning: use version 10.2.9
or greater due to upstream issues noted in :ticket:`4097`).  Reflection
now takes these CHECK constraints into account when they are present in
the ``SHOW CREATE TABLE`` output.

Fixes: #4098
Change-Id: I8666d61814e8145ca12cbecad94019b44af868e3
(cherry picked from commit 29b752f8b24909c9c715e1b2c5e01119d1f46aa7)

7 years agoRepair incorrectly merged mariadb logic
Mike Bayer [Thu, 28 Sep 2017 23:31:13 +0000 (19:31 -0400)] 
Repair incorrectly merged mariadb logic

The changeset in c88d4d0 takes advantage of a
mariadb function that got randomly committed as part
of the SQL server fixup in 2efd89d02941ab4267d6e2842963, not
part of rel_1_1.    The change here was not reviewed or tested
in gerrit and breaks the main branch.

Change-Id: I41746f890e6e82acfb12e78f174d00d7ba7d19d4
Fixes: #4097
7 years agoRemove unused .cascading from unit test for __table_cls__ feature
Mike Bayer [Thu, 28 Sep 2017 17:05:56 +0000 (13:05 -0400)] 
Remove unused .cascading from unit test for __table_cls__ feature

Two independent gerrits for 04bbad660bcbb7b920f3e75110a7b1187d9ddc38
and ec1700ba29f7f15859ee6576855a4d6675265640 produce a failure
when merged due to new warning.
will merge into rel_1_1 as well for completeness even though
warning is not there.

Change-Id: I1bd494d205107d8b2a30d475a22c61a59b70985b
(cherry picked from commit 21ff71b0eb032d8ffd125ba7532ca2d29a206fb9)