Commit Graph

10980 Commits

Author SHA1 Message Date
Mike Bayer 6a8955f32b - fix typos
Change-Id: Ibf8bc0e997ff989c7b0c16afad48a95414078052
(cherry picked from commit d8a80a35a0)
2017-08-22 18:16:08 -04:00
Mike Bayer b6412f6029 - modernize the mysql connection timeout docs
Change-Id: Icb0474509539c1eb7536544749f2a48b4972078a
(cherry picked from commit 4ce46fb0a085c1cc739e21881cc25567e663f8dc)
2017-08-22 16:50:33 -04:00
Mike Bayer 53175850bf First level repair for cx_Oracle 6.0 test regressions
Fixed more regressions caused by cx_Oracle 6.0; at the moment, the only
behavioral change for users is disconnect detection now detects for
cx_Oracle.DatabaseError in addition to cx_Oracle.InterfaceError, as
this behavior seems to have changed.   Other issues regarding numeric
precision and uncloseable connections are pending with the upstream
cx_Oracle issue tracker.

Change-Id: Id61f1e33b21c155a598396340dfdecd28ff4066b
Fixes: #4045
(cherry picked from commit 03255a5a0f)
2017-08-22 14:44:39 -04:00
Mike Bayer d6018ef3a2 - ensure identifier re-use doesn't make this break
Change-Id: I9fe6c42c097d31b50a479250d39a3cd8ebcbffaf
(cherry picked from commit 41549de960)
2017-08-22 13:56:06 -04:00
Mike Bayer 35e879fcde - allow a separate template database to be used for
PG CREATE DATABASE.  as nobody will connect to it that would
solve the contention issue here
- backport --nomemory since tox.ini is using it

Change-Id: I00a4d52091876e120faff4a8a5493c53280d96f1
(cherry picked from commit 4c30681839)
2017-08-22 13:25:58 -04:00
Mike Bayer a1d78a2ce8 - repair --dbs
Change-Id: I69e39d2368f50b126c369ecc35e01799fd013254
(cherry picked from commit 3fc6f32ddc)
2017-08-22 13:07:36 -04:00
Mike Bayer e46eea26d3 - still supporting py2.6 in 1.1 (!)
Change-Id: Iaaababf83b9c3a6e4dc784fc9807bed01c90b69b
2017-08-22 09:41:40 -04:00
Mike Bayer 0594e37513 - simplify and see if it still works
Change-Id: Id0cf7ae2223507d413aaa22e5f8df066b7ac2b46
(cherry picked from commit fe5eede555)
2017-08-21 22:17:24 -04:00
Mike Bayer 9ceddec38f merge PG fixes from master
Change-Id: I5630eb8ba503c567bebddd10f6e525ceb3dd5998
2017-08-21 20:15:21 -04:00
hsmtkk 320ba61529 fix a typo
(cherry picked from commit 58fb83c45b)
2017-08-21 16:28:29 -04:00
Mike Bayer ecf38bf712 - filter out non-oracle URLs
Change-Id: I475f744f8801bc923d738e466d208d662e707413
(cherry picked from commit 97e455f21b)
2017-08-21 12:10:55 -04:00
Mike Bayer 42f11fe80b - this test doesn't work in strict mode, not that important
Change-Id: I3ed361af5c9f0c7acbeb8b534966828949f4958b
(cherry picked from commit 63d47c051d)
2017-08-21 12:10:41 -04:00
Mike Bayer cc3d1e057d - a few mysql fixes, more to come
Change-Id: Icdcc8ed03374251b8d3815ae58e2726ea27c14b4
(cherry picked from commit 64032a35ae)
2017-08-21 12:10:28 -04:00
Mike Bayer 3c48ba6201 - rework oracle de-provisioning to write URLs to the file as well,
supporting custom dburi etc.

Change-Id: Ic0ab0b3b4223e40fd335ee3313fda4dfce942100
(cherry picked from commit cc741e1ac7)
2017-08-21 12:09:52 -04:00
Mike Bayer 57e023b446 - add some logging for the provisioning
Change-Id: I1ac16bc77642f4f576195ac10443ed8e641e0d49
(cherry picked from commit 0030966200)
2017-08-21 12:09:02 -04:00
Mike Bayer 34f468af19 - dont run sql mode config tests if we aren't on mysql
Change-Id: Ia5a491ec505afed1511a17a167cd1f7d8371acd4
(cherry picked from commit ed197d4c30)
2017-08-19 18:21:05 -04:00
Mike Bayer 4a70db6af5 - correct server side cursor assertion for driver names
Change-Id: Id8156f6af15a36f7d5653dff56f68e81431692a6
(cherry picked from commit ecdd922d96)
2017-08-19 17:30:24 -04:00
Mike Bayer 4fe612d108 - backport new tox config options from 1.2
Change-Id: I081463ecc24bc5059018ffb4be49a320ff55dfab
2017-08-19 17:11:01 -04:00
Mike Bayer 3762698db3 - rework the unittests README which was very out of date
Change-Id: Id9bda43ea493a8d493be5ecb19da16a91a298f9d
(cherry picked from commit 31491a6acc)
2017-08-19 14:06:40 -04:00
Nils Philippsen 13079eb1db fix "constrast" typos
(cherry picked from commit 7765724d51)
2017-08-09 09:33:07 -04:00
Mike Bayer 9b7b7923cf - modernize orm.reconstructor documentation a bit
Change-Id: Ied786e8f9ad78f524be03a382d002dada7dd218b
(cherry picked from commit 4b4f8fbf25)
2017-08-05 21:46:45 -04:00
Mike Bayer 9034fc2b48 - fix one test for STRICT, which may be turned on by default
in mariadb 10.2.   more mariadb fixes coming

Change-Id: I6e3a94ae7340772663677b1082506adbb2d84a38
(cherry picked from commit 54cdda032e)
2017-08-04 11:29:06 -04:00
Mike Bayer 2d24d9c4f1 - 1.1.13 rel_1_1_13 2017-08-03 11:37:42 -04:00
Mike Bayer 90ef2c2314 - 1.0.19
Change-Id: I65ebe00fa7372151210a1f177f5417ac08c41586
2017-08-03 11:36:44 -04:00
Mike Bayer 5fc7056a53 - convert to spaces
- restore unreleased directories

Change-Id: Ia5c1142ffbdba6372f800c2e2521660ab62d9c4f
(cherry picked from commit a1160414b8)
2017-07-31 08:38:56 -04:00
Mike Bayer 9689bb85f1 Revert cx_Oracle WITH_UNICODE change under > 5.0
Fixed performance regression caused by the fix for 🎫`3937` where
cx_Oracle as of version 5.3 dropped the ``.UNICODE`` symbol from its
namespace,  which was interpreted as cx_Oracle's "WITH_UNICODE" mode being
turned on unconditionally, which invokes functions on the SQLAlchemy
side which convert all strings to unicode unconditionally and causing
a performance impact.  In fact, per cx_Oracle's author the
"WITH_UNICODE" mode has been removed entirely as of 5.1, so the expensive unicode
conversion functions are no longer necessary and are disabled if
cx_Oracle 5.1 or greater is detected under Python 2.  The warning against
"WITH_UNICODE" mode that was removed under 🎫`3937` is also restored.

Change-Id: Iddd38d81a5adb27c953a5ee2eae5529a21da16e1
Fixes: #4035
(cherry picked from commit 7997d7fdc3)
2017-07-28 17:42:22 -04:00
Mike Bayer f7beeb389d - 1.1.13
- 1.0.19

Change-Id: I476213fe905a51826feeddb4e1c97416c2bac558
2017-07-28 15:16:17 -04:00
Mike Bayer ad5626cdb9 - 1.1.12 rel_1_1_12 2017-07-24 17:18:33 -04:00
Mike Bayer ac517ff58b - 1.0.18 release date
(cherry picked from commit f00391a070)

Change-Id: Ib9e96acddc871fddbb7eb94993f0994248f8a85d
2017-07-24 17:17:42 -04:00
mike bayer 68140a14ca Merge "Ensure we check for boolean condition when we inspect __exit__()" into rel_1_1 2017-07-24 16:55:00 -04:00
mike bayer 5470ad6dc6 Merge "Guard all indexed access in WeakInstanceDict" into rel_1_1 2017-07-24 14:50:11 -04:00
Feanil Patel 7993357532 Make flush logic slightly clearer in tutorial.
Improve the wording of how sessions commit changes.
(cherry picked from commit c9b37f9689)
2017-07-24 12:43:02 -04:00
Mike Bayer c4bd01a68b Ensure we check for boolean condition when we inspect __exit__()
Fixed issue in testing fixtures which was incompatible with a change
made as of Python 3.6.2 involving context managers.

Change-Id: I0f12aa6cc15cba89153f7e4888ac347e7ce599c7
Fixes: #4034
(cherry picked from commit 7d4005156b)
2017-07-24 12:33:48 -04:00
Mike Bayer 676c49b51d Guard all indexed access in WeakInstanceDict
Added ``KeyError`` checks to all methods within
:class:`.WeakInstanceDict` where a check for ``key in dict`` is
followed by indexed access to that key, to guard against a race against
garbage collection that under load can remove the key from the dict
after the code assumes its present, leading to very infrequent
``KeyError`` raises.

Change-Id: I881cc2899f7961d29a0549f44149a2615ae7a4ea
Fixes: #4030
(cherry picked from commit 1a75f676d75b5daf67455d6e85b7b4df6f2316dc)
2017-07-24 11:49:41 -04:00
Mike Bayer 3e794a199d - Merge directory holder README from 1.0.x and also 1.0's changelog
Change-Id: I588eebd027b4ad3428bd522f36a6f1cd77f105bb
(cherry picked from commit 39c72682b8)
2017-07-24 10:50:37 -04:00
Mike Bayer 620fff8e2c - move to file-per-changelog for unreleased change notes,
so that we no longer have to rely upon merges within
the changelog files.   because gerrit doesn't allow us
to use custom merge engines unlike git, we have no ability
to merge multiple changes into the changelog files without
going through conflicts.   new version of changelog
in git supports these new patterns.

Change-Id: I588eebd027b4ad3428bd522f36a6f1cd77f105bb
(cherry picked from commit 39c72682b8)
2017-07-22 16:34:55 -04:00
mike bayer 0753f3940c Merge "Check for column object in eval_none, not propkey" into rel_1_1 2017-07-19 16:22:10 -04:00
Mike Bayer db3c58f9ee Check for column object in eval_none, not propkey
Fixed bug involving JSON NULL evaluation logic added in 1.1 as part
of 🎫`3514` where the logic would not accommodate ORM
mapped attributes named differently from the :class:`.Column`
that was mapped.

Change-Id: I1848afcfb63ad7f074f315d8d3097666069b42be
Fixes: #4031
(cherry picked from commit e2ede596adff3ce584f8c43ba024cafabc509a06)
2017-07-18 15:04:55 -04:00
Mike Bayer 23565166f1 Check for non-entity when inspecting for subqueryload
Fixed issue where adding additional non-entity columns to
a query that includes an entity with subqueryload relationships
would fail, due to an inspection added in 1.1.11 as a result of
🎫`4011`.

Change-Id: I8ef082be649125bdc07b428cb9b0a77a65d73671
Fixes: #4033
(cherry picked from commit 3d41ea09a8)
2017-07-18 15:04:10 -04:00
Tom Sitter d7dd0e1e02 Replace Session class with session instance
The Session class was used instead of the session instance which resulted in an attribute error.
(cherry picked from commit 43f41fbfaa)
2017-07-17 10:31:45 -04:00
Pablo Marti 923f66f971 Fix typo, foriegn -> foreign
(cherry picked from commit c6b4675982)
2017-07-17 10:29:28 -04:00
Mike Bayer e66d0cd394 - remove intersphinx usage, the overhead of re-fetching
inventory on every build not worth it

Change-Id: I3c4506b246d0f327c4b56afa723975daee984476
(cherry picked from commit a66979fe1e)
2017-07-09 13:03:45 -04:00
David Moore acabfc72ad Add support for CACHE and ORDER to sequences
Added new keywords :paramref:`.Sequence.cache` and
:paramref:`.Sequence.order` to :class:`.Sequence`, to allow rendering
of the CACHE parameter understood by Oracle and PostgreSQL, and the
ORDER parameter understood by Oracle.  Pull request
courtesy David Moore.

Change-Id: I082c3f8ef56ef89dbaad5da9d5695be5313b0614
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/96
(cherry picked from commit faa6609dac)
2017-07-05 16:23:13 -04:00
Mike Bayer 6d6ab57c2b - 1.1.12 placeholder
Change-Id: Ibf559430163717fc58d0e72f28c1e2f0051b26bc
2017-07-05 16:08:02 -04:00
Michael Stewart 91ba0da8c1 Include missing import in example
(cherry picked from commit 1db3029abc)
2017-07-03 11:18:42 -04:00
Jodok Batlogg 02feeeb6bb added link for CrateDB support
(cherry picked from commit 9f1a375f10)
2017-06-23 15:43:20 -04:00
Mike Bayer 4d63f09779 - 1.1.12 prep
Change-Id: Ibc3f1490ccf5c8e6d467340b2b73f9ddfebfb83c
2017-06-19 11:01:58 -04:00
Mike Bayer 8d740d6bd6 - 1.1.11 rel_1_1_11 2017-06-19 10:42:56 -04:00
mike bayer 0b9aa75c00 Merge "Handle SHOW VARIABLES returning no row" into rel_1_1 2017-06-16 18:39:59 -04:00
Mike Bayer 94a0ed697a Handle SHOW VARIABLES returning no row
MySQL 5.7 has introduced permission limiting for the "SHOW VARIABLES"
command; the MySQL dialect will now handle when SHOW returns no
row, in particular for the initial fetch of SQL_MODE, and will
emit a warning that user permissions should be modified to allow the
row to be present.

Change-Id: I98e7a69230da397b17eae07b7e9d024fa7aeeb26
Fixes: #4007
(cherry picked from commit 5650a0c306)
2017-06-16 15:54:47 -04:00