Commit Graph

10211 Commits

Author SHA1 Message Date
Mike Bayer cd3ea1d56b - move out match compiler test to test_compiler
- test_query isn't assertscompiledsql

(cherry picked from commit 269313218d)
2016-01-23 14:33:40 -05:00
Mike Bayer 82300be016 - add missing IGNORE_EXCEPTION_DETAIL flag 2016-01-21 17:30:56 -05:00
Mike Bayer 107f1f47b9 - add a forwards-test here as well
(cherry picked from commit 38958f7b3f)
2016-01-21 15:33:18 -05:00
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 dc22f66d94 - update oracle JDBC driver URL, fixes #3554
(cherry picked from commit 24dba714cb)
2016-01-20 15:58:43 -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 9f6b0ada67 - add a note that the literal_binds flag should be used
when cross-compiling from DDL to SQL, fixes #3615

(cherry picked from commit 165fa15b0f)
2016-01-20 12:11:34 -05:00
Chase f039219eed Fix ArrayOfEnum's handling of empty arrays.
Prior to this change a value of `'{}'` would split into the list `['']`.
(cherry picked from commit a2badb751f)
2016-01-20 09:27:09 -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
Mike Bayer a36ace7ae3 - there was a DATEPART test after all, fix format
(cherry picked from commit 0ff3f95d5b)
2016-01-14 17:50:23 -05:00
Mike Bayer 630929b71e - 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 d5d7284bdd)
2016-01-14 17:19:05 -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
jonathan vanasco ebc097aa99 updated sphinx tageting
(cherry picked from commit a0612a4d34)
2016-01-07 12:53:06 -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 bd991c68da - version bump 2016-01-05 10:26:22 -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 rel_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
Hanno Schlichting c8cfb619f2 Add new reserved words for MySQL 5.7.
(cherry picked from commit 03ee4bbda6)
2015-12-22 11:56:33 -05:00
Mike Bayer 10735365a8 - varchar requires a length
(cherry picked from commit 0c8242b26e)
2015-12-22 11:20:01 -05:00
Mike Bayer 2bf15f4423 - add the test from ref #3614 as well for testing ref #3611
(cherry picked from commit 4b708c4839)
2015-12-21 21:43:13 -05:00
Mike Bayer c6c035b298 - just use *arg straight without "key" for pop
(cherry picked from commit 5e5b8a96a7)
2015-12-17 11:47:32 -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 a51a7d7ca5 - remove errant pdb, references #3612
(cherry picked from commit 03ee22f342)
2015-12-15 22:09:14 -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 7184e69e27 - add some more oracle skips
(cherry picked from commit c42725ed54)
2015-12-14 20:22:21 -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 3453822b54 - since we are mutating the statement in a loop, start with
the same cached starting statement each time.  no issue has been observed
with the former but it could perhaps have issues w/ versioning
or eager_defaults

(cherry picked from commit d0fc726988)
2015-12-14 17:55:22 -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 cb24a4fcd7 - 1.0.11 2015-12-12 21:12:15 -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 rel_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