]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
4 years agoImplement Oracle SERIALIZABLE + real read of isolation level
Mike Bayer [Wed, 9 Dec 2020 03:07:48 +0000 (22:07 -0500)] 
Implement Oracle SERIALIZABLE + real read of isolation level

There's some significant awkwardness in that we can't
read the level unless a transaction is started, which normally
does not occur unless DML is emitted.  The implementation
uses the local_transaction_id function to start a transaction.
It is not known what the performance impact of this might
have, however by default the function is called only once
on first connect and later only if the get_isolation_level()
method is used.

Fixes: #5755
Change-Id: I0453a6b0a49420826707f660931002ba2338fbf0
(cherry picked from commit 7528c2465b3e56ed094f155bff2a3ab8c89cc84f)

4 years agoFixed compile for mssql dialect
Gord Thompson [Tue, 8 Dec 2020 20:23:02 +0000 (15:23 -0500)] 
Fixed compile for mssql dialect

Fixed string compilation when both mssql_include and mssql_where are used

Fixes: #5751
Closes: #5752
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5752
Pull-request-sha: aa57ad5d93cd69bf7728d864569c31c7e59b54fb

Change-Id: I1201170affd9911c252df5c9b841e538bb577085
(cherry picked from commit 6f8b035c7808fea13bae50995206c9b2ded91f51)

4 years agoMerge "Reflect decimal points in MariaDB non-quoted numeric defaults" into rel_1_3
mike bayer [Thu, 3 Dec 2020 17:39:51 +0000 (17:39 +0000)] 
Merge "Reflect decimal points in MariaDB non-quoted numeric defaults" into rel_1_3

4 years agoReflect decimal points in MariaDB non-quoted numeric defaults
Mike Bayer [Thu, 3 Dec 2020 16:17:08 +0000 (11:17 -0500)] 
Reflect decimal points in MariaDB non-quoted numeric defaults

Fixed issue where reflecting a server default on MariaDB only that
contained a decimal point in the value would fail to be reflected
correctly, leading towards a reflected table that lacked any server
default.

Fixes: #5744
Change-Id: Ifc5960928685a906558ba84ed6f59eecb3b1c358
(cherry picked from commit 7fb41cfc69c6521bebce229a56bddd6267f39955)

4 years agoFix documentation link in query with_for_update
Federico Caselli [Wed, 2 Dec 2020 21:09:59 +0000 (22:09 +0100)] 
Fix documentation link in query with_for_update

Change-Id: I4e9a97905d42686c911da81a25f023519328a8a3
(cherry picked from commit 80050b8a19a324e84fbf6b3f81e82f377305b044)

4 years agomodernize contains_eager() docs
Mike Bayer [Wed, 2 Dec 2020 14:26:18 +0000 (09:26 -0500)] 
modernize contains_eager() docs

Along with other loader options that are likely
to require usage of populate_existing(), make sure
contains_eager() documentation makes it absolutely
clear that already-loaded collections are not overwritten.
consolidate contains_eager() documentation into the narrative docs.

Additionally, remove the "arbitrary statements" section, this is
not a useful case and seems to be left over.

Fixes: #5740
Change-Id: I10e320882990f511eefebcc88cfcc2277e553b50
(cherry picked from commit 0d76857ee1022f41baffff4091be765deea4e421)

4 years agoPass along other keyword args in _EventsHold.populate
Mike Bayer [Tue, 1 Dec 2020 21:03:35 +0000 (16:03 -0500)] 
Pass along other keyword args in _EventsHold.populate

Fixed bug involving the ``restore_load_context`` option of ORM events such
as :meth:`_orm.InstanceEvents.load` such that the flag would not be carried
along to subclasses which were mapped after the event handler were first
established.

Fixes: #5737
Change-Id: Ie65fbeac7ab223d24993cff0b34094d4928ff113
(cherry picked from commit 14c08d18885e16611b884bd76ba2811375de1731)

4 years agoMerge "Don't discard leftovers from surface_selectables" into rel_1_3
mike bayer [Fri, 27 Nov 2020 18:04:28 +0000 (18:04 +0000)] 
Merge "Don't discard leftovers from surface_selectables" into rel_1_3

4 years agoUse String for PostgreSQL xmin example
Mike Bayer [Thu, 26 Nov 2020 17:28:19 +0000 (12:28 -0500)] 
Use String for PostgreSQL xmin example

Fixes: #5728
Change-Id: I1efd6296018a80470b8c215b225898bbfea742a8
(cherry picked from commit 1cb05352a3dc40c1c6245a28af401ca7a4bddd1f)

4 years agoDon't discard leftovers from surface_selectables
Mike Bayer [Thu, 26 Nov 2020 17:10:25 +0000 (12:10 -0500)] 
Don't discard leftovers from surface_selectables

Fixed regression introduced in 1.3.2 for the PostgreSQL dialect, also
copied out to the MySQL dialect's feature in 1.3.18, where usage of a non
:class:`_schema.Table` construct such as :func:`_sql.text` as the argument
to :paramref:`_sql.Select.with_for_update.of` would fail to be accommodated
correctly within the PostgreSQL or MySQL compilers.

Fixes: #5729
Change-Id: I265bcc171f0eb865ac3910ee805b162f3b70e2c1
(cherry picked from commit 6125dfff91ca0093a00d78804917240617825c44)

4 years agoimprove column_reflect docs
Mike Bayer [Wed, 18 Nov 2020 14:25:34 +0000 (09:25 -0500)] 
improve column_reflect docs

Change-Id: I41d947e3cccb68c2d1ca811b5b2ae4b3f66409fb
References: #5711
(cherry picked from commit 4d3bc75738a8f76327a4f0cd344c217ff63e978d)

4 years agoCorrect versionadded for #5604
Mike Bayer [Mon, 16 Nov 2020 20:01:37 +0000 (15:01 -0500)] 
Correct versionadded for #5604

Change-Id: I840a08253ecba1c8200c2dfd7f2c0b7b3598af0f
(cherry picked from commit c86266e9757beb6d932e1e0c4e015cd29c0dde17)

4 years agoAdd opsclass to exclusion constraint
AlonM [Sun, 15 Nov 2020 13:13:25 +0000 (08:13 -0500)] 
Add opsclass to exclusion constraint

Added new parameter :paramref:`_postgresql.ExcludeConstraint.ops` to the
:class:`_postgresql.ExcludeConstraint` object, to support operator class
specification with this constraint.  Pull request courtesy Alon Menczer.

Fixes: #5604
Closes: #5700
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5700
Pull-request-sha: f8613e100792fc0bb3cf300ec6aebc78ecdf0361

Change-Id: Iaf664131ec84f8c2fb05edf799198b8d3bb83597
(cherry picked from commit 018aa9870110ef97316e9984c7ecd7f3357b501a)

4 years agoformatting
Mike Bayer [Fri, 13 Nov 2020 15:07:50 +0000 (10:07 -0500)] 
formatting

Change-Id: Icdbd393d1da79b8534a70e1e9e02f2a5a5915391
(cherry picked from commit e1891931b799defb86621a1cfbab26647afd362e)

4 years agoAdded missing keywords for MySQL dialect
Oscar Batori [Wed, 16 Sep 2020 17:41:34 +0000 (13:41 -0400)] 
Added missing keywords for MySQL dialect

Fixes: #5696
Add missing MySQL keywords.

### Description
Adds some missing keywords from the MySQL dialect. While it's hard to describe this as a documentation/typographical fix, there are no current test for presence of the correct keywords, nor a realistic way to implement them those tests.

### Checklist
This pull request is:

- [x] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

Closes: #5567
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5567
Pull-request-sha: db76e7f9d3a903cb4acf0309d57a14fe69948a0f

Change-Id: Ieaef45d0214fc9052a36924bfee38df9a27f7040
(cherry picked from commit 5ef39fa2c16e293e73d8c7cee019857e081b9b52)

4 years agoWarn / raise for returning() / return_defaults() combinations
Mike Bayer [Wed, 11 Nov 2020 16:13:27 +0000 (11:13 -0500)] 
Warn / raise for returning() / return_defaults() combinations

A warning is emmitted if a returning() method such as
:meth:`_sql.Insert.returning` is called multiple times, as this does not
yet support additive operation.  Version 1.4 will support additive
operation for this.  Additionally, any combination of the
:meth:`_sql.Insert.returning` and :meth:`_sql.Insert.return_defaults`
methods now raises an error as these methods are mutually exclusive;
previously the operation would fail silently.

Fixes: #5691
Change-Id: Id95e0f9da48bba0b59439cb26564f0daa684c8e3
(cherry picked from commit 44d64aef3ce26a1dd62b61ed15888d8baab06443)

4 years agoRemove misleading correlation examples
Mike Bayer [Wed, 11 Nov 2020 15:42:09 +0000 (10:42 -0500)] 
Remove misleading correlation examples

add links to tutorial docs

Fixes: #5694
Change-Id: I10a8e3f46a115945ded36d4ee59165c056c10f7a
(cherry picked from commit afb26d79d7b9256ee26b4d3b8550f7088f4b6249)

4 years agoSupport SQLite WITHOUT ROWID tables
Sean Anderson [Sun, 8 Nov 2020 00:52:04 +0000 (19:52 -0500)] 
Support SQLite WITHOUT ROWID tables

This adds support for creating tables WITHOUT ROWID in the SQLite
dialect. WITHOUT ROWID tables were introduced in SQLite version 3.8.2
(2013-12-06). They do not use an implicit rowid column as the primary
key. This may result in space and performance savings for tables without
INTEGER primary keys and tables with composite primary keys. For more
information about this feature, see the sqlite documentation [1].

[1] https://www.sqlite.org/withoutrowid.html

Fixes: #5685
### Checklist
This pull request is:

- [x] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

Closes: #5686
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5686
Pull-request-sha: 2b44782d1b3d858e31ce1ff8e08e197af37344d8

Change-Id: Ifcf727b0c07c90e267b79828a8e3fd7a8260a074
(cherry picked from commit 4b39b0f89dfd47dc9f5ba948e564c2afbbd44fef)

4 years agorevert the code change part of the previous commit
Mike Bayer [Sat, 7 Nov 2020 19:16:59 +0000 (14:16 -0500)] 
revert the code change part of the previous commit

Change-Id: I0af7b05fa00dbc706c66558873f4542d365acbc5
(cherry picked from commit 89e748d7ad4426077313aaec916b41f999ae5a34)

4 years agoimprove verbiage a bit for the public_factory
Mike Bayer [Sat, 7 Nov 2020 18:38:38 +0000 (13:38 -0500)] 
improve verbiage a bit for the public_factory

Change-Id: I52fb88f6d08333063e749857eb7d8edcebabd738
(cherry picked from commit 8e486fa565bb91e3a21176bb029253e5f5544da4)

4 years agoFix wheel generation
Federico Caselli [Mon, 2 Nov 2020 21:49:55 +0000 (22:49 +0100)] 
Fix wheel generation

Avoid passing LD_LIBRARY_PATH variable to the docker image used
to generate the wheels

Change-Id: I418a9574a7f49695984b1c68c997fc02f0450c12
(cherry picked from commit d30bb5154c34aa7e13ce11a0a561a2dbdf17a94d)

4 years agoupdate selectin docs
Mike Bayer [Sat, 31 Oct 2020 23:08:28 +0000 (19:08 -0400)] 
update selectin docs

* correct many-to-one example that doesnt use JOIN or ORDER BY
anymore

* Oracle does tuple IN, let's test it

* many-to-many is supported but joins all the way right now

* remove verbiage about yield_per for the moment to simplify
updates to how yield_per works w/ new style execution.  yield_per
is difficult to explain and the section seems kind of complicated
with those details added at the moment.

Change-Id: I010ed36f554f06310f336a5b12760c447b38ec01
(cherry picked from commit 72fa0ece049f08d5d24940272b80b1290fef6192)

4 years agoClarify bulk operations caveats
Mike Bayer [Fri, 30 Oct 2020 03:12:19 +0000 (23:12 -0400)] 
Clarify bulk operations caveats

Fixes: #5678
Change-Id: I186b26d1265c106bb87fb9e680229cad1eb8d7ea
(cherry picked from commit b9f7a92d821a31e48f7ce20ef848e73571c644fa)

4 years agoadded docstring about expire_on_commit for #5243
jonathan vanasco [Fri, 4 Sep 2020 23:48:38 +0000 (19:48 -0400)] 
added docstring about expire_on_commit for #5243

Fixes: #5243
Closes: #5328
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5328
Pull-request-sha: e760ed4ef1749aadfb8d63d776c764d98b93b1e5

Change-Id: I8e7bc3429dc279d447cc66400c76b4d2a04626aa
(cherry picked from commit 10851b002844fa4f9de7af92dbb15cb1133497eb)

4 years agoMerge "Correct reflection for composite primary keys" into rel_1_3
mike bayer [Mon, 26 Oct 2020 14:29:36 +0000 (14:29 +0000)] 
Merge "Correct reflection for composite primary keys" into rel_1_3

4 years agoimprove engine logging docs
Mike Bayer [Sat, 24 Oct 2020 16:59:22 +0000 (12:59 -0400)] 
improve engine logging docs

the text here was a little confusing and didn't refer to major
configurational elements such as hide_parameters.

Change-Id: I4e2179e5a64c326d30b65a8871b924725c41b453
(cherry picked from commit a1c51879aeb7811a23e454d2e90ad3bbae92b7a1)

4 years agoCorrect reflection for composite primary keys
fulpm [Tue, 20 Oct 2020 21:54:50 +0000 (17:54 -0400)] 
Correct reflection for composite primary keys

Fixes: #5661
### Description
Fixes reflection of composite primary keys to maintain the correct column order in the MSSQL
and SQLite dialects.

Closes: #5662
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5662
Pull-request-sha: b568dec7070b4f3ee46a528bdf16fb237baade2a

Change-Id: I452b23cbf7f389c4a0a34cffce5c32498efe37d2
(cherry picked from commit 7937a409f9e685341b6a5b8385491befe0aaa4d4)

4 years agoDon't load expired objects from evaluator
Mike Bayer [Wed, 21 Oct 2020 19:01:03 +0000 (15:01 -0400)] 
Don't load expired objects from evaluator

part 2 of e3dc20ff27fa75e571fb2631e64737ea8f25f7c5, the
pre-evaluate step was also emitting SELECT for expired objects.

Fixes: #5664
Change-Id: I9f5de2a5d480eafeb290ec0c45ce2a82ec93475b
(cherry picked from commit cd7d14f7ce8ef54e66d166b4904e8c21e967a5a2)

4 years agoDon't populate expired attrs w/ evaluator
Mike Bayer [Wed, 21 Oct 2020 17:58:22 +0000 (13:58 -0400)] 
Don't populate expired attrs w/ evaluator

Fixed bug in :meth:`_orm.Query.update` where objects in the
:class:`_orm.Session` that were already expired would be unnecessarily
SELECTed individually when they were refreshed by the "evaluate"
synchronize strategy.

For 1.4 there was also a similar issue with fetch that would actually
get the wrong data back, as the new value would be loaded, then
applied with the evaluator.

Fixes: #5664
Change-Id: I6e6aff88462654fcefa9fce2b45f5446c418deee
(cherry picked from commit e3dc20ff27fa75e571fb2631e64737ea8f25f7c5)

4 years agoImprove assoc proxy docs for 1.3 changes
Mike Bayer [Tue, 20 Oct 2020 14:20:39 +0000 (10:20 -0400)] 
Improve assoc proxy docs for 1.3 changes

Fixes: #5647
Change-Id: I98979577f5354eba993ade9fc5056db718f47a18
(cherry picked from commit 04d45f8adeafe5bb8981e7cfd94b11d36248d860)

4 years agoEnsure no compiler visit method tries to access .statement
Mike Bayer [Mon, 19 Oct 2020 14:19:29 +0000 (10:19 -0400)] 
Ensure no compiler visit method tries to access .statement

Fixed structural compiler issue where some constructs such as MySQL /
PostgreSQL "on conflict / on duplicate key" would rely upon the state of
the :class:`_sql.Compiler` object being fixed against their statement as
the top level statement, which would fail in cases where those statements
are branched from a different context, such as a DDL construct linked to a
SQL statement.

Fixes: #5656
Change-Id: I568bf40adc7edcf72ea6c7fd6eb9d07790de189e
(cherry picked from commit dfcd117afca36ea3f5f574f9bef6036dae609de8)

4 years agoindicate legacy ping recipe for handle_error cases
Mike Bayer [Thu, 15 Oct 2020 17:21:34 +0000 (13:21 -0400)] 
indicate legacy ping recipe for handle_error cases

in prep for a new feature as part of #5648.

Change-Id: I6720b0ea797c188de5e8163f79fb7b7994d6e76e
(cherry picked from commit 41d3e16773e84692b6625ccb67da204b5362d9c3)

4 years agoAdd discussed changes
Evan Taylor Yates [Tue, 13 Oct 2020 19:21:30 +0000 (12:21 -0700)] 
Add discussed changes

link: https://github.com/sqlalchemy/sqlalchemy/pull/5636
(cherry picked from commit 7740ce6900ad3e65364660a270cc72458421433a)

Change-Id: Id6edf10e2fa3ec293c3833c6a80dbdabaaa2580e

4 years agoMerge "Add SQL Server 01000 disconnect" into rel_1_3
mike bayer [Wed, 14 Oct 2020 20:34:52 +0000 (20:34 +0000)] 
Merge "Add SQL Server 01000 disconnect" into rel_1_3

4 years agoblock python keywords from random list of names
Mike Bayer [Wed, 14 Oct 2020 17:50:44 +0000 (13:50 -0400)] 
block python keywords from random list of names

Change-Id: I0259bed2ee06e741889e8b9bed6bf6ad106fa425
(cherry picked from commit b03d5358ec83ad7484ccd452e63ab34e874b53b3)

4 years agoAdd SQL Server 01000 disconnect
Mike Bayer [Wed, 14 Oct 2020 16:05:40 +0000 (12:05 -0400)] 
Add SQL Server 01000 disconnect

Fixes: #5646
Change-Id: I25fcba7cf866871f1232b586e7e604162bd8cc43
(cherry picked from commit 01633d94a526eb304729ed95dfbf6780c30dd258)

4 years agoVersion 1.3.21 placeholder
Mike Bayer [Mon, 12 Oct 2020 22:33:32 +0000 (18:33 -0400)] 
Version 1.3.21 placeholder

4 years ago- 1.3.20 rel_1_3_20
Mike Bayer [Mon, 12 Oct 2020 22:30:08 +0000 (18:30 -0400)] 
- 1.3.20

4 years agotypo
Mike Bayer [Mon, 12 Oct 2020 22:29:20 +0000 (18:29 -0400)] 
typo

Change-Id: I0a753a2b48ed932c3209b93df0a96efe90af17c5
(cherry picked from commit 501c5dff8ea12aaac44f1dee6bca2db6a468d89c)

4 years agochangelog edits for 1.3.20
Mike Bayer [Mon, 12 Oct 2020 22:22:01 +0000 (18:22 -0400)] 
changelog edits for 1.3.20

Change-Id: Ic053a30e9f0e6c99b638a0629e1192336bff3f76
(cherry picked from commit 6bf0e4ce35c0929e7e8dcb7c25fabe7f7c599f38)

4 years agoSupport indexing on expressions and functions for the MySQL dialect
RamonWill [Wed, 16 Sep 2020 21:47:21 +0000 (17:47 -0400)] 
Support indexing on expressions and functions for the MySQL dialect

A user noticed that creating an index where the "key part" was an expression
or function would raise an error for MySQL because the key part was not
parenthesized. The proposed change will check whether a key part is not a
Column or Unary Expression  and parenthesize if the case is False.

This fix also contains a minor fix to a test case that was previously incorrect
(`def test_create_index_expr():`).

**Have a nice day!**
Fixes: #5462
Closes: #5587
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5587
Pull-request-sha: 7515e50cd7435744fc79c210b2f3aa4c0546ba28

Change-Id: Id1b3b3026983c0e05808baa243e354f82b78180c
(cherry picked from commit 9dedf37446108196b585ffdcef8dd48c378d1401)

4 years agoRepair reduction in Over
Mike Bayer [Mon, 12 Oct 2020 16:47:38 +0000 (12:47 -0400)] 
Repair reduction in Over

Fixed issue where a plain pickle dumps call of the :class:`_sql.Over`
construct didn't work.

Fixes: #5644
Change-Id: I4b07f74ecd5d52f0794128585367012200a38a36
(cherry picked from commit 9322de12f5c5eca397b13cb7db2b6196f58aceb3)

4 years agoAdd python 3.9 to ci test and wheel workflow
Federico Caselli [Thu, 8 Oct 2020 18:34:02 +0000 (20:34 +0200)] 
Add python 3.9 to ci test and wheel workflow

Change-Id: I3b80b836ca547fa92f324acb265180cdeea17611
(cherry picked from commit 21e327690558639b0eead6c1abf0019039a02d3b)

4 years agopin pytest lower bound at 4.6.11
Mike Bayer [Thu, 8 Oct 2020 16:52:39 +0000 (12:52 -0400)] 
pin pytest lower bound at 4.6.11

we need 4.6 to support Python 2.  however 4.6.0 is too low,
4.6.11 seems to work in both python 2 and 3, pin on that

Change-Id: I0a5995ca5e5bf08a06997130e4ffbaaceef8d942
(cherry picked from commit bcc17b1d6e2cac3b0e45c0b17a62cf2d5fc5c5ab)

4 years agoAdd changelog for pytest 6.x fix.
Mike Bayer [Thu, 8 Oct 2020 15:56:04 +0000 (11:56 -0400)] 
Add changelog for pytest 6.x fix.

pytest 6.x support was fixed in 40cdb9c for 1.3 and in ffafbd4
for master.   Add a note as this is an observable issue
in 1.3.19.

Fixes: #5635
Change-Id: Iee67822d6962800646546c69ee0ad0c494007c86
(cherry picked from commit 92af8dae09618198685b82f10072c8d43ad6a877)

4 years agoUse preloaded for sql.util import in exc
Mike Bayer [Wed, 7 Oct 2020 01:46:03 +0000 (21:46 -0400)] 
Use preloaded for sql.util import in exc

Repaired a function-level import that was not using SQLAlchemy's standard
late-import system within the sqlalchemy.exc module.

Moves 1.3 dependencies() to sqlalchemy.util.preloaded so that it
does not depend on langhelpers which depends on exc.

Fixes: #5632
Change-Id: I61b7ce9cd461071ce543714739f67aa5aeb47fd6
(cherry picked with major changes from commit 2f28ba5513fc7da4efb315e1a03d50ebe40ca566)

4 years agoMerge "raise on lower-case column shared to multiple tables" into rel_1_3
mike bayer [Wed, 30 Sep 2020 13:57:06 +0000 (13:57 +0000)] 
Merge "raise on lower-case column shared to multiple tables" into rel_1_3

4 years agoraise on lower-case column shared to multiple tables
Mike Bayer [Wed, 30 Sep 2020 12:37:57 +0000 (08:37 -0400)] 
raise on lower-case column shared to multiple tables

Fixed bug where an error was not raised for lower-case
:func:`_column` added to lower-case :func:`_table` object. This now raises
:class:`_exc.ArgumentError` which has always been the case for
upper-case :class:`_schema.Column` and :class:`_schema.Table`.

Fixes: #5618
Change-Id: Ifcbdf27c022fd2996a5b99559df71fc1c1e0f19c
(cherry picked from commit ba0febcf54f194fc93d40a6bf72502ee50ba9993)

4 years agofix too-short underline
Mike Bayer [Wed, 30 Sep 2020 13:01:32 +0000 (09:01 -0400)] 
fix too-short underline

Change-Id: Id9ac0b45f0859199e7db61ef5d4fac956b74b2ba
(cherry picked from commit 467d1e1576905833d9ca0aacf1839d8a638ceb1b)

4 years agoMerge "Support for multiple hosts in PostgreSQL connection string" into rel_1_3
mike bayer [Wed, 30 Sep 2020 12:07:48 +0000 (12:07 +0000)] 
Merge "Support for multiple hosts in PostgreSQL connection string" into rel_1_3

4 years agoScan for tables without relying upon whereclause
Mike Bayer [Tue, 29 Sep 2020 18:17:42 +0000 (14:17 -0400)] 
Scan for tables without relying upon whereclause

Fixed bug where an UPDATE statement against a JOIN using MySQL multi-table
format would fail to include the table prefix for the target table if the
statement had no WHERE clause, as only the WHERE clause were scanned to
detect a "multi table update" at that particular point.  The target
is now also scanned if it's a JOIN to get the leftmost table as the
primary table and the additional entries as additional FROM entries.

Fixes: #5617
Change-Id: I26d74afebe06e28af28acf960258f170a1627823
(cherry picked from commit 7d8c93d3d0eaf39ec7beb1dcb32ee0e11d3f77fa)

4 years agobump variance on test_string, test_unicode
Mike Bayer [Tue, 29 Sep 2020 19:44:33 +0000 (15:44 -0400)] 
bump variance on test_string, test_unicode

a recent rerun of profiles added more profiling data that's
failing over small differences.   15% variance is fine for these
tests that are looking for thousands of encode calls.

Change-Id: I33dac346b2ff07f86b4bc278a7309ca9b7efbaab
(cherry picked from commit 147f0969301184b952366f39195caaabe6d63dbf)

4 years agoupgrade to black 20.8b1
Mike Bayer [Mon, 28 Sep 2020 18:24:11 +0000 (14:24 -0400)] 
upgrade to black 20.8b1

It's better, the majority of these changes look more readable to me.
also found some docstrings that had formatting / quoting issues.

Cross-implemented with master

Change-Id: I582a45fde3a5648b2f36bab96bad56881321899b

4 years agoset pytest rootdir
Mike Bayer [Mon, 28 Sep 2020 02:19:27 +0000 (22:19 -0400)] 
set pytest rootdir

With pytest 6.1.0 the root directory calculation logic has
changed and is unreliable on our jenkins setup.   make
sure this is set explicitly.

Change-Id: I1d48b887030c32d2f3361fc36e65e8a988d2ba81
References: https://github.com/pytest-dev/pytest/issues/7807
(cherry picked from commit 7193f94294718159eeabc296812519b30dad67b5)

4 years agoSupport pytest 6.x
Mike Bayer [Sun, 27 Sep 2020 01:01:01 +0000 (21:01 -0400)] 
Support pytest 6.x

pytest has removed support for pytest.Class().collect()
and we need to use from_parent.

Change-Id: Ia5fed9b22e76c99f71489283acee207f996f52a4
(cherry picked from commit ffafbd4b9657a4ee8bec57c0861414144f37bdc5)

4 years agoAdd pypi shields
Mike Bayer [Wed, 23 Sep 2020 18:47:43 +0000 (14:47 -0400)] 
Add pypi shields

These are all available from the same shields.io source,
courtesy @dolfinus

Fixes: #5594
Change-Id: I985c415f50627d328384a8fddf9a1457663ee00d
(cherry picked from commit 826303baaad6c66389d1b2857688e64ab3360846)

4 years agoSupport for multiple hosts in PostgreSQL connection string
RamonWill [Wed, 2 Sep 2020 22:43:53 +0000 (18:43 -0400)] 
Support for multiple hosts in PostgreSQL connection string

Provide support for multiple hosts in the PostgreSQL connection string.

A user requested for SQLAlchemy to support multiple hosts within a PostgreSQL URL string. The proposed fix allows this. In the event that the url contains multiple hosts the proposed code will convert the query["hosts"] tuple into a single string. This allows the hosts to then get converted into a valid dsn variable in the psycopg2 connect function.

This pull request is:

- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [X ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**
Fixes: #4392
Closes: #5554
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5554
Pull-request-sha: 3f7a0ab8df9f1411a9f1ac0e152583bc7bf0c365

Change-Id: I3f3768d51b8331de786ffdc025b7ecfc662eafe5
(cherry picked from commit a3640ae933a80f7c98faf6223cd9376c5deb588a)

4 years agoStringify correctly for non-str exception argument
Andrzej BartosiÅ„ski [Sat, 19 Sep 2020 16:47:46 +0000 (12:47 -0400)] 
Stringify correctly for non-str exception argument

Fixed issue where a non-string object sent to
:class:`_exc.SQLAlchemyError` or a subclass, as occurs with some third
party dialects, would fail to stringify correctly. Pull request
courtesy Andrzej BartosiÅ„ski.

Fixes: #5599
Closes: #5600
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5600
Pull-request-sha: cdccccc42a6ac8de771593a43ee8675bfd8dbeb6

Change-Id: Icd710d9015abc80f61a84893d75fbb33ee0fe46e
(cherry picked from commit c4f28fb414c342ba362fdee8a68bd169f01aa7d2)

4 years agoAdd support for Azure authentication options
Gord Thompson [Thu, 17 Sep 2020 16:32:31 +0000 (10:32 -0600)] 
Add support for Azure authentication options

Fixes: #5592
Change-Id: I0688e5ea0fc6b01a0b72f397daea8f57a2ec0766
(cherry picked from commit dcd2be16b9c9a6a52b6bb7e144e31998b7cee631)

4 years agoFix ORM gc-related test that seems to be failing on CI
Mike Bayer [Wed, 16 Sep 2020 13:50:25 +0000 (09:50 -0400)] 
Fix ORM gc-related test that seems to be failing on CI

The test relied on the primary key value not being
of a certain number.

Change-Id: I9bd76bee542da44b630a426f1102fc682ad2d7b3
(cherry picked from commit de8e53a831fdd834eb9cca697b5793a7c38b22a7)

4 years agoAdd warning for skip_locked with MariaDB backend.
Gord Thompson [Sun, 13 Sep 2020 22:38:13 +0000 (16:38 -0600)] 
Add warning for skip_locked with MariaDB backend.

The "skip_locked" keyword used with ``with_for_update()`` will emit a
warning when used on MariaDB backends, and will then be ignored.   This is
a deprecated behavior that will raise in SQLAlchemy 1.4, as an application
that requests "skip locked" is looking for a non-blocking operation which
is not available on those backends.

Fixes: #5578
Change-Id: I49ccb6c6ff46eafed12b77f51e1da8e0e397966c
(cherry picked with major changes from commit b25d0cda90fe906fda2fe8401a810c4da0bf7268)

4 years agoPass all pool parameters in recreate()
Mike Bayer [Mon, 14 Sep 2020 14:14:48 +0000 (10:14 -0400)] 
Pass all pool parameters in recreate()

The following pool parameters were not being propagated to the new pool
created when :meth:`_engine.Engine.dispose` were called: ``pre_ping``,
``use_lifo``.  Additionally the ``recycle`` and ``reset_on_return``
parameters were not propagated for the :class:`_engine.AssertionPool`
class.  These issues have been fixed.

Fixes: #5582
Change-Id: Ifdb703aa7e849652242b9ff8071c854cd1d77e71
(cherry picked from commit 3d803a8ed3e07332dff872180680bed6175dd483)

4 years agoAdd 3rd party integration issues FAQ; add numpy
Mike Bayer [Thu, 10 Sep 2020 19:48:14 +0000 (15:48 -0400)] 
Add 3rd party integration issues FAQ; add numpy

Users of numpy and pandas should refer to this section
where we will try to catalog the common issues that don't
really have an automatic solution.

Fixes: #5552
Change-Id: I02990e328616ccb21933ffda1167c52256bace07
(cherry picked from commit 96bb6dc56d1da2b4fa30afd08ac4dfa665752913)

4 years agoMerge "Include PostgreSQL in trigger test and correct documentation example" into...
mike bayer [Thu, 10 Sep 2020 16:38:31 +0000 (16:38 +0000)] 
Merge "Include PostgreSQL in trigger test and correct documentation example" into rel_1_3

4 years agoAdd more docs for populate_existing(); link with_for_update
Mike Bayer [Thu, 10 Sep 2020 15:56:34 +0000 (11:56 -0400)] 
Add more docs for populate_existing(); link with_for_update

The populate_existing() method is actually changing
to be an execution option, however it has almost no
mention in the narrative docs so add docs in terms of the
1.x version first, including that we mention you almost
definitely want to use this method if you are also using
with_for_update().

Fixes: #5572
Fixes: #4774
Change-Id: Ieca916400622c1ffc1ae81204132a02a0983594c
(cherry picked from commit e78c8f84958a031056684d7056aff0eab6ced226)

4 years agoFix typo in :paramref:`_engine.create_engine.isolation_level` names
Federico Caselli [Tue, 8 Sep 2020 21:09:21 +0000 (23:09 +0200)] 
Fix typo in :paramref:`_engine.create_engine.isolation_level` names

Fixes: #5563
Change-Id: I29204fdf679d750c66ed17daf70bc8d7cb1b7f65
(cherry picked from commit 17f7faf3df8dc3d30e632c60a5d69d342876ad3d)

4 years agoPostgreSQL dialect-level isolation_level parameter is legacy
Mike Bayer [Tue, 8 Sep 2020 15:01:28 +0000 (11:01 -0400)] 
PostgreSQL dialect-level isolation_level parameter is legacy

The isolation level section in the docs inadvertently
copied the PostgreSQL example using the PGDialect.isolation_level
parameter and not the execution_options.  ensure only
the execution_options version is documented.

Change-Id: I94e02ede62d3dded40e3fcbce8d04608dc063108
(cherry picked from commit 6dc8d1dc6955db8107b683f2c2f3e4b62aad574b)

4 years agoMerge "Add new MySQL reserved words: `cube`, `lateral`." into rel_1_3
mike bayer [Thu, 3 Sep 2020 16:17:40 +0000 (16:17 +0000)] 
Merge "Add new MySQL reserved words: `cube`, `lateral`." into rel_1_3

4 years agoAdd caveat re: with_expression and already-loaded object
Mike Bayer [Wed, 2 Sep 2020 18:47:03 +0000 (14:47 -0400)] 
Add caveat re: with_expression and already-loaded object

Adds a test for the populate_existing() behavior as well.

Fixes: #5553
Change-Id: Ib0db6227c3fec7d0065f2a7caa36b3fd94ef14fd
(cherry picked from commit b050169600019ef249a8b315e7435c752623c900)

4 years agoAdd new MySQL reserved words: `cube`, `lateral`.
StefanosChaliasos [Thu, 27 Aug 2020 17:53:35 +0000 (13:53 -0400)] 
Add new MySQL reserved words: `cube`, `lateral`.

Closes: #5539
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5539
Pull-request-sha: 8c228be322023041b11691d93dafa1be090f01a0

Change-Id: Ic756472a19563e793cf7e33b24eb1ad5e913dbc0

4 years agoMerge "Provide more detailed error message for Query.join()" into rel_1_3
mike bayer [Tue, 1 Sep 2020 13:50:24 +0000 (13:50 +0000)] 
Merge "Provide more detailed error message for Query.join()" into rel_1_3

4 years agoProvide more detailed error message for Query.join()
RamonWill [Thu, 6 Aug 2020 20:08:13 +0000 (16:08 -0400)] 
Provide more detailed error message for Query.join()

An :class:`.ArgumentError` with more detail is now raised if the target
parameter for :meth:`_query.Query.join` is set to an unmapped object.
Prior to this change a less detailed ``AttributeError`` was raised.
Pull request courtesy Ramon Williams.

Fixes: #4428
Closes: #5452
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5452
Pull-request-sha: b148df547037e9a254fe331eff8e922c78426261

Change-Id: I873453d1fdb651178216aac698baac63ae5a94e8

4 years agoInclude PostgreSQL in trigger test and correct documentation example
RamonWill [Sun, 30 Aug 2020 13:05:06 +0000 (09:05 -0400)] 
Include PostgreSQL in trigger test and correct documentation example

Include PostgreSQL dialect in trigger test and correct DDL example in documentation

A user highlighted that the syntax in the DDL trigger example was incorrect for PostgreSQL. The trigger tests where also skipping the PostgreSQL dialect until the syntax was corrected. This PR fixes both of these issues.

This pull request is:

- [X ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**
Fixes: #4037
Closes: #5548
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5548
Pull-request-sha: 1db5e47adb90f9d51e247711dcfdbb274fb7bf73

Change-Id: I06edbcab99c82a3ce25581b81f8d2a4a028c07c3
(cherry picked from commit 2e887c7a4105a973a015b9ecbb4ea5a11dafb26a)

4 years agoMerge "internal test framework files for standardization of is_not/not_in;" into...
mike bayer [Sun, 30 Aug 2020 14:33:16 +0000 (14:33 +0000)] 
Merge "internal test framework files for standardization of is_not/not_in;" into rel_1_3

4 years agoUpdate connection docs for migrating off of nesting
Mike Bayer [Sat, 29 Aug 2020 22:24:18 +0000 (18:24 -0400)] 
Update connection docs for migrating off of nesting

Change-Id: I3a81140f00a4a9945121bfb8ec4c0e3953b4085f

4 years agointernal test framework files for standardization of is_not/not_in;
jonathan vanasco [Mon, 24 Aug 2020 22:53:31 +0000 (18:53 -0400)] 
internal test framework files for standardization of is_not/not_in;

this is safe for 1.3.x

Change-Id: Icba38fdc20f5d8ac407383a4278ccb346e09af38
(cherry picked from commit 672087176eaf3d0e867c6b5c67bfea3c713be42e)

4 years agoMerge "ARM64 Support to Github Actions For Testing And Development Of Wheels" into...
Federico Caselli [Fri, 28 Aug 2020 20:25:22 +0000 (20:25 +0000)] 
Merge "ARM64 Support to Github Actions For Testing And Development Of Wheels" into rel_1_3

4 years agoRaise NotImplemenedError for association proxy __clause_element__
Mike Bayer [Thu, 27 Aug 2020 19:50:47 +0000 (15:50 -0400)] 
Raise NotImplemenedError for association proxy __clause_element__

It's not possible right now to use an association proxy element as a plain
column expression to be SELECTed from or used in a SQL function.  An
informative error is now raised when this occurs.

Fixes: #5542
Change-Id: I334e767ebc0b56c1dccc4a1e5185b0435af77b93
(cherry picked from commit d78686b4f109fdc78ca6239e5a5af791717bc48d)

4 years agoDocument caveat about backrefs and attribute_mapped_collection
Mike Bayer [Wed, 26 Aug 2020 15:44:34 +0000 (11:44 -0400)] 
Document caveat about backrefs and attribute_mapped_collection

Fixes: #5538
Change-Id: I2bda6bed40d35560a71bf0ed09d141047ce59e82
(cherry picked from commit fe772672b4fc00df0b66aca92e2092779a844a2d)

4 years agoMerge "More descriptive error for non-mapped string prop name" into rel_1_3
mike bayer [Wed, 26 Aug 2020 02:43:41 +0000 (02:43 +0000)] 
Merge "More descriptive error for non-mapped string prop name" into rel_1_3

4 years agoMore descriptive error for non-mapped string prop name
jonathan vanasco [Mon, 20 Apr 2020 17:56:49 +0000 (13:56 -0400)] 
More descriptive error for non-mapped string prop name

Fixed issue where using a loader option against a string attribute name
that is not actually a mapped attribute, such as a plain Python descriptor,
would raise an uninformative AttributeError;  a descriptive error is now
raised.

Fixes: #4589
Closes: #4594
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4594
Pull-request-sha: 2b7ed5240f49be90f9390e3d041c9cb957083465

Change-Id: I66b9937991eb7cdbe074a92f490af1c80d16449e
(cherry picked from commit 7700005a1f3504e26633a55db5cddeac114cb78f)

4 years agoARM64 Support to Github Actions For Testing And Development Of Wheels
odidev [Sun, 23 Aug 2020 18:54:56 +0000 (14:54 -0400)] 
ARM64 Support to Github Actions For Testing And Development Of Wheels

**Added**:
1. ARM64 jobs in Github Workflows For Testing And Development Of Wheels
2. Two script files for creating wheels and testing.

Resolves #5436

Signed-off-by: odidev <odidev@puresoftware.com>
Co-authored-by: Federico Caselli <cfederico87@gmail.com>
Closes: #5480
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5480
Pull-request-sha: 131ef520bbf863ad9b65ca3bf3c2d2d214405702

Change-Id: Ia10dadd93365ba4beeefbd27c060bc077c2d7aeb
(cherry picked from commit 7f9caaa7ea893a1803f7bdf7b4355740cf940a3d)

4 years agoFix typo in docs examples of psycopg2.connect
Federico Caselli [Mon, 24 Aug 2020 21:05:10 +0000 (23:05 +0200)] 
Fix typo in docs examples of psycopg2.connect

Fixes: #5535
Change-Id: I7341137ec63c5a7978f9fe15ad1a932e068321c2
(cherry picked from commit eb8cf282103b0b3d57e620152a451b059745f8df)

4 years agoImplement DDL visitor for PG ENUM with schema translate support
Mike Bayer [Wed, 19 Aug 2020 02:53:09 +0000 (22:53 -0400)] 
Implement DDL visitor for PG ENUM with schema translate support

Fixed issue where the :class:`_postgresql.ENUM` type would not consult the
schema translate map when emitting a CREATE TYPE or DROP TYPE during the
test to see if the type exists or not.  Additionally, repaired an issue
where if the same enum were encountered multiple times in a single DDL
sequence, the "check" query would run repeatedly rather than relying upon a
cached value.

Fixes: #5520
Change-Id: I79f46e29ac0168e873ff178c242f8d78f6679aeb
(cherry picked from commit c290a40a543f8355ee712e2e565698b6ebdb162f)

4 years agoDeliver straight BinaryExpr w/ no negate for any() / all()
Mike Bayer [Tue, 18 Aug 2020 18:17:06 +0000 (14:17 -0400)] 
Deliver straight BinaryExpr w/ no negate for any() / all()

Adjusted the :meth:`_types.ARRAY.Comparator.any` and
:meth:`_types.ARRAY.Comparator.all` methods to implement a straight "NOT"
operation for negation, rather than negating the comparison operator.

Fixes: #5518
Change-Id: I87ee9278c321aafe51a679fcfcbb5fbb11307fda
(cherry picked from commit 8bc793c4dbc876722dfaad0ca731938c70b54b6c)

4 years agoClarify that session.close() is like reset
Mike Bayer [Tue, 18 Aug 2020 14:52:04 +0000 (10:52 -0400)] 
Clarify that session.close() is like reset

This is a manual edit, not really a cherry-pick, but the
below ref is where this is from.

Fixes: #5517
Change-Id: I86809cf84de3ec19a279ae13f4e5e71336d8b359
(cherry picked from commit 7277c12e4d1bdc9647b9b306d89b5847d1c5a4d7)

4 years agoFix wheel check in linux workflow and improve it
Federico Caselli [Mon, 17 Aug 2020 21:29:50 +0000 (23:29 +0200)] 
Fix wheel check in linux workflow and improve it

Change-Id: I3b208674649e41bca0285d00aa11cc5975eb971a
(cherry picked from commit e7875b39f8e28e0c27d96926f7cab3f7839c0250)

4 years agoVersion 1.3.20 placeholder
Mike Bayer [Mon, 17 Aug 2020 20:12:11 +0000 (16:12 -0400)] 
Version 1.3.20 placeholder

4 years ago- 1.3.19 rel_1_3_19
Mike Bayer [Mon, 17 Aug 2020 19:59:44 +0000 (15:59 -0400)] 
- 1.3.19

4 years agoMake discriminator column used by ConcreteBase configurable
Jesse Bakker [Mon, 17 Aug 2020 14:35:35 +0000 (10:35 -0400)] 
Make discriminator column used by ConcreteBase configurable

The name of the virtual column used when using the
:class:`_declarative.AbstractConcreteBase` and
:class:`_declarative.ConcreteBase` classes can now be customized, to allow
for models that have a column that is actually named ``type``.  Pull
request courtesy Jesse-Bakker.

Fixes: #5513
Closes: #5514
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5514
Pull-request-sha: 5e7429f3531e2e22fffe996c9760905578d16ef9

Change-Id: I733737844d4f4e1f52dd2475a66c7044ff7292f5
(cherry picked from commit db2b2e21d6458d29a156a8532a52425333e0317a)

4 years agoerror message for Lookup
RamonWill [Wed, 12 Aug 2020 18:50:20 +0000 (14:50 -0400)] 
error message for Lookup

Th proposed change will provide the user with the target Enum Class name as well as up to four possible enum values when a LookupError is raised in the Enum Class.

A user requested that the enum name and possible values are included to the LookupError message to make debugging easier. The criteria included using ellipses for Enums containing more than four values and using ellipses for enum values that were greater than a certain number of characters (for this resolution the limit is 11 characters).

This pull request is:

- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [X ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**
Fixes: #4733
Closes: #5490
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5490
Pull-request-sha: 55e76f2ae796b59b7de157cfaae5235dffa359cb

Change-Id: I4541f9efed1c05401587a413e9e748d46938bcd1
(cherry picked from commit a8bd2116764fb6039742a34409254175846bb700)

4 years agoupdate for pytest-xdist terminology
Mike Bayer [Fri, 14 Aug 2020 16:22:17 +0000 (12:22 -0400)] 
update for pytest-xdist terminology

With version 2.0.0 they removed the old terminology, which
I had no idea had been changed in any case for several years.

pushing this out for all branches

Change-Id: I51e4f577aeb9ef8205348b50489549f77072a613
(cherry picked from commit f91d335e31e5e14794e349b74edc08aad0f361e3)

4 years agoFurther fixes for ticket 5470
Mike Bayer [Thu, 13 Aug 2020 14:43:53 +0000 (10:43 -0400)] 
Further fixes for ticket 5470

The fix for #5470 didn't actually take into account that
the "distinct" logic in query was also doubling up the criteria.
Added many more tests.   the 1.3 version here will be different
than 1.4 as the regression is not quite the same.

Fixes: #5470
Change-Id: I16a23917cab175761de9c867d9d9ac55031d9b97
(cherry picked from commit 7ac2d5c93b6334528aff93939559eee133f3e9fc)

4 years agoMerge "Fix mysql CREATE TABLE / COLLATE issue" into rel_1_3
mike bayer [Wed, 12 Aug 2020 15:04:31 +0000 (15:04 +0000)] 
Merge "Fix mysql CREATE TABLE / COLLATE issue" into rel_1_3

4 years agoupdate deterministic sort ordering doc
Mike Bayer [Tue, 11 Aug 2020 16:27:10 +0000 (12:27 -0400)] 
update deterministic sort ordering doc

reword the sorting in terms of the actual behavior,
put correct changed version

References: #5494
Change-Id: I725338526afe28454910d029c153e4476f8c686f
(cherry picked from commit 5b44be7a13ccefc46b8a69fd95677051de5f3bf7)

4 years agoFix mysql CREATE TABLE / COLLATE issue
Gord Thompson [Thu, 6 Aug 2020 23:19:52 +0000 (17:19 -0600)] 
Fix mysql CREATE TABLE / COLLATE issue

Fixes: #5411
Change-Id: Ib0c53f5ed3f9d3ff0586580c9a9cce73b4b870f4
(cherry picked from commit 32e0b128f6c077017673f7049e2b667bf96f53e3)

4 years agoFix typos
Karthikeyan Singaravelan [Sun, 9 Aug 2020 10:02:57 +0000 (10:02 +0000)] 
Fix typos

(cherry picked from commit 71f14f6de8ee1865fd68d7989f751eed95dde719)

Change-Id: Ie5e32ee12696aa0234dc6282b83220100c2288a0

4 years agoMerge "Add complete platform data to profiling data" into rel_1_3
mike bayer [Fri, 7 Aug 2020 17:27:29 +0000 (17:27 +0000)] 
Merge "Add complete platform data to profiling data" into rel_1_3

4 years agoMerge "Pass schema_translate_map from DDLCompiler to SQLCompiler" into rel_1_3
mike bayer [Fri, 7 Aug 2020 17:22:35 +0000 (17:22 +0000)] 
Merge "Pass schema_translate_map from DDLCompiler to SQLCompiler" into rel_1_3

4 years agoPass schema_translate_map from DDLCompiler to SQLCompiler
Mike Bayer [Fri, 7 Aug 2020 15:24:29 +0000 (11:24 -0400)] 
Pass schema_translate_map from DDLCompiler to SQLCompiler

Fixed issue where the
:paramref:`_engine.Connection.execution_options.schema_translate_map`
feature would not take effect when the :meth:`_schema.Sequence.next_value`
function function for a :class:`_schema.Sequence` were used in the
:paramref:`_schema.Column.server_default` parameter and the create table
DDL were emitted.

Fixes: #5500
Change-Id: I74a9fa13d22749d06c8202669f9ea220d9d984d9
(cherry picked from commit ed50a003e296ac6bfb998f2b401091d87874cb4c)