summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add 'FOR NO KEY UPDATE' supportpr/279Sergey Skopin2016-05-316-16/+123
|
* Support "blank" schema when MetaData.schema is setMike Bayer2016-05-189-5/+137
| | | | | | | | | | | | | 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-163-2/+26
|\
| * Accommodate "callable" bound param in evaluatorMike Bayer2016-05-163-2/+26
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Fix TypeError during cx_Oracle connection"mike bayer2016-05-162-3/+18
|\ \ | |/ |/|
| * Fix TypeError during cx_Oracle connectionJohn Vandenberg2016-05-162-3/+18
| | | | | | | | | | | | | | | | | | | | | | 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
* | Fix formatting on test_evaluatorMike Bayer2016-05-161-10/+16
|/ | | | Change-Id: Idcd77a570b19f1b022a74d67fa8253d922dadc67
* Handle `SSL error: decryption failed or bad record mac`Iuri de Silvio2016-05-132-0/+9
| | | | | | | | | 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
* Merge remote-tracking branch 'origin/pr/272'Mike Bayer2016-05-131-1/+1
|\
| * change "psotgresql" to 'postgresql' in decoratorpr/272Mark Sandan2016-05-061-1/+1
| |
* | 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-104-1/+49
| | | | | | | | | | | | | | | | | | | | 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-103-3/+65
|/ | | | | | | | | | 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-054-1/+30
| | | | | | | | | 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
| |/
* | Merge remote-tracking branch 'origin/pr/267'Mike Bayer2016-05-042-9/+12
|\ \
| * | Corrects some references in ORM documentation.pr/267Jeffrey Finkelstein2016-05-032-9/+12
| |/
* | Merge remote-tracking branch 'origin/pr/265'Mike Bayer2016-05-042-4/+4
|\ \ | |/ |/|
| * Let logging format messages on demand, use warning instead of deprecated warnpr/265Ville Skyttä2016-05-032-4/+4
| |
* | Fix pymssql sample URLMike Bayer2016-04-271-1/+1
| | | | | | | | | | | | | | | | A slash is required before building out the query string portion. Change-Id: Ie97fd3d07047d78e17cbaffed4ff54960a2b956e Fixes: #3696 (cherry picked from commit 83a9e6e1fac276090e60136aa4e9234ae23bc25a)
* | Merge remote-tracking branch 'origin/pr/263'Mike Bayer2016-04-271-7/+7
|\ \
| * | Adds parentheses around prints in documentationpr/263jfinkels2016-04-271-7/+7
| | | | | | | | | This makes the docstring example code compatible with both Python 2 and Python 3.
* | | Don't double-process ResultMetaData for BufferedColumnResultProxyMike Bayer2016-04-273-14/+73
|/ / | | | | | | | | | | | | | | | | | | | | | | 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-262-47/+51
| | | | | | | | | | | | | | | | | | | | 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)
* | - don't use --dropfirst when we are using ad-hoc DBs. dropfirstMike Bayer2016-04-241-1/+4
| | | | | | | | | | | | is unnecessary and causes collisions against other CI runs Change-Id: I47e9bc98cd6ef4ab90be25bae45897dabae16308
* | Fix result set handling for case insensitive dupe colsMike Bayer2016-04-213-0/+26
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Deprecate Mapper.order_by"mike bayer2016-04-1918-61/+153
|\ \
| * | Deprecate Mapper.order_byMike Bayer2016-04-1918-61/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Rename Query._mapper_zero() to Query._entity_zero()Mike Bayer2016-04-193-23/+22
|/ / | | | | | | | | | | | | | | | | | | | | | | To be more descriptive of the use of _mapper_zero(), rename it to _entity_zero(), but also supply a new _mapper_zero() function that more strictly returns a mapper. The existing _entity_zero() function is renamed to _query_entity_zero. _only_mapper_zero() is removed as it isn't used. Divide up the existing calling functions to refer to the appropriate new method. Change-Id: I8780c3235e87b4936c6daf64d9d299b22b6e1260 Fixes: #3608
* | Merge "Add raise/raiseload relationship loading strategy"mike bayer2016-04-199-5/+241
|\ \
| * | Add raise/raiseload relationship loading strategyAdrian Moennich2016-04-199-5/+241
| |/ | | | | | | | | | | | | 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-183-3/+83
| | | | | | | | | | | | | | | | | | | | | | 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-185-16/+371
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "- Add support for PostgreSQL with PyGreSQL"mike bayer2016-04-159-14/+285
|\ \
| * | - Add support for PostgreSQL with PyGreSQLChristoph Zwerschke2016-04-159-14/+285
| |/ | | | | | | | | Change-Id: I040b75ff3b4110e7e8b26442a4eb226ba8c26715 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/234
* | - .gitreview default branchMike Bayer2016-04-121-0/+1
|/ | | | Change-Id: I7c70b2a4f92dbed5924e2592b204434e09fae007
* Merge remote-tracking branch 'origin/pr/257'Mike Bayer2016-04-081-1/+2
|\
| * Mention the correct way of adding multiple attributes which refer to the ↵pr/257Eoghan Murray2016-04-071-1/+2
| | | | | | | | same column
* | Fix typo from "addreses" to "addresses"Rachid Belaid2016-04-061-1/+1
|/
* Merge "- don't load deferred columns on unexpire for merge with load=False, ↵mike bayer2016-04-065-6/+128
|\ | | | | | | fixes #3488"
| * - don't load deferred columns on unexpire for merge with load=False,Diana Clarke2016-04-065-6/+128
| | | | | | | | | | | | | | fixes #3488 Change-Id: Ic9577b800e4a4e2465ec7f3a2e95bd231f5337ee Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com>
* | Merge remote-tracking branch 'origin/pr/255'Mike Bayer2016-04-063-4/+4
|\ \
| * | Fix some broken links in docspr/255Ville Skyttä2016-04-043-4/+4
| |/