]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
9 years agoSkip UniqueConstraint marked by unique=True in tometadata
Mike Bayer [Thu, 2 Jun 2016 17:52:27 +0000 (13:52 -0400)] 
Skip UniqueConstraint marked by unique=True in tometadata

Fixes an issue where a Column would be copied with unique=True
and at the same time the UniqueConstraint would also be copied,
leading to duplicate UniqueConstraints in the target table,
when tometadata() is used.   Imitates the same logic used
by index=True/Index to avoid duplicates.  For some reason
a fix was implemented for Index long ago but never for
UniqueConstraint.

Change-Id: Ie622ee912a6fb8bf0ea900a8b09d78c7ebc79fc0
Fixes: #3721
9 years ago- don't raise for stray gc connection. this just happens
Mike Bayer [Thu, 2 Jun 2016 16:46:45 +0000 (12:46 -0400)] 
- don't raise for stray gc connection.   this just happens
sometimes and it really breaks the build once this
error occurs.

Change-Id: I577c78d623b22a6429f8b083fe08821bc467eb7a

9 years agoImplemented CHECK constraint reflection for SQLite and PostgreSQL
Alex Grönholm [Mon, 11 Apr 2016 21:01:42 +0000 (17:01 -0400)] 
Implemented CHECK constraint reflection for SQLite and PostgreSQL

Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: Ie6cf2d2958d1c567324db9e08fef2d3186e97350
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/80

9 years agoUse new mxODBC 3.3.4 varbinary null symbol
Sheila Allen [Mon, 11 Apr 2016 19:29:03 +0000 (15:29 -0400)] 
Use new mxODBC 3.3.4 varbinary null symbol

Use new mxODBC 3.3.4 varbinary null symbol with VARBINARY
data types when value is None(based on similar change to pyodbc).
Fix a test to pass on mxODBC starting w 3.3.3 version

Change-Id: Id703ecb51ebc5db149c81fef124f673433606c7f
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/58

9 years agoConvert readthedocs link for their .org -> .io migration for hosted projects
Adam Chainz [Sun, 29 May 2016 13:28:55 +0000 (14:28 +0100)] 
Convert readthedocs link for their .org -> .io migration for hosted projects

As per their email ‘Changes to project subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.

9 years agoMerge remote-tracking branch 'origin/pr/270'
Mike Bayer [Tue, 24 May 2016 20:29:49 +0000 (16:29 -0400)] 
Merge remote-tracking branch 'origin/pr/270'

9 years agoMerge remote-tracking branch 'origin/pr/274'
Mike Bayer [Tue, 24 May 2016 20:28:13 +0000 (16:28 -0400)] 
Merge remote-tracking branch 'origin/pr/274'

9 years agoRepair dictlike-polymorphic
Mike Bayer [Tue, 24 May 2016 20:23:37 +0000 (16:23 -0400)] 
Repair dictlike-polymorphic

dictlike-polymorphic was broken by the change
in 1714e0d6ef28411e9c6633018564af1cae58c3d9.  Use the new
style of inheritance.

Fixes: #3704
Change-Id: I3509ef4bf7772dd6994daf600accf4a2c5eb6973

9 years agoSupport "blank" schema when MetaData.schema is set
Mike Bayer [Wed, 18 May 2016 15:07:02 +0000 (11:07 -0400)] 
Support "blank" schema when MetaData.schema is set

Previously, it was impossible to have a Table that has
None for a schema name when the "schema" parameter on
MetaData was set.  A new symbol sqlalchemy.schema.BLANK_SCHEMA
is added which indicates that the schema name should unconditionally
be set to None.  In particular, this value must be passed within
cross-schema foreign key reflection, so that a Table which
is in the "default" schema can be represented properly.

Fixes: #3716
Change-Id: I3d24f99c22cded206c5379fd32a225e74edb7a8e

9 years ago- 1.0.13 release date
Mike Bayer [Wed, 18 May 2016 15:08:29 +0000 (11:08 -0400)] 
- 1.0.13 release date

Change-Id: I1873dc22c233b5c3585eb7a203bc2352c7cfdbef

9 years agoMerge "Accommodate "callable" bound param in evaluator"
mike bayer [Mon, 16 May 2016 17:12:51 +0000 (13:12 -0400)] 
Merge "Accommodate "callable" bound param in evaluator"

9 years agoMerge "Fix TypeError during cx_Oracle connection"
mike bayer [Mon, 16 May 2016 17:11:54 +0000 (13:11 -0400)] 
Merge "Fix TypeError during cx_Oracle connection"

9 years agoAccommodate "callable" bound param in evaluator
Mike Bayer [Mon, 16 May 2016 14:32:07 +0000 (10:32 -0400)] 
Accommodate "callable" bound param in evaluator

Fixed bug in "evaluate" strategy of :meth:`.Query.update` and
:meth:`.Query.delete` which would fail to accommodate a bound
parameter with a "callable" value, as which occurs when filtering
by a many-to-one equality expression along a relationship.

Change-Id: I47758d3f5d8b9ea1a07e23166780d5f3c32b17f1
Fixes: #3700
9 years agoFix formatting on test_evaluator
Mike Bayer [Mon, 16 May 2016 14:26:08 +0000 (10:26 -0400)] 
Fix formatting on test_evaluator

Change-Id: Idcd77a570b19f1b022a74d67fa8253d922dadc67

9 years agoFix TypeError during cx_Oracle connection
John Vandenberg [Thu, 5 May 2016 13:26:00 +0000 (09:26 -0400)] 
Fix TypeError during cx_Oracle connection

cx_Oracle connection parameters user, password and dsn must be
either a string or NULL.  When they are passed a Python None object,
"TypeError: expecting string, unicode or buffer object" is raised.

Fixes: #3705
Change-Id: I8da5d8a227ca12c9bf17a6127460e413841951fb
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/271

9 years agoFix typo in config result.py docs
vytotas [Mon, 16 May 2016 11:02:30 +0000 (13:02 +0200)] 
Fix typo in config result.py docs

9 years agoHandle `SSL error: decryption failed or bad record mac`
Iuri de Silvio [Sat, 14 May 2016 01:20:54 +0000 (21:20 -0400)] 
Handle `SSL error: decryption failed or bad record mac`

This is another psycopg2 error message representing an
unusable connection.

Fixes #3715
Change-Id: Ida6e212963e9c7336bf2944e7ef928619ac3a0e7
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/85

9 years agoMerge remote-tracking branch 'origin/pr/272'
Mike Bayer [Fri, 13 May 2016 15:41:51 +0000 (11:41 -0400)] 
Merge remote-tracking branch 'origin/pr/272'

9 years agotypo in glossary#release: s/proces/process/
Frank Carnovale [Thu, 12 May 2016 16:54:50 +0000 (17:54 +0100)] 
typo in glossary#release: s/proces/process/

9 years agotypo in glossary#FROMclause: s/incicates/indicates/
Frank Carnovale [Thu, 12 May 2016 16:51:03 +0000 (17:51 +0100)] 
typo in glossary#FROMclause: s/incicates/indicates/

9 years agotypo in glossary#instrumentation: s/behviors/behaviors/
Frank Carnovale [Wed, 11 May 2016 16:42:59 +0000 (17:42 +0100)] 
typo in glossary#instrumentation: s/behviors/behaviors/

9 years agoAdd close_with_result to pessimistic connection example
Mike Bayer [Thu, 12 May 2016 11:54:14 +0000 (07:54 -0400)] 
Add close_with_result to pessimistic connection example

For connectionless execution, the recipe here will fail unless
the should_close_with_result flag is temporarily set to False.

Change-Id: Ib77b4439e8361b24478108c413b1ba720a68350f
Fixes: #3712
9 years agoFix label referencing in SQL Server OFFSET logic
Mike Bayer [Tue, 10 May 2016 16:49:56 +0000 (12:49 -0400)] 
Fix label referencing in SQL Server OFFSET logic

Fixed bug where by ROW_NUMBER OVER clause applied for OFFSET
selects in SQL Server would inappropriately substitute a plain column
from the local statement that overlaps with a label name used by
the ORDER BY criteria of the statement.

Change-Id: Ic2500c886cbfc83a1ad5a2681783f008b9f23838
Fixes: #3711
9 years agoCheck for duplicate calls to register_attribute_impl
Mike Bayer [Tue, 10 May 2016 15:05:30 +0000 (11:05 -0400)] 
Check for duplicate calls to register_attribute_impl

Fixed bug whereby the event listeners used for backrefs could
be inadvertently applied multiple times, when using a deep class
inheritance hierarchy in conjunction with mutiple mapper configuration
steps.

Change-Id: I712beaf4674e2323bf5b282922658020a6d00b53
Fixes: #3710
9 years agochange "psotgresql" to 'postgresql' in decorator
Mark Sandan [Sat, 7 May 2016 01:26:31 +0000 (18:26 -0700)] 
change "psotgresql" to 'postgresql' in decorator

9 years agoRepair _orm_columns() to accommodate text()
Mike Bayer [Thu, 5 May 2016 21:07:40 +0000 (17:07 -0400)] 
Repair _orm_columns() to accommodate text()

Fixed bug whereby passing a :func:`.text` construct to the
:meth:`.Query.group_by` method would raise an error, instead
of intepreting the object as a SQL fragment.

Change-Id: I5fc2f590b76508d52e23b5fa9cf037ddea8080c3
fixes: #3706

9 years agoSpelling fixes: "an SQL" -> "a SQL", see #266
Ville Skyttä [Thu, 5 May 2016 06:02:07 +0000 (09:02 +0300)] 
Spelling fixes: "an SQL" -> "a SQL", see #266

9 years agoSpelling fixes: "the a"
Ville Skyttä [Thu, 5 May 2016 06:00:28 +0000 (09:00 +0300)] 
Spelling fixes: "the a"

9 years agoMerge remote-tracking branch 'origin/pr/269'
Mike Bayer [Wed, 4 May 2016 19:53:05 +0000 (15:53 -0400)] 
Merge remote-tracking branch 'origin/pr/269'

9 years agoMerge remote-tracking branch 'origin/pr/268'
Mike Bayer [Wed, 4 May 2016 19:52:05 +0000 (15:52 -0400)] 
Merge remote-tracking branch 'origin/pr/268'

9 years agoMerge remote-tracking branch 'origin/pr/267'
Mike Bayer [Wed, 4 May 2016 19:49:28 +0000 (15:49 -0400)] 
Merge remote-tracking branch 'origin/pr/267'

9 years agoMerge remote-tracking branch 'origin/pr/265'
Mike Bayer [Wed, 4 May 2016 19:40:53 +0000 (15:40 -0400)] 
Merge remote-tracking branch 'origin/pr/265'

9 years agoCorrects typo: plural of vertex is vertices.
Jeffrey Finkelstein [Wed, 4 May 2016 01:09:36 +0000 (21:09 -0400)] 
Corrects typo: plural of vertex is vertices.

9 years agoAdds parentheses around print statements in docs.
Jeffrey Finkelstein [Wed, 4 May 2016 01:02:29 +0000 (21:02 -0400)] 
Adds parentheses around print statements in docs.

9 years agoCorrects some references in ORM documentation.
Jeffrey Finkelstein [Wed, 4 May 2016 00:46:20 +0000 (20:46 -0400)] 
Corrects some references in ORM documentation.

9 years agoLet logging format messages on demand, use warning instead of deprecated warn
Ville Skyttä [Tue, 3 May 2016 15:29:41 +0000 (18:29 +0300)] 
Let logging format messages on demand, use warning instead of deprecated warn

9 years agoFix pymssql sample URL
Mike Bayer [Wed, 27 Apr 2016 20:08:31 +0000 (15:08 -0500)] 
Fix pymssql sample URL

A slash is required before building out the query string portion.

Change-Id: Ie97fd3d07047d78e17cbaffed4ff54960a2b956e
Fixes: #3696
(cherry picked from commit 83a9e6e1fac276090e60136aa4e9234ae23bc25a)

9 years agoMerge remote-tracking branch 'origin/pr/263'
Mike Bayer [Wed, 27 Apr 2016 19:02:09 +0000 (14:02 -0500)] 
Merge remote-tracking branch 'origin/pr/263'

9 years agoDon't double-process ResultMetaData for BufferedColumnResultProxy
Mike Bayer [Wed, 27 Apr 2016 16:37:58 +0000 (11:37 -0500)] 
Don't double-process ResultMetaData for BufferedColumnResultProxy

Fixed a bug in the result proxy used mainly by Oracle when binary and
other LOB types are in play, such that when query / statement caching
were used, the type-level result processors, notably that required by
the binary type itself but also any other processor, would become lost
after the first run of the statement due to it being removed from the
cached result metadata.

Change-Id: I751940866cffb4f48de46edc8137482eab59790c
Fixes: #3699
9 years agoAdds parentheses around prints in documentation
jfinkels [Wed, 27 Apr 2016 06:35:55 +0000 (02:35 -0400)] 
Adds parentheses around prints in documentation

This makes the docstring example code compatible with both Python 2 and Python 3.

9 years agoSimplify directed graph example
Mike Bayer [Wed, 27 Apr 2016 00:00:43 +0000 (19:00 -0500)] 
Simplify directed graph example

Changed the "directed graph" example to no longer consider
integer identifiers of nodes as significant; the "higher" / "lower"
references now allow mutual edges in both directions.

Change-Id: Ibfd5b420f0451a6fc746f0bcbbbb062f8f88dc1d
Fixes: #3698
(cherry picked from commit c3de4061fd490adcd8b75c79685f4a831b869f9e)

9 years ago- don't use --dropfirst when we are using ad-hoc DBs. dropfirst
Mike Bayer [Sun, 24 Apr 2016 18:44:04 +0000 (14:44 -0400)] 
- don't use --dropfirst when we are using ad-hoc DBs.   dropfirst
is unnecessary and causes collisions against other CI runs

Change-Id: I47e9bc98cd6ef4ab90be25bae45897dabae16308

9 years agoFix result set handling for case insensitive dupe cols
Mike Bayer [Thu, 21 Apr 2016 14:36:19 +0000 (10:36 -0400)] 
Fix result set handling for case insensitive dupe cols

Fixed bug where when using ``case_sensitive=False`` with an
:class:`.Engine`, the result set would fail to correctly accomodate
for duplicate column names in the result set, causing an error
when the statement is executed in 1.0, and preventing the
"ambiguous column" exception from functioning in 1.1.

Change-Id: If582bb9fdd057e4da3ae42f7180b17d1a1a2d98e
Fixes: #3690
9 years agoMerge "Deprecate Mapper.order_by"
mike bayer [Tue, 19 Apr 2016 22:50:04 +0000 (18:50 -0400)] 
Merge "Deprecate Mapper.order_by"

9 years agoDeprecate Mapper.order_by
Mike Bayer [Tue, 19 Apr 2016 20:11:23 +0000 (16:11 -0400)] 
Deprecate Mapper.order_by

This is an old parameter no longer relevant to how SQLAlchemy
works, once the Query object was introduced.  By deprecating it
we establish that we aren't supporting non-working use cases
and that we encourage applications to move off of the use of this
parameter.

Fixes: #3394
Change-Id: I25b9a38142a1537bbcb27d3e8b66a8b265140072

9 years agoRename Query._mapper_zero() to Query._entity_zero()
Mike Bayer [Tue, 19 Apr 2016 19:46:37 +0000 (15:46 -0400)] 
Rename Query._mapper_zero() to Query._entity_zero()

To be more descriptive of the use of _mapper_zero(), rename
it to _entity_zero(), but also supply a new _mapper_zero() function
that more strictly returns a mapper.  The existing
_entity_zero() function is renamed to _query_entity_zero.
_only_mapper_zero() is removed as it isn't used.  Divide up the
existing calling functions to refer to the appropriate new method.

Change-Id: I8780c3235e87b4936c6daf64d9d299b22b6e1260
Fixes: #3608
9 years agoMerge "Add raise/raiseload relationship loading strategy"
mike bayer [Tue, 19 Apr 2016 17:44:51 +0000 (13:44 -0400)] 
Merge "Add raise/raiseload relationship loading strategy"

9 years agoAdd raise/raiseload relationship loading strategy
Adrian Moennich [Tue, 12 Apr 2016 03:15:15 +0000 (23:15 -0400)] 
Add raise/raiseload relationship loading strategy

Fixes: #3512
Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: Ibd126c50eda621e2f4120ee378f7313af2d7ec3c
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/193

9 years agoPropagate hybrid properties / info
Mike Bayer [Mon, 18 Apr 2016 20:18:31 +0000 (16:18 -0400)] 
Propagate hybrid properties / info

Keystone and others depend on the .property attribute being
"mirrored" when a @hybrid_property is linked directly to a
mapped attribute.  Restore this linkage and also create a defined
behavior for the .info dictionary; it is that of the hybrid itself.
Add this behavioral change to the migration notes.

Change-Id: I8ac34ef52039387230c648866c5ca15d381f7fee
References: #3653

9 years agoHonor hybrid property / method docstrings
Mike Bayer [Sun, 10 Apr 2016 18:56:01 +0000 (14:56 -0400)] 
Honor hybrid property / method docstrings

The docstring specified on a hybrid property or method is now honored
at the class level, allowing it to work with tools like Sphinx
autodoc.  The mechanics here necessarily involve some wrapping of
expressions to occur for hybrid properties, which may cause them
to appear differently using introspection.

Fixes: #3653
Change-Id: I02549977fe8b2a051802eed7b00cc532fbc214e3
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/239

9 years agoMerge "- Add support for PostgreSQL with PyGreSQL"
mike bayer [Fri, 15 Apr 2016 16:47:33 +0000 (12:47 -0400)] 
Merge "- Add support for PostgreSQL with PyGreSQL"

9 years ago- Add support for PostgreSQL with PyGreSQL
Christoph Zwerschke [Tue, 12 Apr 2016 03:15:25 +0000 (23:15 -0400)] 
- Add support for PostgreSQL with PyGreSQL

Change-Id: I040b75ff3b4110e7e8b26442a4eb226ba8c26715
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/234

9 years ago- .gitreview default branch
Mike Bayer [Tue, 12 Apr 2016 21:28:56 +0000 (17:28 -0400)] 
- .gitreview default branch

Change-Id: I7c70b2a4f92dbed5924e2592b204434e09fae007

9 years agoMerge remote-tracking branch 'origin/pr/257'
Mike Bayer [Sat, 9 Apr 2016 01:42:11 +0000 (21:42 -0400)] 
Merge remote-tracking branch 'origin/pr/257'

9 years agoMention the correct way of adding multiple attributes which refer to the same column
Eoghan Murray [Thu, 7 Apr 2016 10:57:14 +0000 (11:57 +0100)] 
Mention the correct way of adding multiple attributes which refer to the same column

9 years agoFix typo from "addreses" to "addresses"
Rachid Belaid [Thu, 7 Apr 2016 03:41:14 +0000 (20:41 -0700)] 
Fix typo from "addreses" to "addresses"

9 years agoMerge "- don't load deferred columns on unexpire for merge with load=False, fixes...
mike bayer [Wed, 6 Apr 2016 17:32:10 +0000 (13:32 -0400)] 
Merge "- don't load deferred columns on unexpire for merge with load=False, fixes #3488"

9 years ago- don't load deferred columns on unexpire for merge with load=False,
Diana Clarke [Tue, 5 Apr 2016 22:58:21 +0000 (18:58 -0400)] 
- don't load deferred columns on unexpire for merge with load=False,
fixes #3488

Change-Id: Ic9577b800e4a4e2465ec7f3a2e95bd231f5337ee
Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com>
9 years agoMerge remote-tracking branch 'origin/pr/255'
Mike Bayer [Wed, 6 Apr 2016 13:59:35 +0000 (09:59 -0400)] 
Merge remote-tracking branch 'origin/pr/255'

9 years ago- Move review to gerrit.sqlalchemy.org
Mike Bayer [Wed, 6 Apr 2016 13:35:18 +0000 (09:35 -0400)] 
- Move review to gerrit.sqlalchemy.org

Change-Id: Id6e9014cfa8ad558b2f3e90815616f9c26dc884d

9 years agoFix some broken links in docs
Ville Skyttä [Mon, 4 Apr 2016 10:46:07 +0000 (13:46 +0300)] 
Fix some broken links in docs

9 years ago- Add a git review file
Mike Bayer [Thu, 31 Mar 2016 19:24:14 +0000 (15:24 -0400)] 
- Add a git review file

Change-Id: Ib19e9ee0854f0d123ea625fb976f1a398cf88c87

9 years ago- callcount refresh due to negative indexes change for nocext
Mike Bayer [Thu, 31 Mar 2016 13:55:20 +0000 (09:55 -0400)] 
- callcount refresh due to negative indexes change for nocext

9 years ago- limit this to sqlite for now
Mike Bayer [Wed, 30 Mar 2016 22:59:01 +0000 (18:59 -0400)] 
- limit this to sqlite for now

9 years ago- move all resultproxy tests intio test_resultset
Mike Bayer [Wed, 30 Mar 2016 21:36:03 +0000 (17:36 -0400)] 
- move all resultproxy tests intio test_resultset

9 years ago- make sure negative row indexes are based on the size of the
Mike Bayer [Wed, 30 Mar 2016 21:27:53 +0000 (17:27 -0400)] 
- make sure negative row indexes are based on the size of the
number of columns we're actually reporting on
- add more tests for negative row index
- changelog/migration

9 years agoMerge remote-tracking branch 'origin/pr/231' into pr231
Mike Bayer [Wed, 30 Mar 2016 21:05:30 +0000 (17:05 -0400)] 
Merge remote-tracking branch 'origin/pr/231' into pr231

9 years agoDocstring Fix
Patrick [Wed, 30 Mar 2016 20:45:40 +0000 (21:45 +0100)] 
Docstring Fix

Change the docstring in short_selects example to match the code

9 years ago- changelog for #3629, fixes #3629
Mike Bayer [Wed, 30 Mar 2016 20:32:55 +0000 (16:32 -0400)] 
- changelog for #3629, fixes #3629

9 years agoMerge remote-tracking branch 'origin/pr/230'
Mike Bayer [Wed, 30 Mar 2016 20:25:41 +0000 (16:25 -0400)] 
Merge remote-tracking branch 'origin/pr/230'

9 years agoredundant "using the by changing" -> "using the"
NestorTejero [Wed, 30 Mar 2016 06:48:48 +0000 (08:48 +0200)] 
redundant "using the by changing" -> "using the"

9 years ago- Added :meth:`.Select.lateral` and related constructs to allow
Mike Bayer [Tue, 29 Mar 2016 21:56:02 +0000 (17:56 -0400)] 
- Added :meth:`.Select.lateral` and related constructs to allow
for the SQL standard LATERAL keyword, currently only supported
by Postgresql.  fixes #2857

9 years ago- Added support for rendering "FULL OUTER JOIN" to both Core and ORM.
Mike Bayer [Mon, 28 Mar 2016 15:50:09 +0000 (11:50 -0400)] 
- Added support for rendering "FULL OUTER JOIN" to both Core and ORM.
Pull request courtesy Stefan Urbanek.  fixes #1957

9 years ago- remember to not reassign self.connection now that __connect()
Mike Bayer [Fri, 25 Mar 2016 23:33:15 +0000 (19:33 -0400)] 
- remember to not reassign self.connection now that __connect()
has no return value

9 years ago- Added connection pool events :meth:`ConnectionEvents.close`,
Mike Bayer [Fri, 25 Mar 2016 22:31:17 +0000 (18:31 -0400)] 
- Added connection pool events :meth:`ConnectionEvents.close`,
:meth:`.ConnectionEvents.detach`,
:meth:`.ConnectionEvents.close_detached`.

9 years ago- oracle doesn't release savepoints
Mike Bayer [Thu, 24 Mar 2016 15:18:53 +0000 (11:18 -0400)] 
- oracle doesn't release savepoints

9 years ago- Further continuing on the common MySQL exception case of
Mike Bayer [Wed, 23 Mar 2016 20:54:03 +0000 (16:54 -0400)] 
- Further continuing on the common MySQL exception case of
a savepoint being cancelled first covered in :ticket:`2696`,
the failure mode in which the :class:`.Session` is placed when a
SAVEPOINT vanishes before rollback has been improved to allow the
:class:`.Session` to still function outside of that savepoint.
It is assumed that the savepoint operation failed and was cancelled.
fixes #3680

9 years agoMerge remote-tracking branch 'origin/pr/251'
Mike Bayer [Mon, 21 Mar 2016 15:05:40 +0000 (11:05 -0400)] 
Merge remote-tracking branch 'origin/pr/251'

9 years ago- Fixed bug where the negation of an EXISTS expression would not
Mike Bayer [Mon, 21 Mar 2016 14:57:40 +0000 (10:57 -0400)] 
- Fixed bug where the negation of an EXISTS expression would not
be properly typed as boolean in the result, and also would fail to be
anonymously aliased in a SELECT list as is the case with a
non-negated EXISTS construct.
fixes #3682

9 years agoReST fix: missing backtick
Marius Gedminas [Mon, 21 Mar 2016 10:00:49 +0000 (12:00 +0200)] 
ReST fix: missing backtick

Fixes a misrendering at http://docs.sqlalchemy.org/en/latest/dialects/mssql.html#nullability:

9 years agoFix typo
Benjamin Dopplinger [Wed, 16 Mar 2016 03:30:04 +0000 (14:30 +1100)] 
Fix typo

9 years ago- ensure engine is restored even if we had a failure in cleanup
Mike Bayer [Tue, 15 Mar 2016 22:01:23 +0000 (18:01 -0400)] 
- ensure engine is restored even if we had a failure in cleanup
for stray connection

9 years ago- Added basic isolation level support to the SQL Server dialects
Mike Bayer [Tue, 15 Mar 2016 21:47:34 +0000 (17:47 -0400)] 
- Added basic isolation level support to the SQL Server dialects
via :paramref:`.create_engine.isolation_level` and
:paramref:`.Connection.execution_options.isolation_level`
parameters.  fixes #3534

9 years ago- changelog and docs for #3332, fixes #3332
Mike Bayer [Tue, 15 Mar 2016 21:11:08 +0000 (17:11 -0400)] 
- changelog and docs for #3332, fixes #3332
- make docs for isolation level more consistent between postgresql
and mysql
- move mysql autocommit tests

9 years agoMerge branch 'master' into pr157
Mike Bayer [Tue, 15 Mar 2016 20:41:17 +0000 (16:41 -0400)] 
Merge branch 'master' into pr157

9 years ago- add notes for pyodbc limitations with rowcount fixes #3675
Mike Bayer [Tue, 15 Mar 2016 15:16:21 +0000 (11:16 -0400)] 
- add notes for pyodbc limitations with rowcount fixes #3675

9 years ago- Fixed bug where a newly inserted instance that is rolled back
Mike Bayer [Mon, 14 Mar 2016 21:56:57 +0000 (17:56 -0400)] 
- Fixed bug where a newly inserted instance that is rolled back
would still potentially cause persistence conflicts on the next
transaction, because the instance would not be checked that it
was expired.   This fix will resolve a large class of cases that
erronously cause the "New instance with identity X conflicts with
persistent instance Y" error.
fixes #3677

9 years agoAdds documentation to Query.slice().
jfinkels [Sun, 13 Mar 2016 19:40:11 +0000 (15:40 -0400)] 
Adds documentation to Query.slice().

9 years agoUpdate cascades.rst
falkerson [Wed, 9 Mar 2016 07:56:30 +0000 (09:56 +0200)] 
Update cascades.rst

9 years ago- skip GC tests here when coverage is enabled, seems to interfere
Mike Bayer [Tue, 8 Mar 2016 14:28:44 +0000 (09:28 -0500)] 
- skip GC tests here when coverage is enabled, seems to interfere

9 years ago- not sure why MySQL DROP DBs fail but we can't just ignore the error
Mike Bayer [Thu, 3 Mar 2016 15:50:18 +0000 (10:50 -0500)] 
- not sure why MySQL DROP DBs fail but we can't just ignore the error
like this

9 years ago- move out unconsumed names tests from test_compiler out to test_insert, test_update
Mike Bayer [Thu, 3 Mar 2016 01:24:49 +0000 (20:24 -0500)] 
- move out unconsumed names tests from test_compiler out to test_insert, test_update
- establish consistent names between existing unconsumed names tests and new ones
added per ref #3666

9 years ago- changelog for #3666, fixes #3666
Mike Bayer [Thu, 3 Mar 2016 01:13:42 +0000 (20:13 -0500)] 
- changelog for #3666, fixes #3666

9 years agoAdd test for inserting multiple values
Athena Yao [Wed, 2 Mar 2016 19:43:09 +0000 (11:43 -0800)] 
Add test for inserting multiple values

9 years agoRaise exception when we have multiple values with an unknown column. Fixes #3666.
Athena Yao [Wed, 2 Mar 2016 19:14:29 +0000 (11:14 -0800)] 
Raise exception when we have multiple values with an unknown column. Fixes #3666.

9 years ago- unfortunately calling upon "_label" here makes it unclear if
Mike Bayer [Fri, 26 Feb 2016 16:27:12 +0000 (11:27 -0500)] 
- unfortunately calling upon "_label" here makes it unclear if
we're trying to hit columns without names yet and such, to suit the bug
right now just make it specific to FunctionElement

(cherry picked from commit 785224a92f39bd5bdd05bbc66f4dd79736abded5)

9 years ago- Anonymous labeling is applied to a :attr:`.func` construct that is
Mike Bayer [Fri, 26 Feb 2016 05:20:39 +0000 (00:20 -0500)] 
- Anonymous labeling is applied to a :attr:`.func` construct that is
passed to :func:`.column_property`, so that if the same attribute
is referred to as a column expression twice the names are de-duped,
thus avoiding "ambiguous column" errors.   Previously, the
``.label(None)`` would need to be applied in order for the name
to be de-anonymized.
fixes #3663

9 years ago- An improvement to the workings of :meth:`.Query.correlate` such
Mike Bayer [Fri, 26 Feb 2016 04:22:30 +0000 (23:22 -0500)] 
- An improvement to the workings of :meth:`.Query.correlate` such
that when a "polymorphic" entity is used which represents a straight
join of several tables, the statement will ensure that all the
tables within the join are part of what's correlating.
fixes #3662

9 years ago- additional adjustment to the fix made in 8ad968f33100baeb3b13c7e0b724b6b79ab4277f
Mike Bayer [Mon, 22 Feb 2016 03:46:31 +0000 (22:46 -0500)] 
- additional adjustment to the fix made in 8ad968f33100baeb3b13c7e0b724b6b79ab4277f
for ref #3657.  The Oracle dialect makes more use of the "select_wraps_for"
feature than SQL server because Oracle doesn't have "TOP" for a limit-only
select, so tests are showing more happening here.  In the case where
the select() has some dupe columns, these are deduped from the .c collection
so a positional match between the wrapper and original can't use .inner_columns,
because these collections wont match.  Using _columns_plus_names
instead which is the deduped collection that determines the SELECT display,
which definitely have to match up.

(cherry picked from commit aa9ce3f521f254da9879ede011e520ec35b8270e)

9 years ago- Fixed bug in "to_list" conversion where a single bytes object
Mike Bayer [Mon, 22 Feb 2016 01:52:43 +0000 (20:52 -0500)] 
- Fixed bug in "to_list" conversion where a single bytes object
would be turned into a list of individual characters.  This would
impact among other things using the :meth:`.Query.get` method
on a primary key that's a bytes object.
fixes #3660