summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Support "blank" schema when MetaData.schema is setMike Bayer2016-05-182-0/+34
| | | | | | | | | | | | | Previously, it was impossible to have a Table that has None for a schema name when the "schema" parameter on MetaData was set. A new symbol sqlalchemy.schema.BLANK_SCHEMA is added which indicates that the schema name should unconditionally be set to None. In particular, this value must be passed within cross-schema foreign key reflection, so that a Table which is in the "default" schema can be represented properly. Fixes: #3716 Change-Id: I3d24f99c22cded206c5379fd32a225e74edb7a8e
* - 1.0.13 release dateMike Bayer2016-05-181-0/+1
| | | | Change-Id: I1873dc22c233b5c3585eb7a203bc2352c7cfdbef
* Merge "Accommodate "callable" bound param in evaluator"mike bayer2016-05-161-0/+9
|\
| * Accommodate "callable" bound param in evaluatorMike Bayer2016-05-161-0/+9
| | | | | | | | | | | | | | | | | | | | Fixed bug in "evaluate" strategy of :meth:`.Query.update` and :meth:`.Query.delete` which would fail to accommodate a bound parameter with a "callable" value, as which occurs when filtering by a many-to-one equality expression along a relationship. Change-Id: I47758d3f5d8b9ea1a07e23166780d5f3c32b17f1 Fixes: #3700
* | Fix TypeError during cx_Oracle connectionJohn Vandenberg2016-05-161-0/+11
|/ | | | | | | | | | | cx_Oracle connection parameters user, password and dsn must be either a string or NULL. When they are passed a Python None object, "TypeError: expecting string, unicode or buffer object" is raised. Fixes: #3705 Change-Id: I8da5d8a227ca12c9bf17a6127460e413841951fb Pull-request: https://github.com/zzzeek/sqlalchemy/pull/271
* Handle `SSL error: decryption failed or bad record mac`Iuri de Silvio2016-05-131-0/+8
| | | | | | | | | This is another psycopg2 error message representing an unusable connection. Fixes #3715 Change-Id: Ida6e212963e9c7336bf2944e7ef928619ac3a0e7 Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/85
* typo in glossary#release: s/proces/process/pr/273Frank Carnovale2016-05-121-1/+1
|
* typo in glossary#FROMclause: s/incicates/indicates/Frank Carnovale2016-05-121-1/+1
|
* typo in glossary#instrumentation: s/behviors/behaviors/Frank Carnovale2016-05-121-1/+1
|
* Add close_with_result to pessimistic connection exampleMike Bayer2016-05-121-0/+8
| | | | | | | | For connectionless execution, the recipe here will fail unless the should_close_with_result flag is temporarily set to False. Change-Id: Ib77b4439e8361b24478108c413b1ba720a68350f Fixes: #3712
* Fix label referencing in SQL Server OFFSET logicMike Bayer2016-05-101-0/+9
| | | | | | | | | | Fixed bug where by ROW_NUMBER OVER clause applied for OFFSET selects in SQL Server would inappropriately substitute a plain column from the local statement that overlaps with a label name used by the ORDER BY criteria of the statement. Change-Id: Ic2500c886cbfc83a1ad5a2681783f008b9f23838 Fixes: #3711
* Check for duplicate calls to register_attribute_implMike Bayer2016-05-101-0/+9
| | | | | | | | | | Fixed bug whereby the event listeners used for backrefs could be inadvertently applied multiple times, when using a deep class inheritance hierarchy in conjunction with mutiple mapper configuration steps. Change-Id: I712beaf4674e2323bf5b282922658020a6d00b53 Fixes: #3710
* Repair _orm_columns() to accommodate text()Mike Bayer2016-05-051-0/+8
| | | | | | | | | Fixed bug whereby passing a :func:`.text` construct to the :meth:`.Query.group_by` method would raise an error, instead of intepreting the object as a SQL fragment. Change-Id: I5fc2f590b76508d52e23b5fa9cf037ddea8080c3 fixes: #3706
* Merge remote-tracking branch 'origin/pr/269'Mike Bayer2016-05-041-14/+14
|\
| * Corrects typo: plural of vertex is vertices.pr/269Jeffrey Finkelstein2016-05-031-14/+14
| |
* | Merge remote-tracking branch 'origin/pr/268'Mike Bayer2016-05-0430-94/+94
|\ \
| * | Adds parentheses around print statements in docs.pr/268Jeffrey Finkelstein2016-05-0330-94/+94
| |/
* | Corrects some references in ORM documentation.pr/267Jeffrey Finkelstein2016-05-031-1/+2
|/
* Don't double-process ResultMetaData for BufferedColumnResultProxyMike Bayer2016-04-271-0/+11
| | | | | | | | | | | | 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
* Simplify directed graph exampleMike Bayer2016-04-261-0/+8
| | | | | | | | | | 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 (cherry picked from commit c3de4061fd490adcd8b75c79685f4a831b869f9e)
* Fix result set handling for case insensitive dupe colsMike Bayer2016-04-211-0/+10
| | | | | | | | | | | 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
* Deprecate Mapper.order_byMike Bayer2016-04-192-0/+33
| | | | | | | | | | | This is an old parameter no longer relevant to how SQLAlchemy works, once the Query object was introduced. By deprecating it we establish that we aren't supporting non-working use cases and that we encourage applications to move off of the use of this parameter. Fixes: #3394 Change-Id: I25b9a38142a1537bbcb27d3e8b66a8b265140072
* Merge "Add raise/raiseload relationship loading strategy"mike bayer2016-04-194-5/+67
|\
| * Add raise/raiseload relationship loading strategyAdrian Moennich2016-04-194-5/+67
| | | | | | | | | | | | | | Fixes: #3512 Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com> Change-Id: Ibd126c50eda621e2f4120ee378f7313af2d7ec3c Pull-request: https://github.com/zzzeek/sqlalchemy/pull/193
* | Propagate hybrid properties / infoMike Bayer2016-04-181-2/+18
| | | | | | | | | | | | | | | | | | | | | | Keystone and others depend on the .property attribute being "mirrored" when a @hybrid_property is linked directly to a mapped attribute. Restore this linkage and also create a defined behavior for the .info dictionary; it is that of the hybrid itself. Add this behavioral change to the migration notes. Change-Id: I8ac34ef52039387230c648866c5ca15d381f7fee References: #3653
* | Honor hybrid property / method docstringsMike Bayer2016-04-182-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | The docstring specified on a hybrid property or method is now honored at the class level, allowing it to work with tools like Sphinx autodoc. The mechanics here necessarily involve some wrapping of expressions to occur for hybrid properties, which may cause them to appear differently using introspection. Fixes: #3653 Change-Id: I02549977fe8b2a051802eed7b00cc532fbc214e3 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/239
* | - Add support for PostgreSQL with PyGreSQLChristoph Zwerschke2016-04-153-5/+26
|/ | | | | Change-Id: I040b75ff3b4110e7e8b26442a4eb226ba8c26715 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/234
* Merge "- don't load deferred columns on unexpire for merge with load=False, ↵mike bayer2016-04-061-0/+8
|\ | | | | | | fixes #3488"
| * - don't load deferred columns on unexpire for merge with load=False,Diana Clarke2016-04-061-0/+8
| | | | | | | | | | | | | | fixes #3488 Change-Id: Ic9577b800e4a4e2465ec7f3a2e95bd231f5337ee Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com>
* | Fix some broken links in docspr/255Ville Skyttä2016-04-042-3/+3
|/
* - make sure negative row indexes are based on the size of theMike Bayer2016-03-302-0/+27
| | | | | | number of columns we're actually reporting on - add more tests for negative row index - changelog/migration
* - changelog for #3629, fixes #3629Mike Bayer2016-03-302-0/+22
|
* redundant "using the by changing" -> "using the"pr/253NestorTejero2016-03-301-1/+1
|
* - Added :meth:`.Select.lateral` and related constructs to allowMike Bayer2016-03-294-0/+118
| | | | | for the SQL standard LATERAL keyword, currently only supported by Postgresql. fixes #2857
* - Added support for rendering "FULL OUTER JOIN" to both Core and ORM.Mike Bayer2016-03-282-0/+29
| | | | Pull request courtesy Stefan Urbanek. fixes #1957
* - Added connection pool events :meth:`ConnectionEvents.close`,Mike Bayer2016-03-251-0/+7
| | | | | :meth:`.ConnectionEvents.detach`, :meth:`.ConnectionEvents.close_detached`.
* - Further continuing on the common MySQL exception case ofMike Bayer2016-03-232-1/+54
| | | | | | | | | a savepoint being cancelled first covered in :ticket:`2696`, the failure mode in which the :class:`.Session` is placed when a SAVEPOINT vanishes before rollback has been improved to allow the :class:`.Session` to still function outside of that savepoint. It is assumed that the savepoint operation failed and was cancelled. fixes #3680
* - Fixed bug where the negation of an EXISTS expression would notMike Bayer2016-03-211-0/+9
| | | | | | | 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
* Fix typopr/249Benjamin Dopplinger2016-03-161-1/+1
|
* - Added basic isolation level support to the SQL Server dialectsMike Bayer2016-03-152-0/+35
| | | | | | via :paramref:`.create_engine.isolation_level` and :paramref:`.Connection.execution_options.isolation_level` parameters. fixes #3534
* - changelog and docs for #3332, fixes #3332Mike Bayer2016-03-152-0/+31
| | | | | | - make docs for isolation level more consistent between postgresql and mysql - move mysql autocommit tests
* - Fixed bug where a newly inserted instance that is rolled backMike Bayer2016-03-142-0/+107
| | | | | | | | | would still potentially cause persistence conflicts on the next transaction, because the instance would not be checked that it was expired. This fix will resolve a large class of cases that erronously cause the "New instance with identity X conflicts with persistent instance Y" error. fixes #3677
* Update cascades.rstpr/246falkerson2016-03-091-1/+1
|
* - changelog for #3666, fixes #3666Mike Bayer2016-03-021-0/+9
|
* - Anonymous labeling is applied to a :attr:`.func` construct that isMike Bayer2016-02-261-0/+11
| | | | | | | | | 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
* - An improvement to the workings of :meth:`.Query.correlate` suchMike Bayer2016-02-252-1/+80
| | | | | | | that when a "polymorphic" entity is used which represents a straight join of several tables, the statement will ensure that all the tables within the join are part of what's correlating. fixes #3662
* - Fixed bug in "to_list" conversion where a single bytes objectMike Bayer2016-02-211-0/+9
| | | | | | | 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
* - reworked the way the "select_wraps_for" expression isMike Bayer2016-02-201-0/+26
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add release date for 1.0.12 to changelogpr/241Jeff Widman2016-02-191-1/+1
|
* - Fixed bug which would cause an eagerly loaded many-to-one attributeMike Bayer2016-02-172-0/+104
| | | | | | | | to not be loaded, if the joined eager load were from a row where the same entity were present multiple times, some calling for the attribute to be eagerly loaded and others not. The logic here is revised to take in the attribute even though a different loader path has handled the parent entity already. fixes #3431