summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Add schema argument to AutomapBase.prepare()Josh Marlow2016-06-023-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows automap to reflect tables from a schema other than the default without the need to resort to calling MetaData.reflect directly. Change-Id: Ie73cb113bd6d115555c09c5efc33d27ad2c9c512 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/237
* | | | Merge "Add an init_scalar event for attributes"mike bayer2016-06-026-6/+261
|\ \ \ \ | |_|/ / |/| | |
| * | | Add an init_scalar event for attributesMike Bayer2016-06-026-6/+261
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This allows us to build default-setting recipes such as one that allows us to actively read column-level defaults. An example suite is also added. Change-Id: I7b022d52cc89526132d5bc4201ac27fea4cf088d Fixes: #1311
* | | - limit oracle DB reaps to identifiers generated from thisMike Bayer2016-06-025-8/+25
| | | | | | | | | | | | | | | | | | run to prevent race conditions against concurrent runs Change-Id: I065d1cec346ea7af03792c3cc2f30766f73c2bd3
* | | Merge "Skip UniqueConstraint marked by unique=True in tometadata"mike bayer2016-06-023-1/+43
|\ \ \ | |/ / |/| |
| * | Skip UniqueConstraint marked by unique=True in tometadataMike Bayer2016-06-023-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes an issue where a Column would be copied with unique=True and at the same time the UniqueConstraint would also be copied, leading to duplicate UniqueConstraints in the target table, when tometadata() is used. Imitates the same logic used by index=True/Index to avoid duplicates. For some reason a fix was implemented for Index long ago but never for UniqueConstraint. Change-Id: Ie622ee912a6fb8bf0ea900a8b09d78c7ebc79fc0 Fixes: #3721
* | | Merge "Add postgresql_tablespace option on Index"mike bayer2016-06-024-1/+84
|\ \ \ | |/ / |/| |
| * | Add postgresql_tablespace option on Indexbeenje2016-06-014-1/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | This complements the same-named parameter available on Table. Fixes: #3720 Change-Id: I56e081e2a551f37c3f392ca4b301c9ef82b94e59 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/233
* | | - don't raise for stray gc connection. this just happensMike Bayer2016-06-021-2/+3
|/ / | | | | | | | | | | | | sometimes and it really breaks the build once this error occurs. Change-Id: I577c78d623b22a6429f8b083fe08821bc467eb7a
* | Implemented CHECK constraint reflection for SQLite and PostgreSQLAlex Grönholm2016-06-0110-0/+210
| | | | | | | | | | | | Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com> Change-Id: Ie6cf2d2958d1c567324db9e08fef2d3186e97350 Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/80
* | Use new mxODBC 3.3.4 varbinary null symbolSheila Allen2016-05-313-1/+38
| | | | | | | | | | | | | | | | | | Use new mxODBC 3.3.4 varbinary null symbol with VARBINARY data types when value is None(based on similar change to pyodbc). Fix a test to pass on mxODBC starting w 3.3.3 version Change-Id: Id703ecb51ebc5db149c81fef124f673433606c7f Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/58
* | Convert readthedocs link for their .org -> .io migration for hosted projectspr/278Adam Chainz2016-05-299-9/+9
| | | | | | | | | | | | | | | | As per their email ‘Changes to project subdomains’: > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard. Test Plan: Manually visited all the links I’ve modified.
* | Merge remote-tracking branch 'origin/pr/270'Mike Bayer2016-05-248-8/+8
|\ \
| * | Spelling fixes: "an SQL" -> "a SQL", see #266pr/270Ville Skyttä2016-05-054-4/+4
| | |
| * | Spelling fixes: "the a"Ville Skyttä2016-05-054-4/+4
| | |
* | | Merge remote-tracking branch 'origin/pr/274'Mike Bayer2016-05-241-1/+1
|\ \ \
| * | | Fix typo in config result.py docspr/274vytotas2016-05-161-1/+1
| | | |
* | | | Repair dictlike-polymorphicMike Bayer2016-05-242-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dictlike-polymorphic was broken by the change in 1714e0d6ef28411e9c6633018564af1cae58c3d9. Use the new style of inheritance. Fixes: #3704 Change-Id: I3509ef4bf7772dd6994daf600accf4a2c5eb6973
* | | | 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