Commit Graph

2300 Commits

Author SHA1 Message Date
Mike Bayer 9cc769ac40 - 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 89fa08792e)
2016-01-21 15:23:56 -05:00
Mike Bayer 851acda63c - generalize the verbiage on LargeBinary so that it doesn't
create confusion for inherited classes such as BYTEA, fixes

(cherry picked from commit 47d8858c54)
2016-01-20 16:20:52 -05:00
Mike Bayer 5ee4f0fa62 - cross link for concrete helper classes
- remove redundant concrete helper docs from declarative docs,
two places is enough

(cherry picked from commit a53bd6f74b)
2016-01-20 15:29:06 -05:00
Mike Bayer 65833346e0 - typo
(cherry picked from commit b53667526e)
2016-01-20 14:03:44 -05:00
Mike Bayer 575cad0a1b - redo the docs for concrete inheritance to more strongly
favor declarative, fixes #2890

(cherry picked from commit 632c4f21fa)
2016-01-20 13:35:26 -05:00
Mike Bayer b425fd8eda - clarify the "Adding" section also illustrates updates, fixes #2942
(cherry picked from commit 02271efd89)
2016-01-20 12:22:46 -05:00
Mike Bayer 23e60cd8eb - 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 d4d9a65248)
2016-01-18 17:36:27 -05:00
rmn 8c1667b4a9 Fix typo in relationships docs
(cherry picked from commit f9b2185586)
2016-01-16 22:06:51 -05:00
Mike Bayer d1237ac75f - fix People -> Person , fixes #3628
(cherry picked from commit 66560cef74)
2016-01-16 22:04:37 -05:00
Mike Bayer 29835df410 - 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 7bb578b1bd)
2016-01-14 18:20:34 -05:00
Guillaume DOUMENC dc733bcea6 Remove quote on first DATEPART paramater
(cherry picked from commit c4f415d979)
- changelog for pr bitbucket:70, fixes #3624

(cherry picked from commit 215167d8d3)
2016-01-12 09:54:50 -05:00
Mike Bayer 4c1f1c130f - 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 d03477d4b7)
2016-01-10 11:53:17 -05:00
Jeff Widman 4802b734d8 Update SQLAlchemy-Migrate link to the new repo
(cherry picked from commit 56b76ce7a8)
2016-01-10 10:32:14 -05:00
Adrian Moennich 105004e8e2 Fix typo in session docs
(cherry picked from commit bb29449755)
2016-01-09 22:27:31 -05:00
Mike Bayer 61d2ceb681 - Fixed regression since 0.9 where the 0.9 style loader options
system failed to accommodate for multiple :func:`.undefer_group`
loader options in a single query.   Multiple :func:`.undefer_group`
options will now be taken into account even against the same
entity. fixes #3623

(cherry picked from commit c7ae0daf0e)
2016-01-09 10:10:51 -05:00
Mike Bayer be7e41c618 - dont forwards-report tons of 1.0.x changes in the unreleased 1.1;
only when a 1.1.x is released would we want to capture what's still
sitting in a 1.0.x changelog

(cherry picked from commit 16746dd1a6)
2016-01-05 15:13:39 -05:00
Mike Bayer 6ba8382fa8 - Fixed 1.0 regression where the eager fetch of cursor.rowcount was
no longer called for an UPDATE or DELETE statement emitted via plain
text or via the :func:`.text` construct, affecting those drivers
that erase cursor.rowcount once the cursor is closed such as SQL
Server ODBC and Firebird drivers.
fixes #3622

(cherry picked from commit 197ffa2be2)
2016-01-05 10:26:12 -05:00
Mike Bayer 3b517241ba 1.0.11 2015-12-22 20:40:53 -05:00
Mike Bayer 40cc8f4467 - An adjustment to the regular expression used to parse MySQL views,
such that we no longer assume the "ALGORITHM" keyword is present in
the reflected view source, as some users have reported this not being
present in some Amazon RDS environments.
fixes #3613

(cherry picked from commit 8c54b14b5c)
2015-12-22 12:05:12 -05:00
Mike Bayer 0eeb7729eb - changelog for pullreq github:222
(cherry picked from commit 5c7ade2f42)
2015-12-22 11:56:36 -05:00
Mike Bayer f1fcc92e36 - Further fixes to 🎫3605, pop method on :class:.MutableDict,
where the "default" argument was not included.
fixes #3605

(cherry picked from commit 913858c949)
2015-12-17 11:25:05 -05:00
Jeff Widman 33536bf06e Make docs listing of param order for event.listen match the code
(cherry picked from commit 30be49c157)
2015-12-17 10:02:42 -05:00
jonathan vanasco fe17ed136b some spelling fixes
(cherry picked from commit 738d515b95)
2015-12-16 11:47:39 -05:00
Mike Bayer c3876fe755 - Fixed bug in baked loader system where the systemwide monkeypatch
for setting up baked lazy loaders would interfere with other
loader strategies that rely on lazy loading as a fallback, e.g.
joined and subquery eager loaders, leading to ``IndexError``
exceptions at mapper configuration time.
fixes #3612

(cherry picked from commit a22b208506)
2015-12-15 21:44:33 -05:00
Mike Bayer 9f6f34bc8f - hyperlink default-related parameters 2015-12-15 18:30:54 -05:00
Mike Bayer 4765b33f80 - Fixed regression caused in 1.0.10 by the fix for 🎫3593 where
the check added for a polymorphic joinedload from a
poly_subclass->class->poly_baseclass connection would fail for the
scenario of class->poly_subclass->class.
fixes #3611

(cherry picked from commit a8ec349198)
2015-12-15 14:01:34 -05:00
Mike Bayer 270301890a - a few tweaks to allow "server_defaults" to be a little more linkable;
remove "undoc members" that was putting some random server_default
atributes from ColumnClause
2015-12-14 18:01:32 -05:00
Mike Bayer bf9a53af2e - Fixed bug where :meth:.Session.bulk_update_mappings and related
would not bump a version id counter when in use.  The experience
here is still a little rough as the original version id is required
in the given dictionaries and there's not clean error reporting
on that yet.
fixes #3610

(cherry picked from commit 26ed90ab22)
2015-12-14 17:40:12 -05:00
Mike Bayer a6387b0df8 - Fixed bug in :meth:.Update.return_defaults which would cause all
insert-default holding columns not otherwise included in the SET
clause (such as primary key cols) to get rendered into the RETURNING
even though this is an UPDATE.

- Major fixes to the :paramref:`.Mapper.eager_defaults` flag, this
flag would not be honored correctly in the case that multiple
UPDATE statements were to be emitted, either as part of a flush
or a bulk update operation.  Additionally, RETURNING
would be emitted unnecessarily within update statements.

fixes #3609

(cherry picked from commit 0e4c4d7efc)
2015-12-14 17:30:42 -05:00
Mike Bayer 609d7bf8fb - Fixed bug where use of the :meth:.Query.select_from method would
cause a subsequent call to the :meth:`.Query.with_parent` method to
fail. fixes #3606
- add mark-as-fail test for #3607

(cherry picked from commit 7d96ad4d53)
2015-12-12 21:12:00 -05:00
Mike Bayer 6b87e0b301 1.0.10 2015-12-11 15:55:17 -05:00
Mike Bayer 9b7870dd59 - Added support for the `dict.pop() and dict.popitem()` methods
to the :class:`.mutable.MutableDict` class.
fixes #3605

(cherry picked from commit 5710a1e88b)
2015-12-11 11:24:58 -05:00
Mike Bayer 601e873045 - convert ORM tutorial and basic_relationships to favor
back_populates while still maintaining great familiarity
w/ backref so as not to confuse people.  fixes #3390

(cherry picked from commit 741b8af31b)
2015-12-10 18:28:37 -05:00
Mike Bayer 89966db3e8 - The ORM and Core tutorials, which have always been in doctest format,
are now exercised within the normal unit test suite in both Python
2 and Python 3.
- remove the old testdocs.py runner and replace with test/base/test_tutorials.py
- use pytest's unicode fixer so that we can test for unicode strings
in both py2k/3k
- use py3k format overall for prints, exceptions
- add other fixers to guarantee deterministic results
- add skips and ellipses to outputs that aren't worth matching

(cherry picked from commit d533b8e922)
2015-12-10 17:18:06 -05:00
Mike Bayer 6d44b01263 - Fixed issue within the :meth:.Insert.from_select construct whereby
the :class:`.Select` construct would have its ``._raw_columns``
collection mutated in-place when compiling the :class:`.Insert`
construct, when the target :class:`.Table` has Python-side defaults.
The :class:`.Select` construct would compile standalone with the
erroneous column present subsequent to compilation of the
:class:`.Insert`, and the the :class:`.Insert` statement itself would
fail on a second compile attempt due to duplicate bound parameters.
fixes #3603

(cherry picked from commit e57bf79616)
2015-12-09 18:15:57 -05:00
Mike Bayer 67b22cee3a - fix changelog for #3602
- add version switch for backend fsp test
2015-12-08 13:49:56 -05:00
Mike Bayer f3137aa459 - Fixed bug in MySQL reflection where the "fractional sections portion"
of the :class:`.mysql.DATETIME`, :class:`.mysql.TIMESTAMP` and
:class:`.mysql.TIME` types would be incorrectly placed into the
``timestamp`` attribute, which is unused by MySQL, instead of the
``fsp`` attribute.
fixes #3602

(cherry picked from commit 3f42743d6a)
2015-12-07 17:25:27 -05:00
Mike Bayer 74fcb4b867 - Fixed issue where post_update on a many-to-one relationship would
fail to emit an UPDATE in the case where the attribute were set to
None and not previously loaded.
fixes #3599

(cherry picked from commit 935bc34dc5)
2015-12-02 12:14:18 -05:00
Mike Bayer 7b5fd86a42 - Fixed bug where CREATE TABLE with a no-column table, but a constraint
such as a CHECK constraint would render an erroneous comma in the
definition; this scenario can occur such as with a Postgresql
INHERITS table that has no columns of its own.
fixes #3598

(cherry picked from commit 9695faf329)
2015-12-01 19:04:48 -05:00
Mike Bayer b30390bfb3 - Added the error "20006: Write to the server failed" to the list
of disconnect errors for the pymssql driver, as this has been observed
to render a connection unusable.
fixes #3585

(cherry picked from commit ab69467697)
2015-11-30 13:16:11 -05:00
Mike Bayer fb22efc9de - changelog for #3573, fixes #3573
(cherry picked from commit f4cb3f8cac)
2015-11-30 13:06:43 -05:00
Mike Bayer c392ba1de7 - changelog for pullreq github:215
(cherry picked from commit c3fbfa8257)
2015-11-30 13:01:38 -05:00
Mike Bayer 66704ad47a Merge remote-tracking branch 'origin/pr/217'
(cherry picked from commit 954aafa064)
2015-11-30 12:55:38 -05:00
Mike Bayer b552a75a52 Merge remote-tracking branch 'origin/pr/214'
(cherry picked from commit 38e043a475)
2015-11-30 12:54:08 -05:00
Mike Bayer fcdfea202f - restore 'declarative' classifier
(cherry picked from commit be24b3ea83)
2015-11-30 12:52:17 -05:00
Nils Philippsen 33c3aded3a py2k: accept unicode literals on :func:backref, too
Fixed bug where in Py2K a unicode literal would not be accepted as the
string name of a class or other argument within declarative using
:func:`.backref` on :func:`.relationship`.

amends commit e6f67f4805

(cherry picked from commit 58f73d2278)
2015-11-30 12:49:12 -05:00
Mike Bayer 4bb6770ae8 - update changelog for all the py3.5/3.6 related prs at once 2015-11-30 12:40:51 -05:00
Mike Bayer 730aa2140c - A descriptive ValueError is now raised in the event that SQL server
returns an invalid date or time format from a DATE or TIME
column, rather than failing with a NoneType error.  Pull request
courtesy Ed Avis.
pullreq github:206

(cherry picked from commit 03a3b5ffd3)
2015-11-30 12:20:23 -05:00
Mike Bayer 6657a008d6 - update changelog to accommodate pr github:218 2015-11-30 11:55:03 -05:00
Mike Bayer 3a4b89c5a0 - changelog for pr github:210 2015-11-30 11:42:31 -05:00