]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
9 years agoMerge "Add IS (NOT) DISTINCT FROM operators"
mike bayer [Mon, 6 Jun 2016 19:57:06 +0000 (15:57 -0400)] 
Merge "Add IS (NOT) DISTINCT FROM operators"

9 years agoMerge "Replace some uses of re.sub with str.lstrip/replace"
mike bayer [Mon, 6 Jun 2016 19:54:53 +0000 (15:54 -0400)] 
Merge "Replace some uses of re.sub with str.lstrip/replace"

9 years agoAdd IS (NOT) DISTINCT FROM operators
Sebastian Bank [Tue, 12 Apr 2016 03:16:32 +0000 (23:16 -0400)] 
Add IS (NOT) DISTINCT FROM operators

None / True / False render as literals.
For SQLite, "IS" is used as SQLite lacks
"IS DISTINCT FROM" but its "IS" operator acts
this way for NULL.

Doctext-author: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: I9227b81f7207b42627a0349d14d40b46aa756cce
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/248

9 years agoAllow creating explicit non-clustered keys and indexes MS SQL.
Saulius Žemaitaitis [Tue, 12 Apr 2016 03:16:45 +0000 (23:16 -0400)] 
Allow creating explicit non-clustered keys and indexes MS SQL.

mssql_clustered=False on Index, UniqueConstraint,
PrimaryKeyConstraint now renders NONCLUSTERED.
The default of mssql_clustered is now None.

Co-Authored-By: mike bayer <mike_mp@zzzcomputing.com>
Change-Id: Id6b8d840e355be8f8fa72360cb4b6d2617ba72cf
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/252

9 years agoReplace some uses of re.sub with str.lstrip/replace
Ville Skyttä [Mon, 6 Jun 2016 16:37:31 +0000 (12:37 -0400)] 
Replace some uses of re.sub with str.lstrip/replace

Change-Id: I98cd60b6830ee94e39ba9307523a9e8fb93bf4e8
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/280

9 years ago- further adjustment to accomodate for the "ON" in "NO ACTION"
Mike Bayer [Sat, 4 Jun 2016 00:54:48 +0000 (20:54 -0400)] 
- further adjustment to accomodate for the "ON" in "NO ACTION"

Change-Id: I734e4aec3701d7cf17813b561a1418cfeff1d473

9 years ago- missing test_needs_fk for this test, fixes mysql failure
Mike Bayer [Fri, 3 Jun 2016 20:44:12 +0000 (16:44 -0400)] 
- missing test_needs_fk for this test, fixes mysql failure

Change-Id: I2dc6961f9b692a8bb6bfb2296d159df145dec679

9 years agoEnsure "options" present for unnamed / unlocatable FK
Mike Bayer [Fri, 3 Jun 2016 19:57:16 +0000 (15:57 -0400)] 
Ensure "options" present for unnamed / unlocatable FK

Also ensure the regular expression and subsequent matching
is case insensitive, add more tests

Change-Id: Ie4aa971dcbffca94e78965e22982478eccbf8597

9 years agoEnsure 'options' is always present in foreign key info
Mike Bayer [Fri, 3 Jun 2016 19:07:14 +0000 (15:07 -0400)] 
Ensure 'options' is always present in foreign key info

Regarding 0e88bcc30ed49193b91f248123f526fa30007f22, "options"
needs to be present as a key in the dictionary because Alembic
uses this as a guide to know if the backend is even capable of
reporting on foreign key options.

Change-Id: I271090f75088cfeec24315a878060f9b8a265335

9 years agoMerge "Add SKIP LOCKED support for Postgresql, Oracle"
mike bayer [Fri, 3 Jun 2016 14:56:06 +0000 (10:56 -0400)] 
Merge "Add SKIP LOCKED support for Postgresql, Oracle"

9 years agoMerge "Reflect ON DELETE and ON UPDATE for SQLite foreign keys"
mike bayer [Fri, 3 Jun 2016 14:55:54 +0000 (10:55 -0400)] 
Merge "Reflect ON DELETE and ON UPDATE for SQLite foreign keys"

9 years ago- use a mock here, do away with timing problems for good. need to do this
Mike Bayer [Thu, 2 Jun 2016 22:40:46 +0000 (18:40 -0400)] 
- use a mock here, do away with timing problems for good.  need to do this
for the rest of the timing tests

Change-Id: I06a815b1500222126a4dbc2a9a5da3ef7847e321

9 years agoReflect ON DELETE and ON UPDATE for SQLite foreign keys
Michal Petrucha [Tue, 12 Apr 2016 03:16:24 +0000 (23:16 -0400)] 
Reflect ON DELETE and ON UPDATE for SQLite foreign keys

Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: Icd77ddbf851b1950f767022d67c8142b1b3c50f3
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/244

9 years agoMerge "Add schema argument to AutomapBase.prepare()"
mike bayer [Thu, 2 Jun 2016 21:48:13 +0000 (17:48 -0400)] 
Merge "Add schema argument to AutomapBase.prepare()"

9 years agoMerge "Add an init_scalar event for attributes"
mike bayer [Thu, 2 Jun 2016 21:47:37 +0000 (17:47 -0400)] 
Merge "Add an init_scalar event for attributes"

9 years agoAdd SKIP LOCKED support for Postgresql, Oracle
Jack Zhou [Tue, 31 May 2016 14:01:46 +0000 (10:01 -0400)] 
Add SKIP LOCKED support for Postgresql, Oracle

This adds `SELECT ... FOR UPDATE SKIP LOCKED`/
`SELECT ... FOR SHARE SKIP LOCKED` rendering.

Change-Id: Id1dc4f1cafc1de23f397a6f73d54ab2c58d5910d
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/86

9 years ago- limit oracle DB reaps to identifiers generated from this
Mike Bayer [Thu, 2 Jun 2016 21:42:51 +0000 (17:42 -0400)] 
- limit oracle DB reaps to identifiers generated from this
run to prevent race conditions against concurrent runs

Change-Id: I065d1cec346ea7af03792c3cc2f30766f73c2bd3

9 years agoMerge "Skip UniqueConstraint marked by unique=True in tometadata"
mike bayer [Thu, 2 Jun 2016 18:42:38 +0000 (14:42 -0400)] 
Merge "Skip UniqueConstraint marked by unique=True in tometadata"

9 years agoAdd an init_scalar event for attributes
Mike Bayer [Thu, 11 Jun 2015 03:38:15 +0000 (23:38 -0400)] 
Add an init_scalar event for attributes

This allows us to build default-setting recipes such
as one that allows us to actively read column-level
defaults.  An example suite is also added.

Change-Id: I7b022d52cc89526132d5bc4201ac27fea4cf088d
Fixes: #1311
9 years agoAdd schema argument to AutomapBase.prepare()
Josh Marlow [Tue, 12 Apr 2016 03:16:12 +0000 (23:16 -0400)] 
Add schema argument to AutomapBase.prepare()

This allows automap to reflect tables from a schema other than the
default without the need to resort to calling MetaData.reflect
directly.

Change-Id: Ie73cb113bd6d115555c09c5efc33d27ad2c9c512
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/237

9 years agoMerge "Add postgresql_tablespace option on Index"
mike bayer [Thu, 2 Jun 2016 17:57:24 +0000 (13:57 -0400)] 
Merge "Add postgresql_tablespace option on Index"

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 agoAdd postgresql_tablespace option on Index
beenje [Tue, 12 Apr 2016 03:15:35 +0000 (23:15 -0400)] 
Add postgresql_tablespace option on Index

This complements the same-named parameter
available on Table.

Fixes: #3720
Change-Id: I56e081e2a551f37c3f392ca4b301c9ef82b94e59
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/233

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'