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

9 years ago- add missing __backend__ directives for SQL server
Mike Bayer [Mon, 8 Feb 2016 19:20:12 +0000 (14:20 -0500)] 
- add missing __backend__ directives for SQL server

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

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

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

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.

9 years ago- add a session killer for oracle provisioning
Mike Bayer [Thu, 4 Feb 2016 18:59:32 +0000 (13:59 -0500)] 
- add a session killer for oracle provisioning

9 years ago- add an impl for Enum to Oracle which has subclassing requirements
Mike Bayer [Thu, 4 Feb 2016 18:36:45 +0000 (13:36 -0500)] 
- add an impl for Enum to Oracle which has subclassing requirements
on unicode.   Enum would be better as a TypeDecorator
at this point but then that becomes awkward with native enum
types (Interval works that way, but we don't need the bind_processor for
native interval...)

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

9 years ago- oracle requires GLOBAL here
Mike Bayer [Thu, 4 Feb 2016 00:34:29 +0000 (19:34 -0500)] 
- oracle requires GLOBAL here

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

9 years agoFix typo in relationship persistance docs
Josh Friend [Wed, 3 Feb 2016 16:49:18 +0000 (11:49 -0500)] 
Fix typo in relationship persistance docs

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

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

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

9 years agoMerge branch 'master' of https://bitbucket.org/carlrivers/sqlalchemy
Mike Bayer [Tue, 2 Feb 2016 22:27:09 +0000 (17:27 -0500)] 
Merge branch 'master' of https://bitbucket.org/carlrivers/sqlalchemy

9 years ago- test fixes for metadata.enums value now being a list
Mike Bayer [Tue, 2 Feb 2016 21:59:56 +0000 (16:59 -0500)] 
- test fixes for metadata.enums value now being a list
- modernize those tests as well

9 years ago- add changelog and migration notes for new Enum features,
Mike Bayer [Tue, 2 Feb 2016 18:00:19 +0000 (13:00 -0500)] 
- add changelog and migration notes for new Enum features,
fixes #3095, #3292
- reorganize enum constructor to again work with the MySQL
ENUM type
- add a new create_constraint flag to Enum to complement that of
Boolean
- reinstate the CHECK constraint tests for enum, these already
fail /skip against the MySQL backend
- simplify lookup rules in Enum, have them apply to all varieties
of Enum equally

9 years ago- Initial implementation of support for PEP-435 enumerated types
Alex Grönholm [Tue, 2 Feb 2016 19:20:17 +0000 (14:20 -0500)] 
- Initial implementation of support for PEP-435 enumerated types
within the Enum type.

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

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

9 years ago- The ``sqlalchemy.dialects.postgres`` module, long deprecated, is
Mike Bayer [Fri, 29 Jan 2016 16:44:58 +0000 (11:44 -0500)] 
- The ``sqlalchemy.dialects.postgres`` module, long deprecated, is
removed; this has emitted a warning for many years and projects
should be calling upon ``sqlalchemy.dialects.postgresql``.
Engine URLs of the form ``postgres://`` will still continue to function,
however.

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

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

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

9 years ago- using extras here has the effect of defeating the usedevelop flag
Mike Bayer [Thu, 28 Jan 2016 21:23:48 +0000 (16:23 -0500)] 
- using extras here has the effect of defeating the usedevelop flag
since SQLAlchemy gets installed as develop and in the virtualenv

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

9 years ago- experimental - try out a very open ended design for the factors, assume
Mike Bayer [Wed, 27 Jan 2016 22:39:48 +0000 (17:39 -0500)] 
- experimental - try out a very open ended design for the factors, assume
many more combinations of factors are possible and basically make them
more akin to command options at the tox level.

9 years ago- reinstate "dont set up integer index in keymap if we're on cexts",
Mike Bayer [Wed, 27 Jan 2016 19:49:40 +0000 (14:49 -0500)] 
- reinstate "dont set up integer index in keymap if we're on cexts",
and this time also fix the cext itself to properly handle int vs. long
on py2k

9 years ago- restore the use of PYTHONNOUSERSITE that was removed
Mike Bayer [Wed, 27 Jan 2016 19:23:33 +0000 (14:23 -0500)] 
- restore the use of PYTHONNOUSERSITE that was removed
in df3f125bd84fc7ec5d45592c5774daf3a39d9bc9, this flag is
explicitly checked within conftest.py and we need to continue to use
it, otherwise a tox build inside of .tox that isn't usedevelop
is ignored, including C extensions
- rework the whole system of running with coverage, so that
with coverage, we *are* using usedevelop, but also make sure
we rm the .so files for nocext, make sure we --cov-append, etc.

9 years agoRevert "- dont set up integer index in keymap if we're on cexts"
Mike Bayer [Wed, 27 Jan 2016 17:41:01 +0000 (12:41 -0500)] 
Revert "- dont set up integer index in keymap if we're on cexts"

This reverts commit de0d144a395c31eb74084177df95a4858b830f88.

Apparently the test suite is not using the cextensions correctly at the moment.

9 years ago- dont set up integer index in keymap if we're on cexts
Mike Bayer [Wed, 27 Jan 2016 16:35:43 +0000 (11:35 -0500)] 
- dont set up integer index in keymap if we're on cexts

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

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

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

9 years agoMerged zzzeek/sqlalchemy into master
Carlos Rivas [Tue, 26 Jan 2016 21:45:31 +0000 (13:45 -0800)] 
Merged zzzeek/sqlalchemy into master

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

9 years ago- The workaround for right-nested joins on SQLite, where they are rewritten
Mike Bayer [Tue, 26 Jan 2016 20:41:56 +0000 (15:41 -0500)] 
- The workaround for right-nested joins on SQLite, where they are rewritten
as subqueries in order to work around SQLite's lack of support for this
syntax, is lifted when SQLite version 3.7.16 or greater is detected.
fixes #3634
- The workaround for SQLite's unexpected delivery of column names as
``tablename.columnname`` for some kinds of queries is now disabled
when SQLite version 3.10.0 or greater is detected.
fixes #3633

9 years agoremove PYTHONNOUSERSITE, not sure why this was here, it apparently interferes with...
Mike Bayer [Tue, 26 Jan 2016 18:38:34 +0000 (13:38 -0500)] 
remove PYTHONNOUSERSITE, not sure why this was here, it apparently interferes with coverage

9 years ago- another approach at coverage
Mike Bayer [Tue, 26 Jan 2016 17:57:18 +0000 (12:57 -0500)] 
- another approach at coverage

9 years ago- try to improve the default coverage job
Mike Bayer [Tue, 26 Jan 2016 17:06:24 +0000 (12:06 -0500)] 
- try to improve the default coverage job

9 years ago- fix the deps for the last change
Mike Bayer [Mon, 25 Jan 2016 00:37:16 +0000 (19:37 -0500)] 
- fix the deps for the last change

9 years ago- unfortunately we have to force the paths to be shorter due to
Mike Bayer [Mon, 25 Jan 2016 00:29:26 +0000 (19:29 -0500)] 
- unfortunately we have to force the paths to be shorter due to
https://github.com/pypa/virtualenv/issues/596

9 years ago- add a new qualifier "native" vs. "dbapi" unicode to avoid
Mike Bayer [Sun, 24 Jan 2016 23:28:09 +0000 (18:28 -0500)] 
- add a new qualifier "native" vs. "dbapi" unicode to avoid
profiling problems here
- add extras_require to setup.py for the most common DBAPIs
- rework tox.ini to use extras, specify a test matrix built in

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

(cherry picked from commit 7d70dfd412c05fd8349339da01b472bd3df02082)

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

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

9 years ago- use regex here, columns dont matter, keep coming up with different orderings
Mike Bayer [Sat, 23 Jan 2016 20:32:10 +0000 (15:32 -0500)] 
- use regex here, columns dont matter, keep coming up with different orderings

9 years agoMerged in carlrivers/removed-entry-that-causes-attributeerror-1453541002643 (pull...
Carlos Rivas [Sat, 23 Jan 2016 20:19:28 +0000 (12:19 -0800)] 
Merged in carlrivers/removed-entry-that-causes-attributeerror-1453541002643 (pull request #1)

Removed entry that causes AttributeError (#3621) - Oracle zxJDBC fails with AttributeError in object OracleCompiler_zxjdbc

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

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

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

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

9 years ago- make this test deterministic
Mike Bayer [Thu, 21 Jan 2016 22:20:52 +0000 (17:20 -0500)] 
- make this test deterministic

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

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

9 years ago- Added new parameter :paramref:`.orm.mapper.passive_deletes` to
Mike Bayer [Wed, 20 Jan 2016 22:56:04 +0000 (17:56 -0500)] 
- Added new parameter :paramref:`.orm.mapper.passive_deletes` to
available mapper options.   This allows a DELETE to proceed
for a joined-table inheritance mapping against the base table only,
while allowing for ON DELETE CASCADE to handle deleting the row
from the subclass tables.
fixes #2349

9 years ago- The unsupported Sybase dialect now raises ``NotImplementedError``
Mike Bayer [Wed, 20 Jan 2016 21:32:27 +0000 (16:32 -0500)] 
- The unsupported Sybase dialect now raises ``NotImplementedError``
when attempting to compile a query that includes "offset"; Sybase
has no straightforward "offset" feature.  fixes #2278

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

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

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

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

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

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

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 `['']`.

9 years ago- the order in which _generate_backref() for different mappers is called
Mike Bayer [Tue, 19 Jan 2016 22:08:50 +0000 (17:08 -0500)] 
- the order in which _generate_backref() for different mappers is called
is random; therefore it may be called against the subclass mapper first, so
need to check .concrete on both sides, references #3630

9 years ago- calling str() on a core sql construct has been made more "friendly",
Mike Bayer [Tue, 19 Jan 2016 21:47:16 +0000 (16:47 -0500)] 
- calling str() on a core sql construct has been made more "friendly",
when the construct contains non-standard sql elements such as
returning, array index operations, or dialect-specific or custom
datatypes.  a string is now returned in these cases rendering an
approximation of the construct (typically the postgresql-style
version of it) rather than raising an error. fixes #3631
- add within_group to top-level imports
- add eq_ignore_whitespace to sqlalchemy.testing imports

9 years ago- Fixed issue where two same-named relationships that refer to
Mike Bayer [Tue, 19 Jan 2016 18:34:42 +0000 (13:34 -0500)] 
- Fixed issue where two same-named relationships that refer to
a base class and a concrete-inherited subclass would raise an error
if those relationships were set up using "backref", while setting up the
identical configuration using relationship() instead with the conflicting
names would succeed, as is allowed in the case of a concrete mapping.
fixes #3630

9 years ago- The ``str()`` call for :class:`.Query` will now take into account
Mike Bayer [Tue, 19 Jan 2016 17:44:42 +0000 (12:44 -0500)] 
- The ``str()`` call for :class:`.Query` will now take into account
the :class:`.Engine` to which the :class:`.Session` is bound, when
generating the string form of the SQL, so that the actual SQL
that would be emitted to the database is shown, if possible.  Previously,
only the engine associated with the :class:`.MetaData` to which the
mappings are associated would be used, if present.  If
no bind can be located either on the :class:`.Session` or on
the :class:`.MetaData` to which the mappings are associated, then
the "default" dialect is used to render the SQL, as was the case
previously.  fixes #3081

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

9 years agoMerge remote-tracking branch 'origin/pr/227'
Mike Bayer [Sun, 17 Jan 2016 03:06:29 +0000 (22:06 -0500)] 
Merge remote-tracking branch 'origin/pr/227'

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

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

9 years ago- update
Mike Bayer [Thu, 14 Jan 2016 23:21:23 +0000 (18:21 -0500)] 
- update

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

9 years ago- A deep improvement to the recently added :meth:`.TextClause.columns`
Mike Bayer [Thu, 14 Jan 2016 23:06:26 +0000 (18:06 -0500)] 
- A deep improvement to the recently added :meth:`.TextClause.columns`
method, and its interaction with result-row processing, now allows
the columns passed to the method to be positionally matched with the
result columns in the statement, rather than matching on name alone.
The advantage to this includes that when linking a textual SQL statement
to an ORM or Core table model, no system of labeling or de-duping of
common column names needs to occur, which also means there's no need
to worry about how label names match to ORM columns and so-forth.  In
addition, the :class:`.ResultProxy` has been further enhanced to
map column and string keys to a row with greater precision in some
cases.  fixes #3501
- reorganize the initialization of ResultMetaData for readability
and complexity; use the name "cursor_description", define the
task of "merging" cursor_description with compiled column information
as its own function, and also define "name extraction" as a separate task.
- fully change the name we use in the "ambiguous column" error to be the
actual name that was ambiguous, modify the C ext also

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

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.

9 years ago- convert keys to str for None not sortable against str on py3k
Mike Bayer [Tue, 12 Jan 2016 15:49:14 +0000 (10:49 -0500)] 
- convert keys to str for None not sortable against str on py3k

9 years ago- changelog for pr bitbucket:70, fixes #3624
Mike Bayer [Tue, 12 Jan 2016 14:53:09 +0000 (09:53 -0500)] 
- changelog for pr bitbucket:70, fixes #3624

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