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

9 years ago- update the mssql autoincrement reflection test to accommodate
Mike Bayer [Sun, 21 Feb 2016 01:43:36 +0000 (20:43 -0500)] 
- update the mssql autoincrement reflection test to accommodate
the new behavior of the autoincrement flag as per ref #3216

9 years ago- reworked the way the "select_wraps_for" expression is
Mike Bayer [Sun, 21 Feb 2016 01:22:38 +0000 (20:22 -0500)] 
- reworked the way the "select_wraps_for" expression is
handled within visit_select(); this attribute was added in the
1.0 series to accommodate the subquery wrapping behavior of
SQL Server and Oracle while also working with positional
column targeting and no longer relying upon "key fallback"
in order to target columns in such a statement.  The IBM DB2
third-party dialect also has this use case, but its implementation
is using regular expressions to rewrite the textual SELECT only
and does not make use of a "wrapped" select at this time.
The logic no longer attempts to reconcile proxy set collections as
this was not deterministic, and instead assumes that the select()
and the wrapper select() match their columns postionally,
at least for the column positions they have in common,
so it is now very simple and safe.  fixes #3657.
- as a side effect of #3657 it was also revealed that the
strategy of calling upon a ResultProxy._getter was not
correctly calling into NoSuchColumnError when an expected
column was not present, and instead returned None up to
loading.instances() to produce NoneType failures; added
a raiseerr argument to _getter() which is called when we
aren't expecting None, fixes #3658.

9 years agoAdd release date for 1.0.12 to changelog
Jeff Widman [Fri, 19 Feb 2016 17:59:47 +0000 (09:59 -0800)] 
Add release date for 1.0.12 to changelog

9 years ago- further edit the unnest() example to suit PG's esoteric requirements
Mike Bayer [Thu, 18 Feb 2016 16:33:19 +0000 (11:33 -0500)] 
- further edit the unnest() example to suit PG's esoteric requirements
exactly

9 years ago- Fixed bug which would cause an eagerly loaded many-to-one attribute
Mike Bayer [Wed, 17 Feb 2016 22:54:43 +0000 (17:54 -0500)] 
- Fixed bug which would cause an eagerly loaded many-to-one attribute
to not be loaded, if the joined eager load were from a row where the
same entity were present multiple times, some calling for the attribute
to be eagerly loaded and others not.  The logic here is revised to
take in the attribute even though a different loader path has
handled the parent entity already. fixes #3431

9 years ago- handle parameter sets that aren't correctly formed, so that
Mike Bayer [Wed, 17 Feb 2016 21:53:01 +0000 (16:53 -0500)] 
- handle parameter sets that aren't correctly formed, so that
for example an exception object made within a test suite can
still repr (error seen in Keystone)

9 years ago- do the trailing comma logic of tuple repr() exactly
Mike Bayer [Wed, 17 Feb 2016 20:21:00 +0000 (15:21 -0500)] 
- do the trailing comma logic of tuple repr() exactly

9 years ago- All string formatting of bound parameter sets and result rows for
Mike Bayer [Wed, 17 Feb 2016 18:31:29 +0000 (13:31 -0500)] 
- All string formatting of bound parameter sets and result rows for
logging, exception, and  ``repr()`` purposes now truncate very large
scalar values within each collection, including an
"N characters truncated"
notation, similar to how the display for large multiple-parameter sets
are themselves truncated.
fixes #2837

9 years ago- add changelog, migration, version flags and some extra notes
Mike Bayer [Tue, 16 Feb 2016 20:50:25 +0000 (15:50 -0500)] 
- add changelog, migration, version flags and some extra notes
to the new MutableList and MutableSet classes, fixes #3297

9 years agoMerge remote-tracking branch 'origin/pr/236'
Mike Bayer [Tue, 16 Feb 2016 20:43:22 +0000 (15:43 -0500)] 
Merge remote-tracking branch 'origin/pr/236'

9 years ago- use same colname as the alias we give to the PG function
Mike Bayer [Tue, 16 Feb 2016 15:05:58 +0000 (10:05 -0500)] 
- use same colname as the alias we give to the PG function
here, fixes #3652

9 years agoAdd `sqlalchemy.ext.mutable.MutableSet`
Jeong YunWon [Sat, 13 Feb 2016 10:20:12 +0000 (19:20 +0900)] 
Add `sqlalchemy.ext.mutable.MutableSet`

from https://bitbucket.org/zzzeek/sqlalchemy/issues/3297

9 years agoAdd `sqlalchemy.ext.mutable.MutableList`
Jeong YunWon [Sat, 13 Feb 2016 09:44:30 +0000 (18:44 +0900)] 
Add `sqlalchemy.ext.mutable.MutableList`

9 years ago- Fixed bug in :meth:`.Session.merge` where an object with a composite
Mike Bayer [Fri, 12 Feb 2016 03:29:18 +0000 (22:29 -0500)] 
- Fixed bug in :meth:`.Session.merge` where an object with a composite
primary key that has values for some but not all of the PK fields
would emit a SELECT statement leaking the internal NEVER_SET symbol
into the query, rather than detecting that this object does not have
a searchable primary key and no SELECT should be emitted.
fixes #3647

9 years ago- CTE functionality has been expanded to support all DML, allowing
Mike Bayer [Thu, 11 Feb 2016 17:12:19 +0000 (12:12 -0500)] 
- CTE functionality has been expanded to support all DML, allowing
INSERT, UPDATE, and DELETE statements to both specify their own
WITH clause, as well as for these statements themselves to be
CTE expressions when they include a RETURNING clause.
fixes #2551

9 years ago- add more documentation to MutableDict explaining
Mike Bayer [Wed, 10 Feb 2016 15:17:45 +0000 (10:17 -0500)] 
- add more documentation to MutableDict explaining
that this structure is only intended to track additions
and removals from the dictionary, not recursive tracking
of embedded changes.  fixes #3646.

9 years ago- don't drop the ts1/ts2 databases without seeing the primary DB,
Mike Bayer [Wed, 10 Feb 2016 02:08:21 +0000 (21:08 -0500)] 
- don't drop the ts1/ts2 databases without seeing the primary DB,
because we never log in on the ts1/ts2.  races against other runs
and erases their DBs

9 years ago- Fixed bug in :func:`.expression.text` construct where a double-colon
Mike Bayer [Tue, 9 Feb 2016 23:05:40 +0000 (18:05 -0500)] 
- Fixed bug in :func:`.expression.text` construct where a double-colon
expression would not escape properly, e.g. ``some\:\:expr``, as is most
commonly required when rendering Postgresql-style CAST expressions.
fixes #3644

9 years ago- A refinement to the logic which adds columns to the resulting SQL when
Mike Bayer [Tue, 9 Feb 2016 22:49:38 +0000 (17:49 -0500)] 
- A refinement to the logic which adds columns to the resulting SQL when
:meth:`.Query.distinct` is combined with :meth:`.Query.order_by` such
that columns which are already present will not be added
a second time, even if they are labeled with a different name.
Regardless of this change, the extra columns added to the SQL have
never been returned in the final result, so this change only impacts
the string form of the statement as well as its behavior when used in
a Core execution context.   Additionally, columns are no longer added
when the DISTINCT ON format is used, provided the query is not
wrapped inside a subquery due to joined eager loading.
fixes #3641

9 years ago- switch to 2 workers for oracle
Mike Bayer [Tue, 9 Feb 2016 15:17:10 +0000 (10:17 -0500)] 
- switch to 2 workers for oracle

9 years ago- Testing reveals that we have *no* weak references to any cx_Oracle connections...
Mike Bayer [Tue, 9 Feb 2016 03:57:02 +0000 (22:57 -0500)] 
- Testing reveals that we have *no* weak references to any cx_Oracle connections at all,
yet cx_Oracle still has open sessions that cannot be killed until process dies.
Oracle wins!   Add a completely separate DB reaper script that runs
after py.test is done.

9 years ago- use config-based test schema
Mike Bayer [Tue, 9 Feb 2016 03:56:02 +0000 (22:56 -0500)] 
- use config-based test schema

9 years ago- attempt a different style of session kill
Mike Bayer [Tue, 9 Feb 2016 00:49:47 +0000 (19:49 -0500)] 
- attempt a different style of session kill

9 years ago- fully hyperlink the docstring for make_transient
Mike Bayer [Mon, 8 Feb 2016 23:05:51 +0000 (18:05 -0500)] 
- fully hyperlink the docstring for make_transient
- establish make_transient and make_transient_to_detached as special-use,
advanced use only functions
- list all conditions under make_transient() under which an attribute
will not be loaded and establish that make_transient() does not attempt
to load all attributes before detaching the object from its
session, fixes #3640

9 years ago- additional fixes to get oracle + multiprocess to be reliable
Mike Bayer [Mon, 8 Feb 2016 21:27:55 +0000 (16:27 -0500)] 
- additional fixes to get oracle + multiprocess to be reliable

9 years ago- py3k fix for enum feature
Mike Bayer [Mon, 8 Feb 2016 21:27:44 +0000 (16:27 -0500)] 
- py3k fix for enum feature