]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
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)

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

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

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

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

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

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

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

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

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

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

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

Also improves some naming in the examples.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: I33405513dc216ad33c5ec4796bff73f75d5866c4

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

Change-Id: If1511812a22a53537409f902f73e2e52ae3e4a3d

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

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

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

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

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

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

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

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

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

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

(cherry picked from commit 096a74d7c5bea560ab68423e2d7293af22afbfa3)

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

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

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

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

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

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

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

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

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

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

Change-Id: I87918ab4cd294d4b4a87a377c7b6b21105f4fd55

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: I2d75b6d9ca533e662bc8160cf5fc52355e5e549e

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