]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
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 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)
(cherry picked from commit b3502459c385e359babf60b82b8d968849760fa4)

7 years ago- add more dragons to session.begin() / autocommit docs
Mike Bayer [Thu, 28 Sep 2017 15:43:48 +0000 (11:43 -0400)] 
- add more dragons to session.begin() / autocommit docs

Change-Id: I9e326f353d396321565dfbf53b7a30f18d8c86e9
(cherry picked from commit 1ec7ba52e1c7e6d232223912f154e25252fb9b92)

7 years ago- tweak the handle_error docs a bit
Mike Bayer [Thu, 28 Sep 2017 13:59:16 +0000 (09:59 -0400)] 
- tweak the handle_error docs a bit

Change-Id: Iebe5b13b3a568f3aa0f3ab02a55e2a9cbb4545c7
(cherry picked from commit e1a923dc5ab70ed0d0a259614f9ecd6e2b78c216)

7 years agoDocument and test __table_cls__
Mike Bayer [Tue, 26 Sep 2017 00:00:20 +0000 (20:00 -0400)] 
Document and test __table_cls__

A use case has been identified for __table_cls__, which was
added in 1.0 just for the purpose of test fixtures.   Add this to
public API and ensure the target use case (conditional table generation)
stays supported.

Change-Id: I87be5bcb72205cab89871fa586663bf147450995
Fixes: #4082
(cherry picked from commit 04bbad660bcbb7b920f3e75110a7b1187d9ddc38)
(cherry picked from commit d1ca3a8d462c3c8c32afc9bccbb9d566ff02796e)

7 years ago- pin on cx_Oracle 6.0.1 for the moment while we wait for
Mike Bayer [Thu, 31 Aug 2017 20:22:52 +0000 (16:22 -0400)] 
- pin on cx_Oracle 6.0.1 for the moment while we wait for
either https://github.com/oracle/python-cx_Oracle/issues/75
to be fixed or we can merge a workaround

Change-Id: Ia3927337fb48824e0fdc764ed3a9d4930ca7a9c6
(cherry picked from commit de73c6d1cd880b213f87723b6cf73fea20a7b9fb)
(cherry picked from commit 89fab2824b681073d1e51198b9dd625e9aa5fbed)

7 years agoFixed a typo in before_execute doc.
Michael Smirnov [Tue, 22 Aug 2017 13:49:54 +0000 (13:49 +0000)] 
Fixed a typo in before_execute doc.
events.py edited online with Bitbucket

(cherry picked from commit e0ddf30bf65f0cc90ae3c471bf9b3aae56cbc824)

7 years agoAdd InternalError for mysqlclient disconnect
Mike Bayer [Fri, 1 Sep 2017 16:31:38 +0000 (12:31 -0400)] 
Add InternalError for mysqlclient disconnect

mysqlclient as of 1.3.11 changed the exception
class for a particular disconnect situation from
InterfaceError to InternalError; the disconnection
detection logic now accommodates this.

Change-Id: I294f90f794491fd363548719222d8e3008480615
Fixes: #4065
(cherry picked from commit 65680b2343ef421a62582e23e2b35293732933ad)

7 years agoinclude a note about the importance of type coerce for custom ops
Mike Bayer [Fri, 1 Sep 2017 14:52:16 +0000 (10:52 -0400)] 
include a note about the importance of type coerce for custom ops

Change-Id: Ia7dab65523d6a34fcc92ee785ffe03f7e2a33cfd
(cherry picked from commit 56845d8cc2678c0aefd889a7fc711150661cd8e8)

7 years agoRemove twophase for cx_Oracle 6.x
Mike Bayer [Tue, 23 May 2017 14:17:51 +0000 (10:17 -0400)] 
Remove twophase for cx_Oracle 6.x

Support for two-phase transactions has been removed entirely for
cx_Oracle when version 6.0b1 or later of the DBAPI is in use.  The two-
phase feature historically has never been usable under cx_Oracle 5.x in
any case, and cx_Oracle 6.x has removed the connection-level "twophase"
flag upon which this feature relied.

Change-Id: I2e8161cc2bc12f4845c9224cd483038112fe9734
Fixes: #3997
(cherry picked from commit 1b98ce355a60b7ad9898aeb412c21591bb438231)
(cherry picked from commit 41e92f85581589fd011f93c86b81439f71237433)

7 years agouse regexp to parse cx_oracle version string
Mike Bayer [Tue, 9 May 2017 16:17:04 +0000 (12:17 -0400)] 
use regexp to parse cx_oracle version string

Fixed bug in cx_Oracle dialect where version string parsing would
fail for cx_Oracle version 6.0b1 due to the "b" character.  Version
string parsing is now via a regexp rather than a simple split.

Change-Id: I2af7172b0d7184e3ea3bd051e9fa8d6ca2a571cd
Fixes: #3975
(cherry picked from commit 50484eda7787c3e83c9c88c1841fc63b348ca23c)
(cherry picked from commit ab1eb8109221588c19d72c75af01ea4e8cd68e3f)

7 years ago- 1.0.20
Mike Bayer [Tue, 22 Aug 2017 22:18:58 +0000 (18:18 -0400)] 
- 1.0.20

Change-Id: Ie6a0d4b3d53e6b3723f4992f3216832569120db1

7 years ago- fix typos
Mike Bayer [Tue, 22 Aug 2017 22:15:59 +0000 (18:15 -0400)] 
- fix typos

Change-Id: Ibf8bc0e997ff989c7b0c16afad48a95414078052
(cherry picked from commit d8a80a35a0f117c7659c7a9c62e27994d3aadc01)

7 years ago- modernize the mysql connection timeout docs
Mike Bayer [Tue, 22 Aug 2017 20:50:19 +0000 (16:50 -0400)] 
- modernize the mysql connection timeout docs

Change-Id: Icb0474509539c1eb7536544749f2a48b4972078a
(cherry picked from commit 4ce46fb0a085c1cc739e21881cc25567e663f8dc)

7 years agoFirst level repair for cx_Oracle 6.0 test regressions
Mike Bayer [Fri, 18 Aug 2017 17:04:14 +0000 (13:04 -0400)] 
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 03255a5a0fc6aa8acfff99ed9e62d58054b8b6af)

7 years ago- ensure identifier re-use doesn't make this break
Mike Bayer [Tue, 22 Aug 2017 17:55:49 +0000 (13:55 -0400)] 
- ensure identifier re-use doesn't make this break

Change-Id: I9fe6c42c097d31b50a479250d39a3cd8ebcbffaf
(cherry picked from commit 41549de9609bce90942ca6afc75978d5254c8fd5)

7 years ago- allow a separate template database to be used for
Mike Bayer [Tue, 22 Aug 2017 17:12:43 +0000 (13:12 -0400)] 
- 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 4c306818396c8cc98a16a14c5ed3361cf6ff373a)
(cherry picked from commit 35e879fcded5b21e70d6de840532187f5d304b46)

7 years ago- repair --dbs
Mike Bayer [Tue, 22 Aug 2017 17:07:24 +0000 (13:07 -0400)] 
- repair --dbs

Change-Id: I69e39d2368f50b126c369ecc35e01799fd013254

7 years ago- still supporting py2.6 in 1.1/1.0 (!)
Mike Bayer [Tue, 22 Aug 2017 13:41:40 +0000 (09:41 -0400)] 
- still supporting py2.6 in 1.1/1.0 (!)

Change-Id: Iaaababf83b9c3a6e4dc784fc9807bed01c90b69b
(cherry picked from commit e46eea26d30f2dae6fba1a46131b6f0656acbf3c)

7 years ago- backport all pytest-xdist / multi backend changes
Mike Bayer [Tue, 22 Aug 2017 02:26:53 +0000 (22:26 -0400)] 
- backport all pytest-xdist / multi backend changes
from 1.2 master back to 1.0 for CI

Change-Id: I31719ccececd474e81e765dc3a8896f89f5a84eb

7 years agofix a typo
hsmtkk [Wed, 16 Aug 2017 09:38:40 +0000 (18:38 +0900)] 
fix a typo

(cherry picked from commit 58fb83c45b2100f3cf9308c04eefb87e79202aac)

7 years ago- dont run sql mode config tests if we aren't on mysql
Mike Bayer [Sat, 19 Aug 2017 22:22:41 +0000 (18:22 -0400)] 
- dont run sql mode config tests if we aren't on mysql

Change-Id: Iec1d992c611e223fda303e6a323dabff79760f01

7 years ago- backport new tox from 1.2
Mike Bayer [Sat, 19 Aug 2017 21:12:20 +0000 (17:12 -0400)] 
- backport new tox from 1.2

Change-Id: I212fad7eb330446f2cddfa0f416fc7ce3a09e6cc

7 years agofix "constrast" typos
Nils Philippsen [Sat, 5 Aug 2017 11:31:06 +0000 (13:31 +0200)] 
fix "constrast" typos

(cherry picked from commit 7765724d51f78690c814eda6533fc0ac81ca9077)

7 years ago- modernize orm.reconstructor documentation a bit
Mike Bayer [Sun, 6 Aug 2017 01:46:24 +0000 (21:46 -0400)] 
- modernize orm.reconstructor documentation a bit

Change-Id: Ied786e8f9ad78f524be03a382d002dada7dd218b
(cherry picked from commit 4b4f8fbf25f1a5a76c1579c1a3fd6ffad07c8c66)

8 years ago- 1.0.19 rel_1_0_19
Mike Bayer [Thu, 3 Aug 2017 15:28:35 +0000 (11:28 -0400)] 
- 1.0.19

8 years ago- convert to spaces
Mike Bayer [Mon, 31 Jul 2017 12:30:45 +0000 (08:30 -0400)] 
- convert to spaces
- restore unreleased directories

Change-Id: Ia5c1142ffbdba6372f800c2e2521660ab62d9c4f
(cherry picked from commit a1160414b8dc798a1cf1b8c71a68c6cdc3526384)
(cherry picked from commit 5fc7056a5393c35d8f4c38d8d22cbee7cc28428e)

8 years agoRevert cx_Oracle WITH_UNICODE change under > 5.0
Mike Bayer [Fri, 28 Jul 2017 19:05:25 +0000 (15:05 -0400)] 
Revert cx_Oracle WITH_UNICODE change under > 5.0

Fixed performance regression caused by the fix for :ticket:`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 :ticket:`3937` is also restored.

Change-Id: Iddd38d81a5adb27c953a5ee2eae5529a21da16e1
Fixes: #4035
(cherry picked from commit 7997d7fdc3634e7dba9fd0113b8b85ef311bfeaa)

8 years ago- 1.0.19
Mike Bayer [Fri, 28 Jul 2017 19:15:36 +0000 (15:15 -0400)] 
- 1.0.19

Change-Id: I4711ff97fa92f88407c6e6a4962ed61881c18305

8 years ago- 1.0.18 rel_1_0_18
Mike Bayer [Mon, 24 Jul 2017 21:14:51 +0000 (17:14 -0400)] 
- 1.0.18

8 years agoMerge "Ensure we check for boolean condition when we inspect __exit__()" into rel_1_0
mike bayer [Mon, 24 Jul 2017 20:54:43 +0000 (16:54 -0400)] 
Merge "Ensure we check for boolean condition when we inspect __exit__()" into rel_1_0

8 years agoMake flush logic slightly clearer in tutorial.
Feanil Patel [Sun, 23 Jul 2017 13:17:39 +0000 (09:17 -0400)] 
Make flush logic slightly clearer in tutorial.

Improve the wording of how sessions commit changes.
(cherry picked from commit c9b37f9689dca784a0a5d932cd8f0cd133c436cc)

8 years agoEnsure we check for boolean condition when we inspect __exit__()
Mike Bayer [Mon, 24 Jul 2017 16:13:05 +0000 (12:13 -0400)] 
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 7d4005156b5a48989dae7c4424faafc03cc8410d)

8 years ago- remove dupicated 1.0.18 block, which seems like it was already
Mike Bayer [Mon, 24 Jul 2017 15:01:43 +0000 (11:01 -0400)] 
- remove dupicated 1.0.18 block, which seems like it was already
there before we moved to the new changelog system

Change-Id: I81630049d383f4ec73865b7d3c635a3e3ec5ab2e

8 years ago- move to file-per-changelog for unreleased change notes,
Mike Bayer [Sat, 22 Jul 2017 20:32:01 +0000 (16:32 -0400)] 
- 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 39c72682b85c1d3912ced383733d03eca7a43845)

8 years agoReplace Session class with session instance
Tom Sitter [Wed, 12 Jul 2017 15:54:25 +0000 (11:54 -0400)] 
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 43f41fbfaa8f3030148c131628c5e9fe8fda9f66)

8 years agoInclude missing import in example
Michael Stewart [Fri, 30 Jun 2017 21:02:20 +0000 (14:02 -0700)] 
Include missing import in example
(cherry picked from commit 1db3029abc371c0808fb622ae2bd716ada81281a)

8 years ago- add complete parameter /return value docs to session.begin() /
Mike Bayer [Wed, 17 May 2017 14:46:52 +0000 (10:46 -0400)] 
- add complete parameter /return value docs to session.begin() /
session.begin_nested().  Fixes #3993

Change-Id: If485d77b364c34d94061d2f48efbde3f8a8adec9
(cherry picked from commit 4c6917e1d68a8baab7efe10e9ce5e5c8187f65ca)

8 years ago- move additional sections under with_polymorphic missed
Mike Bayer [Tue, 16 May 2017 15:00:41 +0000 (11:00 -0400)] 
- move additional sections under with_polymorphic missed
in the previous change

Change-Id: I20217d4d4ebfc033229d87e472ad82d32202617a
(cherry picked from commit 75c8b88cddeeadb539fce1c038997d0aebe6f621)

8 years ago- categorize these two with_polymorphic subsections under with_polymorphic
Mike Bayer [Tue, 16 May 2017 14:51:14 +0000 (10:51 -0400)] 
- categorize these two with_polymorphic subsections under with_polymorphic

Change-Id: I8bd49ac241df4b8645c8f78938d6f8122952d75a
(cherry picked from commit 6079158b21da7598ff37115649bbdd955713eb11)

8 years ago- fix broken link
Mike Bayer [Tue, 16 May 2017 13:59:38 +0000 (09:59 -0400)] 
- fix broken link

Change-Id: I2f3b5ae29600696b34a6afdddc2f94920febf31d
(cherry picked from commit 7aa50b9b197d542b63e86f423865f9bbec7af443)

8 years agomodernize and repair inheritance examples
Mike Bayer [Tue, 16 May 2017 13:51:06 +0000 (09:51 -0400)] 
modernize and repair inheritance examples

remarkably, the examples for concrete and single were still
using classical mappings.    Ensure all three examples use
modern declarative patterns, each illustrate the identical set
of query operations.  Use back_populates, flat=True for joins,
etc. ensure flake8 linting, correct links and add a link back
from newly reworked inheritance documentation.

Change-Id: I8465a9badbb0eda804f457ccac599f051ee3c27c
(cherry picked from commit 5329fc481ed1dcea0e922fd63def3094bda12c91)

8 years agoAdd links to with_only_columns to Select.column, append_column
Mike Bayer [Fri, 12 May 2017 13:23:44 +0000 (09:23 -0400)] 
Add links to with_only_columns to Select.column, append_column

Provide a brief example for these two methods
indicating that typically a table-bound (or other selectable)
column is appended here, then link to with_only_columns
documentation which has in-depth guidelines already including
that one should not append columns from the current select to itself.

Change-Id: I0742405a7f3c41450d337b9c633519d9cc101dfb
Fixes: #3987
(cherry picked from commit 4352e220ac04d09e120c441e79b1ac12c7ca2c45)

8 years agoUpdate inheritance documentation.
Mike Bayer [Mon, 1 May 2017 17:04:32 +0000 (13:04 -0400)] 
Update inheritance documentation.

The inheritance documentation is confused, disorganized, and out
of date.  Reorganize and clarify, in particular in preparation
for new inheritance features.

Change-Id: Ibe6a35b4b0432bad866a6afb0598b2cf1b509f10
(cherry picked from commit 6194483b73c94565aee62c5867a251a1841db5a9)

8 years agoFix docs syntax error
Denis Kataev [Wed, 10 May 2017 12:33:16 +0000 (17:33 +0500)] 
Fix docs syntax error

(cherry picked from commit 3e3554d37ca589218c13f9b2969801dccbbdfa2c)

8 years agoBreak the lines to fit pdf and fix another broken syntax
LunarShaddow [Mon, 8 May 2017 04:31:50 +0000 (12:31 +0800)] 
Break the lines to fit pdf and fix another broken syntax

(cherry picked from commit 3d19fb6d53c2aa0fdb7944569fa697c75785634c)

Change-Id: Ib3460a95f3387b51075c23600cb394b0af08d8f2

8 years agofixes a typo
Ben Fagin [Mon, 1 May 2017 17:30:11 +0000 (10:30 -0700)] 
fixes a typo
(cherry picked from commit 6224df56a6fa28efda6e6e5007b015ad9d6d7d14)

8 years ago- big rewrite of the Sequence documentation:
Mike Bayer [Fri, 5 May 2017 18:59:39 +0000 (14:59 -0400)] 
- big rewrite of the Sequence documentation:

1. Sequence should be associated with MetaData always,
except in the really weird case someone is sharing a Sequence
among multiple metadatas.  Make this a "best practice", end the
confusion of #3951, #3979

2. "optional" is not a thing people use, trim this way down

3. remove confusing language

Change-Id: Iab5aec319da2582092fe2615ee50430f76441aff

8 years ago- add another note re: 339e2c13b0fc8e95a47d00c0f8fc5afc4b6dff9a
Mike Bayer [Fri, 5 May 2017 14:39:18 +0000 (10:39 -0400)] 
- add another note re: 339e2c13b0fc8e95a47d00c0f8fc5afc4b6dff9a
which clarifies that ForeignKey circumvents this logic as a
"convenience".   issue #3978 is updated to address trying to make
this consistent.

Change-Id: I089acaa89f11b7a6310c2bf32916e26eb62ab9c0
(cherry picked from commit 8f830d78ba1d68ea3e10006e10e65ddb571f45ee)

8 years ago- add a note to MetaData.schema indicating that the Table
Mike Bayer [Fri, 5 May 2017 13:19:18 +0000 (09:19 -0400)] 
- add a note to MetaData.schema indicating that the Table
will be cataloged in the .tables collection with its fully
qualified name.   Fixes #3978

Change-Id: I65fa063918efc22658e93c39a0680cb83553dec8
(cherry picked from commit 339e2c13b0fc8e95a47d00c0f8fc5afc4b6dff9a)

8 years agotest / document postgresql_ops against a labeled expression
Mike Bayer [Mon, 24 Apr 2017 20:19:08 +0000 (16:19 -0400)] 
test / document postgresql_ops against a labeled expression

Since postgresql_ops explicitly states that it expects
string keys, to apply to a function call or expression one
needs to give the SQL expression a label that can be referred
to by name in the dictionary.   test / document this.

Change-Id: I4bc4ade46dac27f9c1b92e7823433292beab97b9
Fixes: #3970
(cherry picked from commit 029d0f75385298f8056c04eba1d2f9563126a8a6)

8 years agoFix of minor typo in the UnmappedInstanceError message
Jonathan Suever [Thu, 6 Apr 2017 19:52:10 +0000 (15:52 -0400)] 
Fix of minor typo in the UnmappedInstanceError message

(cherry picked from commit 90c72c31a55337bef61cdd0cb75f5d128bcc34f9)

8 years ago- remove errant doctest comment
Mike Bayer [Mon, 17 Apr 2017 19:33:12 +0000 (15:33 -0400)] 
- remove errant doctest comment

Change-Id: Idb8520ff807074ceca36645728a63b79d1cdff6c
(cherry picked from commit c2834f9298ddf14c0177e862b344de9e526cdf35)

8 years agoFix typo.
Bertrand Janin [Tue, 4 Apr 2017 13:11:25 +0000 (09:11 -0400)] 
Fix typo.

(cherry picked from commit 6524838950dca5721a7f7e9db3118d9245c64659)

8 years agoDocs/faq/performance
Ihor Kalnytskyi [Thu, 30 Mar 2017 14:07:31 +0000 (10:07 -0400)] 
Docs/faq/performance

Some updates for FAQ/Performance documentation page:

* Fix typo in testing script.
* Populate testing script with one more way to achieve higher performance.

See commit messages for details.

Change-Id: Id6fbf328164b14b3b58ca9616b103a35e72f7b8f
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/345
(cherry picked from commit a4c17c1397c68d109bcf0603644f3200ab2e82f5)

8 years agoFix a title typo
Bertrand Janin [Sun, 19 Mar 2017 22:05:54 +0000 (18:05 -0400)] 
Fix a title typo

Utilites -> Utilities
(cherry picked from commit 5df05d16708a3efbd731df6767c9763626972c04)

8 years agoFix typos ('expicit' -> 'explicit')
Jamie Alessio [Wed, 15 Mar 2017 02:02:38 +0000 (19:02 -0700)] 
Fix typos ('expicit' -> 'explicit')

(cherry picked from commit 3771af0af45c2a7ea79a055b953c32f23c53e256)

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

(cherry picked from commit 6aad7fb4217ef294f68f693be5b3137c28184949)

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

(cherry picked from commit ff230f1862892eb2b479ed85e6858a82159b435f)

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

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

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

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

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

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

Change-Id: Ief1c6285871544a4d699345040ee57276dbcf49b

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

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

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

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

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

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

Change-Id: Idffd242b303ffea9c7733068a4be290da4dbe679

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

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

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

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

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

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

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

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

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

(cherry picked from commit 8795472c875d5f424f96a1e19e93d6dd4a7df6a8)

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

(cherry picked from commit 3c0fc9b95f458f608bf10c266e52b2cd919467d5)

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

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

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

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

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

Change-Id: I3f294b4d153979c308532360d03ab7be3c5d994a

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

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

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

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

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

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

Change-Id: Iaaff6a66e7611320eca711add8a2e11aae42acf1

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

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

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

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

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

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

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

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

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

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

Change-Id: I686bcadd54ea674c011bb3777e410b69627bab72

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: Ia23b1754ad7e0841c6513647f0dd4987112a0511

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

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

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

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

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

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

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

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

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

(cherry picked from commit 9974ab67f508a16423e8bc22122180b0bcdee807)

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

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

(cherry picked from commit d18221c542bf4d7381be2afdcd4c098698ff8eae)

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

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

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

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

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

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

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

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

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

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

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

(cherry picked from commit df4639ab717273490b17085d5cdb240eef3cf0c0)

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

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