summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* - 1.0.18 release dateMike Bayer2017-07-243-17/+19
| | | | | | (cherry picked from commit f00391a070d9031941bb1c17aecb265b566a6a5b) Change-Id: I243a63d084d4b369ded7969d78e3ab033f6189bd
* Merge "Ensure we check for boolean condition when we inspect __exit__()"mike bayer2017-07-242-1/+8
|\
| * Ensure we check for boolean condition when we inspect __exit__()Mike Bayer2017-07-242-1/+8
| | | | | | | | | | | | | | | | Fixed issue in testing fixtures which was incompatible with a change made as of Python 3.6.2 involving context managers. Change-Id: I0f12aa6cc15cba89153f7e4888ac347e7ce599c7 Fixes: #4034
* | Merge "Guard all indexed access in WeakInstanceDict"mike bayer2017-07-242-15/+50
|\ \
| * | Guard all indexed access in WeakInstanceDictMike Bayer2017-07-242-15/+50
| |/ | | | | | | | | | | | | | | | | | | | | | | Added ``KeyError`` checks to all methods within :class:`.WeakInstanceDict` where a check for ``key in dict`` is followed by indexed access to that key, to guard against a race against garbage collection that under load can remove the key from the dict after the code assumes its present, leading to very infrequent ``KeyError`` raises. Change-Id: I881cc2899f7961d29a0549f44149a2615ae7a4ea Fixes: #4030
* | Merge branch 'patch-1' of https://github.com/feanil/sqlalchemyMike Bayer2017-07-241-1/+1
|\ \ | |/ |/|
| * Make flush logic slightly clearer in tutorial.Feanil Patel2017-07-231-1/+1
| | | | | | Improve the wording of how sessions commit changes.
* | - Merge directory holder README from 1.0.x and also 1.0's changelogMike Bayer2017-07-245-10/+45
|/ | | | | Change-Id: I588eebd027b4ad3428bd522f36a6f1cd77f105bb (cherry picked from commit 39c72682b85c1d3912ced383733d03eca7a43845)
* - move to file-per-changelog for unreleased change notes,Mike Bayer2017-07-228-39/+49
| | | | | | | | | | | so that we no longer have to rely upon merges within the changelog files. because gerrit doesn't allow us to use custom merge engines unlike git, we have no ability to merge multiple changes into the changelog files without going through conflicts. new version of changelog in git supports these new patterns. Change-Id: I588eebd027b4ad3428bd522f36a6f1cd77f105bb
* Merge "Check for column object in eval_none, not propkey"mike bayer2017-07-194-7/+57
|\
| * Check for column object in eval_none, not propkeyMike Bayer2017-07-184-7/+57
| | | | | | | | | | | | | | | | | | | | Fixed bug involving JSON NULL evaluation logic added in 1.1 as part of :ticket:`3514` where the logic would not accommodate ORM mapped attributes named differently from the :class:`.Column` that was mapped. Change-Id: I1848afcfb63ad7f074f315d8d3097666069b42be Fixes: #4031
* | Check for non-entity when inspecting for subqueryloadMike Bayer2017-07-183-0/+30
|/ | | | | | | | | | Fixed issue where adding additional non-entity columns to a query that includes an entity with subqueryload relationships would fail, due to an inspection added in 1.1.11 as a result of :ticket:`4011`. Change-Id: I8ef082be649125bdc07b428cb9b0a77a65d73671 Fixes: #4033
* Merge branch 'patch-1' of https://github.com/tomsitter/sqlalchemyMike Bayer2017-07-171-1/+1
|\
| * Replace Session class with session instanceTom Sitter2017-07-121-1/+1
| | | | | | The Session class was used instead of the session instance which resulted in an attribute error.
* | Merge branch 'patch-2' of https://github.com/pablogamboa/sqlalchemyMike Bayer2017-07-171-1/+1
|\ \
| * | Fix typo, foriegn -> foreignPablo Marti2017-07-101-1/+1
| |/
* | - 1.2.0b2 placeholderMike Bayer2017-07-142-1/+4
|/ | | | Change-Id: I95ff7f4bb0048b363987344d359f252469b23b79
* - 1.2.0b1rel_1_2_0b1Mike Bayer2017-07-102-1/+2
|
* Fix typo in migration_12Pablo Marti2017-07-101-1/+1
|
* - remove "under development" for 1.2 migration notesMike Bayer2017-07-091-2/+1
| | | | Change-Id: I660a4966e7375859058025ef132c595f74293e4c
* - fix exposed "sourcecode" tagsMike Bayer2017-07-091-2/+2
| | | | Change-Id: Ie1bdcf2773f3de96d5ca26ebf80657e5d72c70f9
* - remove intersphinx usage, the overhead of re-fetchingMike Bayer2017-07-093-17/+10
| | | | | | inventory on every build not worth it Change-Id: I3c4506b246d0f327c4b56afa723975daee984476
* - rst fixesMike Bayer2017-07-091-14/+11
| | | | Change-Id: Ice3eeb8312fcb5a4d586113ee3e52be90fbcd95e
* Merge "Add support for CACHE and ORDER to sequences"mike bayer2017-07-065-3/+44
|\
| * Add support for CACHE and ORDER to sequencesDavid Moore2017-07-055-3/+44
| | | | | | | | | | | | | | | | | | | | | | Added new keywords :paramref:`.Sequence.cache` and :paramref:`.Sequence.order` to :class:`.Sequence`, to allow rendering of the CACHE parameter understood by Oracle and PostgreSQL, and the ORDER parameter understood by Oracle. Pull request courtesy David Moore. Change-Id: I082c3f8ef56ef89dbaad5da9d5695be5313b0614 Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/96
* | Merge "Add .autocommit to scoped_session"mike bayer2017-07-052-1/+10
|\ \ | |/ |/|
| * Add .autocommit to scoped_sessionBen Fagin2017-07-052-1/+10
| | | | | | | | | | | | | | | | | | | | Added ``.autocommit`` attribute to :class:`.scoped_session`, proxying the ``.autocommit`` attribute of the underling :class:`.Session` currently assigned to the thread. Pull request courtesy Ben Fagin. Change-Id: Iff741978bd67762f4c7375a23cc151b26192042b Pull-request: https://github.com/zzzeek/sqlalchemy/pull/372
* | - 1.1.12 placeholderMike Bayer2017-07-051-0/+3
|/ | | | Change-Id: I23ccfebfbaaf40739a4a538d232875135a5cd04c
* Implement MySQL's ON DUPLICATE KEY UPDATEMichael Doronin2017-07-038-3/+361
| | | | | | | | | | | Added support for MySQL's ON DUPLICATE KEY UPDATE MySQL-specific :class:`.mysql.dml.Insert` object. Pull request courtesy Michael Doronin. Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com> Resolves: #4009 Change-Id: Ic71424f3c88af6082b48a910a2efb7fbfc0a7eb4 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/365
* Include missing import in exampleMichael Stewart2017-06-301-0/+1
|
* Coerce to float for Float with all native decimal backendsMike Bayer2017-06-264-1/+27
| | | | | | | | | | | | | The result processor for the :class:`.Float` type now unconditionally runs values through the ``float()`` processor if the dialect specifies that it also supports "native decimal" mode. While most backends will deliver Python ``float`` objects for a floating point datatype, the MySQL backends in some cases lack the typing information in order to provide this and return ``Decimal`` unless the float conversion is done. Change-Id: I638f1480fb00a507036efaf0e0080f26893d98ad Fixes: #4020
* Merge "Support state expiration for with_expression(); rename ↵mike bayer2017-06-269-34/+105
|\ | | | | | | deferred_expression"
| * Support state expiration for with_expression(); rename deferred_expressionMike Bayer2017-06-269-34/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The attributeimpl for a deferred_expression does not support a scalar loader, add new configurability so that the impl can have this flag turned off. Document that the with_expression() system currently does not offer any deferred loading. To eliminate confusion over "deferred", which refers to lazy loading of column attributes, and "with_expression", which refers to an attribute that is explicitly at query time only, rename deferred_expression to query_expression. Change-Id: I07c4a050ed68c79ccbde9492e9de1630b7470d74
* | Return given type when it matches the adaptationMike Bayer2017-06-264-44/+91
|/ | | | | | | | | | | | | The rules for type coercion between :class:`.Numeric`, :class:`.Integer`, and date-related types now include additional logic that will attempt to preserve the settings of the incoming type on the "resolved" type. Currently the target for this is the ``asdecimal`` flag, so that a math operation between :class:`.Numeric` or :class:`.Float` and :class:`.Integer` will preserve the "asdecimal" flag as well as if the type should be the :class:`.Float` subclass. Change-Id: Idfaba17220d6db21ca1ca4dcb4c19834cd397817 Fixes: #4018
* Merge "Coerce float Python type to Float; ensure Python float coming back"mike bayer2017-06-265-1/+75
|\
| * Coerce float Python type to Float; ensure Python float coming backMike Bayer2017-06-265-1/+75
| | | | | | | | | | | | | | | | | | | | | | Added some extra strictness to the handling of Python "float" values passed to SQL statements. A "float" value will be associated with the :class:`.Float` datatype and not the Decimal-coercing :class:`.Numeric` datatype as was the case before, eliminating a confusing warning emitted on SQLite as well as unecessary coercion to Decimal. Change-Id: I1bb1810ff1d198c0d929ccba5656e55401d74119 Fixes: #4017
* | added link for CrateDB supportJodok Batlogg2017-06-231-0/+1
| |
* | Don't erase reflected comment in _init_existingEloy Felix2017-06-202-2/+7
|/ | | | | Change-Id: Ie0b78c79367933486528ca0ba686d4a9f16922b1 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/370
* Add ad-hoc mapped expressionsMike Bayer2017-06-198-2/+325
| | | | | | | | | | Added a new feature :func:`.orm.with_expression` that allows an ad-hoc SQL expression to be added to a specific entity in a query at result time. This is an alternative to the SQL expression being delivered as a separate element in the result tuple. Change-Id: Id8c479f7489fb02e09427837c59d1eabb2a6c014 Fixes: #3058
* - 1.1.11 release dateMike Bayer2017-06-191-0/+1
| | | | Change-Id: I351e5727368b67598d091e5153a66987e349f8f6
* Merge "Handle SHOW VARIABLES returning no row"mike bayer2017-06-163-12/+57
|\
| * Handle SHOW VARIABLES returning no rowMike Bayer2017-06-163-12/+57
| | | | | | | | | | | | | | | | | | | | | | MySQL 5.7 has introduced permission limiting for the "SHOW VARIABLES" command; the MySQL dialect will now handle when SHOW returns no row, in particular for the initial fetch of SQL_MODE, and will emit a warning that user permissions should be modified to allow the row to be present. Change-Id: I98e7a69230da397b17eae07b7e9d024fa7aeeb26 Fixes: #4007
* | Merge "Add all versioning logic to _post_update()"mike bayer2017-06-165-18/+333
|\ \
| * | Add all versioning logic to _post_update()Mike Bayer2017-06-155-18/+333
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An UPDATE emitted as a result of the :paramref:`.relationship.post_update` feature will now integrate with the versioning feature to both bump the version id of the row as well as assert that the existing version number was matched. Fixes: #3496 Change-Id: I865405dd6069f1c1e3b0d27a4980e9374e059f97
* | | Set complete FROM list for subquery eagerload's orig queryMike Bayer2017-06-164-12/+121
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of checking that the "orig_entity" we receive applies as a correct FROM element for the subquery we're building, set the FROM clause of the query to exactly what it already is based on column_descriptions (assuming there is no FROM list already), thereby ensuring that the FROM list will remain intact, regardless of what orig_entity turns out to be and what the target_cols ultimately refer towards. Fixed issue with subquery eagerloading which continues on from the series of issues fixed in :ticket:`2699`, :ticket:`3106`, :ticket:`3893` involving that the "subquery" contains the correct FROM clause when beginning from a joined inheritance subclass and then subquery eager loading onto a relationship from the base class, while the query also includes criteria against the subclass. The fix in the previous tickets did not accommodate for additional subqueryload operations loading more deeply from the first level, so the fix has been further generalized. Change-Id: Ic909590814f71e577d8266b1dbc4c393dc48e019 Fixes: #4011
* | Repair WithinGroup.get_children()Mike Bayer2017-06-163-1/+19
|/ | | | | | | | Fixed AttributeError which would occur in :class:`.WithinGroup` construct during an iteration of the structure. Change-Id: I563882d93c8c32292463a605b636aa60c77e9406 Fixes: #4012
* - remove redundant fixture from base test classMike Bayer2017-06-151-15/+0
| | | | Change-Id: I76f197d5b2b39ae476bfff924e899773aa123be0
* - ensure String has a length for mysql compatibilityMike Bayer2017-06-151-1/+1
| | | | Change-Id: Iaa1077ca5929bdc67300cc6bfb1ba98aff382246
* Repair regression to pathing for subclassesMike Bayer2017-06-152-3/+72
| | | | | | | | | Issue #3963's initial commit narrowed the "current path" match rules too much such that a path that matches current path on subclass would no longer match. Change-Id: I8c9a0db91a09d789cfb8666288a913f8bbcdb2e9 Fixes: #3963
* Refinements for unitofwork internalsMike Bayer2017-06-142-51/+66
| | | | | | | | | | | * remove "mapper" argument from SaveUpdateState, DeleteState * use __slots__ for all uow action classes * rename ".delete" to ".isdelete" * rename issue_post_update to register_post_update since this doesn't actually issue the UPDATE * rename IssuePostUpdate to PostUpdateAll Change-Id: Ia6263b80d6a86eab1e8ed38df1421b1d0f249797