summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Replace some uses of re.sub with str.lstrip/replacepr/280Ville Skyttä2016-06-043-3/+3
|
* - further adjustment to accomodate for the "ON" in "NO ACTION"Mike Bayer2016-06-032-3/+12
| | | | Change-Id: I734e4aec3701d7cf17813b561a1418cfeff1d473
* - missing test_needs_fk for this test, fixes mysql failureMike Bayer2016-06-031-0/+1
| | | | Change-Id: I2dc6961f9b692a8bb6bfb2296d159df145dec679
* Ensure "options" present for unnamed / unlocatable FKMike Bayer2016-06-032-13/+45
| | | | | | | Also ensure the regular expression and subsequent matching is case insensitive, add more tests Change-Id: Ie4aa971dcbffca94e78965e22982478eccbf8597
* Ensure 'options' is always present in foreign key infoMike Bayer2016-06-034-2/+59
| | | | | | | | | Regarding 0e88bcc30ed49193b91f248123f526fa30007f22, "options" needs to be present as a key in the dictionary because Alembic uses this as a guide to know if the backend is even capable of reporting on foreign key options. Change-Id: I271090f75088cfeec24315a878060f9b8a265335
* Merge "Add SKIP LOCKED support for Postgresql, Oracle"mike bayer2016-06-039-5/+94
|\
| * Add SKIP LOCKED support for Postgresql, OracleJack Zhou2016-06-029-5/+94
| | | | | | | | | | | | | | | | This adds `SELECT ... FOR UPDATE SKIP LOCKED`/ `SELECT ... FOR SHARE SKIP LOCKED` rendering. Change-Id: Id1dc4f1cafc1de23f397a6f73d54ab2c58d5910d Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/86
* | Merge "Reflect ON DELETE and ON UPDATE for SQLite foreign keys"mike bayer2016-06-034-4/+68
|\ \
| * | Reflect ON DELETE and ON UPDATE for SQLite foreign keysMichal Petrucha2016-06-024-4/+68
| | | | | | | | | | | | | | | | | | Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com> Change-Id: Icd77ddbf851b1950f767022d67c8142b1b3c50f3 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/244
* | | - use a mock here, do away with timing problems for good. need to do thisMike Bayer2016-06-021-12/+18
|/ / | | | | | | | | | | for the rest of the timing tests Change-Id: I06a815b1500222126a4dbc2a9a5da3ef7847e321
* | Merge "Add schema argument to AutomapBase.prepare()"mike bayer2016-06-023-1/+55
|\ \
| * | 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
| |/