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

(cherry picked from commit e6251c3e40e623aaadc7356c0b3c94101710079c)

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

(cherry picked from commit 1322edc7b1effb5bad411742b997cb2103eedfc2)

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
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.
(cherry picked from commit 8aa7369125f831a74c9f024ce5dde73ecf812e63)

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
(cherry picked from commit f3bc60bdd809235cbeb3f414717ac0e273269cf9)

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
9 years ago - don't use --dropfirst when we are using ad-hoc DBs. dropfirst
Mike Bayer [Sun, 24 Apr 2016 18:46:27 +0000 (14:46 -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
(cherry picked from commit 1f3e5d9826fe989f2212745f6b3592b2ef9b5e32)

9 years agoUpdate tutorial.rst
Ethan [Wed, 20 Apr 2016 15:20:06 +0000 (10:20 -0500)] 
Update tutorial.rst

Fix very minor typo

9 years ago- default branch rel_1_0
Mike Bayer [Tue, 12 Apr 2016 21:29:38 +0000 (17:29 -0400)] 
- default branch rel_1_0

Change-Id: I3f42b9f9571ad7f75e1f4b5fac6944ea2f186b4b

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

(cherry picked from commit 2880f24d93a774d02cde83dbabfd80ad279cbb05)

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"

(cherry picked from commit c8db0862c102281da617d395b1826ff523af302e)

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

(cherry picked from commit b1c9b3bd384fc40e1c411abef12eaf04b574612f)

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
(cherry picked from commit be7322b3da8e412bd2376c3ce836ead589d1ad31)

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
(cherry picked from commit fdb6ab6a1d5d55d900c388e039835c6433032977)

9 years ago- move all resultproxy tests intio test_resultset, adapted from
Mike Bayer [Wed, 30 Mar 2016 21:44:04 +0000 (17:44 -0400)] 
- move all resultproxy tests intio test_resultset, adapted from
03d35a833cff68013781640b1192d079ab7e1154 in master (not cherry-picked)

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

(cherry picked from commit 4a3205df84b737f5fe55914fe22eef7264f20764)

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"
(cherry picked from commit 9bdbf19d54174c1077689bc472dc088c9b06aa24)

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:
(cherry picked from commit e3abb63293be80379d20b4c3f0d1cd093459a9eb)

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

(cherry picked from commit 07a4b6cbcda6e6ee6e67893c5a5d2fd01e5f125f)

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

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

(cherry picked from commit edbb32649960db29761e765fc74c025e9999c7dd)

9 years ago- backport doc improvements from 31f96c27a5fea302358ba580313a2f742c12b83d re:
Mike Bayer [Tue, 15 Mar 2016 21:21:05 +0000 (17:21 -0400)] 
- backport doc improvements from 31f96c27a5fea302358ba580313a2f742c12b83d re:
isolation_level settings for postgresql, mysql

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

(cherry picked from commit 8bc370ed382a45654101fa34bac4a2886ce089c3)

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

(cherry picked from commit 6e5e64e27ef2c6a86c9aebdcefdf2cd726f1476a)

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

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

(cherry picked from commit be7f8e0b81106c21fa7956f0c27cf207375681c4)

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

(cherry picked from commit 0e7904e730c3d2b0d3a394ad60010158ee29050c)

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

(cherry picked from commit 6b7c207801d826db872aeda02e7c7b531df68034)

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

(cherry picked from commit 3d83e1639e1325af67d2bba390bd7c40838380b9)

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

(cherry picked from commit a1de176d23ee03724ce269d143790686f862b400)

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.

(cherry picked from commit 399f92cd116b747f742b919ac9a3e79eb0637e8a)

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

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

(cherry picked from commit 0210695bd97e76f58d8781b69337816501482fb0)

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.

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

(cherry picked from commit 01809bddff5b6e93010eb139aed54526c6e6c058)

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.

(cherry picked from commit 8ad968f33100baeb3b13c7e0b724b6b79ab4277f)

9 years ago- version bump
Mike Bayer [Sun, 21 Feb 2016 01:30:49 +0000 (20:30 -0500)] 
- version bump

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

(cherry picked from commit c97aa63789036fc145503f03123275253ae02d2c)

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

(cherry picked from commit e310a8e423d9a4eeb511b7b84dbeccc90c234a1f)

9 years ago- 1.0.12 rel_1_0_12
Mike Bayer [Mon, 15 Feb 2016 18:43:48 +0000 (13:43 -0500)] 
- 1.0.12

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

(cherry picked from commit 366f97b5617af0d15cfaf594ec5ef0408c70e873)

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.

(cherry picked from commit 287aaa9d416b4f72179da320af0624b9ebc43846)

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

(cherry picked from commit 3f1f1895ac99963da1a989c69c2dce59ae916ffc)

9 years ago- repair the fix just cherry-picked for ref #3644 as compiler.py wasn't
Mike Bayer [Tue, 9 Feb 2016 23:10:50 +0000 (18:10 -0500)] 
- repair the fix just cherry-picked for ref #3644 as compiler.py wasn't
present in the commit for master, having been inadvertently committed
on February 3.  Source of this line is c1316a299257fae8264c8038d83e415f4605fde7.

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

(cherry picked from commit 29dcaa2b0ae2d26b36ec624be80f56e03ab9095e)

9 years ago- repair generic _post_configure_engine() from previous changeset
Mike Bayer [Tue, 9 Feb 2016 19:02:47 +0000 (14:02 -0500)] 
- repair generic _post_configure_engine() from previous changeset

9 years ago- backport changes to SQLite attached DB tests so that
Mike Bayer [Tue, 9 Feb 2016 18:40:14 +0000 (13:40 -0500)] 
- backport changes to SQLite attached DB tests so that
we dont get file conflicts, cherry-pick from 5bb2536cc57c55c7d8c5901b5b622d18a9a6c646

9 years ago- backport new profile system from 1.1 so we can run new-style
Mike Bayer [Tue, 9 Feb 2016 17:11:57 +0000 (12:11 -0500)] 
- backport new profile system from 1.1 so we can run new-style
test envs on jenkins

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.

(cherry picked from commit 11a8440bc43aa9f7eb6f2cb7b7f43e0cf6680f41)

9 years ago- restore GLOBAL keyword here
Mike Bayer [Tue, 9 Feb 2016 16:26:13 +0000 (11:26 -0500)] 
- restore GLOBAL keyword here

9 years ago- add tox.ini from 1.1
Mike Bayer [Tue, 9 Feb 2016 15:56:47 +0000 (10:56 -0500)] 
- add tox.ini from 1.1

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

(cherry picked from commit 00a05e357b5bcc37c66256bc08c1198541475739)

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

(cherry picked from commit 7eff4e8f3e3999d9eb914647d8776e6e5b7ee88e)

9 years ago- add missing __backend__ directives so that oracle tests actually run with --backend...
Mike Bayer [Mon, 8 Feb 2016 19:16:40 +0000 (14:16 -0500)] 
- add missing __backend__ directives so that oracle tests actually run with --backend-only

(cherry picked from commit 860d07ff89a8fd8b6a4d3036837c0e129d6cc233)

9 years ago- detect "Enterprise" and assume compression stuff isn't available
Mike Bayer [Mon, 8 Feb 2016 19:08:03 +0000 (14:08 -0500)] 
- detect "Enterprise" and assume compression stuff isn't available
if not

(cherry picked from commit 308244a90b95d2b78ed8f76e3af0d0c3d2329720)

9 years ago- adjust the MultiSchemaTest to handle multiple test_schemas / processes at the
Mike Bayer [Mon, 8 Feb 2016 18:35:36 +0000 (13:35 -0500)] 
- adjust the MultiSchemaTest to handle multiple test_schemas / processes at the
same time

(cherry picked from commit 80853059a9f4bebfe41f9c340eddc2d6a86ef70f)

9 years ago- adjust to allow dblink tests to work with multiprocess users.
Mike Bayer [Mon, 8 Feb 2016 18:13:39 +0000 (13:13 -0500)] 
- adjust to allow dblink tests to work with multiprocess users.
unfortunately the synonym doesn't work for SQL statements here
when the dblink is on a different user, testing this is not really
critical so just removed it.

(cherry picked from commit 7e619d0be41afc3b6cd5e5fceba9dbc5f39b012d)

9 years ago- more oracle fixes
Mike Bayer [Thu, 4 Feb 2016 01:37:42 +0000 (20:37 -0500)] 
- more oracle fixes

(cherry picked from commit 93c5328e66d8491e73027f6e789df2255c4fa767)

9 years ago- add multi-database provisioning for oracle
Mike Bayer [Wed, 3 Feb 2016 23:26:00 +0000 (18:26 -0500)] 
- add multi-database provisioning for oracle

(cherry picked from commit c01d11907cbc98ddefe323c6115bc954b908f101)

9 years ago- add literal_binds for delete() statements in addition to insert()/update()
Mike Bayer [Wed, 3 Feb 2016 16:07:44 +0000 (11:07 -0500)] 
- add literal_binds for delete() statements in addition to insert()/update()
- move tests to CRUDTest
- changelog, fixes #3643

(cherry picked from commit 150591f9e0a94902cb2a76b68ac7c9d8a1a3ec83)

9 years agofix passing literal_binds flag through for update and insert
Tim Tate [Tue, 2 Feb 2016 23:20:02 +0000 (15:20 -0800)] 
fix passing literal_binds flag through for update and insert

(cherry picked from commit c9b03fa8afd52646aba8c59fc038330eeee6db60)

9 years ago- changelog for #3621 fixes #3621
Mike Bayer [Tue, 2 Feb 2016 22:29:42 +0000 (17:29 -0500)] 
- changelog for #3621 fixes #3621

(cherry picked from commit 9149fd062b8b5f4d84902b4581288ab991fd25ce)

9 years agoRemoved entry that causes AttributeError (#3621) - Oracle zxJDBC fails with Attribute...
Carlos Rivas [Sat, 23 Jan 2016 09:23:46 +0000 (09:23 +0000)] 
Removed entry that causes AttributeError (#3621) - Oracle zxJDBC fails with AttributeError in object OracleCompiler_zxjdbc
(cherry picked from commit edc0b8678bc06ae27fa0f7e80c3eb074978fbe10)

9 years ago- D rules seem to have been added overnight to the flake8 plugin
Mike Bayer [Tue, 2 Feb 2016 17:07:39 +0000 (12:07 -0500)] 
- D rules seem to have been added overnight to the flake8 plugin
I'm using and many of these seem contradictory and/or undesirable.
block all until individual rules can be approved.

9 years ago- Fixed issue where inadvertent use of the Python ``__contains__``
Mike Bayer [Tue, 2 Feb 2016 15:15:40 +0000 (10:15 -0500)] 
- Fixed issue where inadvertent use of the Python ``__contains__``
override with a column expression (e.g. by using ``'x' in col``)
would cause an endless loop in the case of an ARRAY type, as Python
defers this to ``__getitem__`` access which never raises for this
type.  Overall, all use of ``__contains__`` now raises
NotImplementedError.
fixes #3642

(cherry picked from commit e0a580b3d055a600afae61840058a5a30ef5fe74)

9 years ago- put a retry in for PG database provisioning as it locks
Mike Bayer [Fri, 29 Jan 2016 17:19:17 +0000 (12:19 -0500)] 
- put a retry in for PG database provisioning as it locks
on database use

(cherry picked from commit c8b3d4ed3f2638599fc73486cf0f724fa033a638)

9 years ago- happy new year
Mike Bayer [Fri, 29 Jan 2016 16:24:35 +0000 (11:24 -0500)] 
- happy new year

(cherry picked from commit 859379e2fcc4506d036700ba1eca4c0ae526a8ee)

9 years ago- use a StaticPool for componentreflectiontest to ensure
Mike Bayer [Thu, 28 Jan 2016 22:59:48 +0000 (17:59 -0500)] 
- use a StaticPool for componentreflectiontest to ensure
temp tables are reflectable on the same session they were
created

(cherry picked from commit 14b1e6fe8e18d139846c1aba6761d4eea3dc25c3)

9 years ago- use schema argument correctly when we are dropping for a schema
Mike Bayer [Thu, 28 Jan 2016 22:16:55 +0000 (17:16 -0500)] 
- use schema argument correctly when we are dropping for a schema

(cherry picked from commit 13dfc532ac02657d75da40cc52d97b3b50a6bcfe)

9 years ago- revert the change first made in a6fe4dc, as we are now generalizing
Mike Bayer [Thu, 28 Jan 2016 20:01:31 +0000 (15:01 -0500)] 
- revert the change first made in a6fe4dc, as we are now generalizing
the warning here to all safe_reraise() cases in Python 2.
- Revisiting :ticket:`2696`, first released in 1.0.10, which attempts to
work around Python 2's lack of exception context reporting by emitting
a warning for an exception that was interrupted by a second exception
when attempting to roll back the already-failed transaction; this
issue continues to occur for MySQL backends in conjunction with a
savepoint that gets unexpectedly lost, which then causes a
"no such savepoint" error when the rollback is attempted, obscuring
what the original condition was.

The approach has been generalized to the Core "safe
reraise" function which takes place across the ORM and Core in any
place that a transaction is being rolled back in response to an error
which occurred trying to commit, including the context managers
provided by :class:`.Session` and :class:`.Connection`, and taking
place for operations such as a failure on "RELEASE SAVEPOINT".
Previously, the fix was only in place for a specific path within
the ORM flush/commit process; it now takes place for all transational
context managers as well.
fixes #2696

(cherry picked from commit 8a1e619fb20df1be6ad2e0c563e451e17eb17628)

9 years agofix %x string format to compatible with Python 3.5
Ruilin Huang [Wed, 27 Jan 2016 08:21:59 +0000 (08:21 +0000)] 
fix %x string format to compatible with Python 3.5
(cherry picked from commit 4b9f6f407ceedde247982501a6ae406242c80b4a)

9 years agofix %x string format to compatible with Python 3.5
xghrl [Wed, 27 Jan 2016 08:10:06 +0000 (08:10 +0000)] 
fix %x string format to compatible with Python 3.5
(cherry picked from commit 324e532d6081d9b9ea90bf3945cecfc792264f8d)

9 years ago- unfortunately we need to match within join where col.key does not match
Mike Bayer [Tue, 26 Jan 2016 22:28:40 +0000 (17:28 -0500)] 
- unfortunately we need to match within join where col.key does not match
what's given so we need to use a set() here.  contains_column is not within
any performance paths

(cherry picked from commit 5742e321b261c0c1303835b80418cd3cdc1b5643)

9 years ago- rework ColumnCollection to no longer persist "all_col_set"; we don't
Mike Bayer [Tue, 26 Jan 2016 21:41:26 +0000 (16:41 -0500)] 
- rework ColumnCollection to no longer persist "all_col_set"; we don't
need this collection except in the extend/update uses where we
create it ad-hoc.  simplifies pickling.  Compatibility with 1.0
should be OK as ColumnColleciton uses __getstate__ in any case
and the __setstate__ contract hasn't changed.
- Fixed bug in :class:`.Table` metadata construct which appeared
around the 0.9 series where adding columns to a :class:`.Table`
that was unpickled would fail to correctly establish the
:class:`.Column` within the 'c' collection, leading to issues in
areas such as ORM configuration.   This could impact use cases such
as ``extend_existing`` and others.  fixes #3632

(cherry picked from commit 8163de4cc9e01460d3476b9fb3ed14a5b3e70bae)

9 years ago- fix array test that was essentially taking a weird guess
Mike Bayer [Sat, 23 Jan 2016 23:30:37 +0000 (18:30 -0500)] 
- fix array test that was essentially taking a weird guess
at the primary key of a row based on other tests invoking around it

9 years ago- fix stray connection
Mike Bayer [Sat, 23 Jan 2016 22:31:02 +0000 (17:31 -0500)] 
- fix stray connection

(cherry picked from commit 2419bfe34cd5a1f4ead67d556ba74f3f1950762b)

9 years ago- restate the "secondary" / AssociationProxy warning more strongly.
Mike Bayer [Sat, 23 Jan 2016 21:38:44 +0000 (16:38 -0500)] 
- restate the "secondary" / AssociationProxy warning more strongly.
references #3638

(cherry picked from commit 67a69da3aa86c8b2b560ed79a9c91408ad704879)

9 years ago- use uuid fragments for provision names to enable multiple test suites
Mike Bayer [Sat, 23 Jan 2016 19:58:42 +0000 (14:58 -0500)] 
- use uuid fragments for provision names to enable multiple test suites
per server

(cherry picked from commit 65010e97bca995657c2843f6aa8ad48bab370182)

9 years ago- native unicode expectations are too difficult to maintain
Mike Bayer [Sat, 23 Jan 2016 19:30:30 +0000 (14:30 -0500)] 
- native unicode expectations are too difficult to maintain
w/ the number of drivers /DBURIs /  python versions

(cherry picked from commit d18d6d9baf4c98c47af70c0a7c796423396a51c1)

9 years ago- move out match compiler test to test_compiler
Mike Bayer [Sat, 23 Jan 2016 19:29:25 +0000 (14:29 -0500)] 
- move out match compiler test to test_compiler
- test_query isn't assertscompiledsql

(cherry picked from commit 269313218ddd06a21387085295c553becbd00e46)

9 years ago- add missing IGNORE_EXCEPTION_DETAIL flag
Mike Bayer [Thu, 21 Jan 2016 22:30:56 +0000 (17:30 -0500)] 
- add missing IGNORE_EXCEPTION_DETAIL flag

9 years ago- add a forwards-test here as well
Mike Bayer [Thu, 21 Jan 2016 20:32:53 +0000 (15:32 -0500)] 
- add a forwards-test here as well

(cherry picked from commit 38958f7b3f3e6009c419ba8e021f2b14c1f2b89a)

9 years ago- documenation updates to clarify specific SQLite versions
Mike Bayer [Thu, 21 Jan 2016 20:21:33 +0000 (15:21 -0500)] 
- documenation updates to clarify specific SQLite versions
that have problems with right-nested joins and UNION column keys;
references #3633 references #3634.   backport from 1.1 to 0.9
announcing 1.1 as where these behaviors will be retired based
on version-specific checks
- fix test_resultset so that it passes when SQLite 3.10.0 is
present, references #3633

(cherry picked from commit 89fa08792e98b9e31452aa3c949d9b909b10e7cd)

9 years ago- generalize the verbiage on LargeBinary so that it doesn't
Mike Bayer [Wed, 20 Jan 2016 21:20:08 +0000 (16:20 -0500)] 
- generalize the verbiage on LargeBinary so that it doesn't
create confusion for inherited classes such as BYTEA, fixes

(cherry picked from commit 47d8858c54401cdf10285b7935049faf87432f55)

9 years ago- update oracle JDBC driver URL, fixes #3554
Mike Bayer [Wed, 20 Jan 2016 20:58:24 +0000 (15:58 -0500)] 
- update oracle JDBC driver URL, fixes #3554

(cherry picked from commit 24dba714cb56e1f5a4dca5453cc5f442e6ee08ab)

9 years ago- cross link for concrete helper classes
Mike Bayer [Wed, 20 Jan 2016 20:28:35 +0000 (15:28 -0500)] 
- cross link for concrete helper classes
- remove redundant concrete helper docs from declarative docs,
two places is enough

(cherry picked from commit a53bd6f74b4f41fd04c8cde1f8b58bbb766fe18d)

9 years ago- typo
Mike Bayer [Wed, 20 Jan 2016 19:03:29 +0000 (14:03 -0500)] 
- typo

(cherry picked from commit b53667526eb9b2fabccfb097a5b76906d6452249)

9 years ago- redo the docs for concrete inheritance to more strongly
Mike Bayer [Wed, 20 Jan 2016 18:34:57 +0000 (13:34 -0500)] 
- redo the docs for concrete inheritance to more strongly
favor declarative, fixes #2890

(cherry picked from commit 632c4f21fa3cab353b801f585183494c529c6896)

9 years ago- clarify the "Adding" section also illustrates updates, fixes #2942
Mike Bayer [Wed, 20 Jan 2016 17:22:17 +0000 (12:22 -0500)] 
- clarify the "Adding" section also illustrates updates, fixes #2942

(cherry picked from commit 02271efd8976154f855646478b5438db078f7101)

9 years ago- add a note that the literal_binds flag should be used
Mike Bayer [Wed, 20 Jan 2016 17:10:40 +0000 (12:10 -0500)] 
- add a note that the literal_binds flag should be used
when cross-compiling from DDL to SQL, fixes #3615

(cherry picked from commit 165fa15b0f9dbca50539aa7da377c5da5ac0fc79)

9 years agoFix ArrayOfEnum's handling of empty arrays.
Chase [Wed, 20 Jan 2016 06:36:15 +0000 (22:36 -0800)] 
Fix ArrayOfEnum's handling of empty arrays.

Prior to this change a value of `'{}'` would split into the list `['']`.
(cherry picked from commit a2badb751f09299c925bd96a9fd2e76acca04269)

9 years ago- Fixed bug where some exception re-raise scenarios would attach
Mike Bayer [Mon, 18 Jan 2016 22:35:44 +0000 (17:35 -0500)] 
- Fixed bug where some exception re-raise scenarios would attach
the exception to itself as the "cause"; while the Python 3 interpreter
is OK with this, it could cause endless loops in iPython.
fixes #3625
- add tests for reraise, raise_from_cause
- raise_from_cause is the same on py2k/3k, use just one function

(cherry picked from commit d4d9a6524886eb33644e8ce42212267fa569e555)

9 years agoFix typo in relationships docs
rmn [Sat, 16 Jan 2016 18:19:02 +0000 (21:19 +0300)] 
Fix typo in relationships docs

(cherry picked from commit f9b21855861c1c8983acc934fe47546d71a1df05)

9 years ago- fix People -> Person , fixes #3628
Mike Bayer [Sun, 17 Jan 2016 03:04:10 +0000 (22:04 -0500)] 
- fix People -> Person , fixes #3628

(cherry picked from commit 66560cef7457d69f56cd2ca3bab93cb033a61a84)

9 years ago- illustrate these using the newer exception doctest format.
Mike Bayer [Thu, 14 Jan 2016 23:20:00 +0000 (18:20 -0500)] 
- illustrate these using the newer exception doctest format.
unfortunately we can't show the SQL unless we filtered it out
from doctest...not worth it

(cherry picked from commit 7bb578b1bd61ec9a2506d1bdb60bb28579204808)

9 years ago- there was a DATEPART test after all, fix format
Mike Bayer [Thu, 14 Jan 2016 22:50:03 +0000 (17:50 -0500)] 
- there was a DATEPART test after all, fix format

(cherry picked from commit 0ff3f95d5b41335c977e1bdbe88b7dfd4ae581e1)

9 years ago- fix some old verbiage that refers to text() as an "implicit" thing
Mike Bayer [Thu, 14 Jan 2016 22:18:21 +0000 (17:18 -0500)] 
- fix some old verbiage that refers to text() as an "implicit" thing
for SQL fragments; we've deprecated that in 1.0 and its a good idea
to document like this for 0.9 as well.

(cherry picked from commit d5d7284bdd0ffc96e7a79354944627cf9b5d8e4d)

9 years agoRemove quote on first DATEPART paramater
Guillaume DOUMENC [Tue, 12 Jan 2016 04:46:32 +0000 (04:46 +0000)] 
Remove quote on first DATEPART paramater
(cherry picked from commit c4f415d97988bc8a8d901b150bfb67571f29712e)
- changelog for pr bitbucket:70, fixes #3624

(cherry picked from commit 215167d8d38a381d27c8448f5c6e50c70b9ba0cc)

9 years ago- fix link to types in metadata, fixes #3618
Mike Bayer [Sun, 10 Jan 2016 16:48:53 +0000 (11:48 -0500)] 
- fix link to types in metadata, fixes #3618
- fix "version" got whacked into "f" in core tutorial
- fix short underline in automap
- fix unmatched boldface in session events

(cherry picked from commit d03477d4b761132f44c48417be09d622ad9adfd3)