summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a _proxyImpl helper classpr/92Matthias Urlichs2014-05-191-1/+4
| | | | | | | | | | | | | | | | formalchemy does the following: if isinstance(self._impl, ScalarAttributeImpl) or self._impl.__class__.__name__ == '_ProxyImpl': # ProxyImpl is a one-off class for each synonym, can't import it # normal property, mapped to a single column from the main table prop = getattr(self._property, '_proxied_property', None) if prop is None: prop = self._property return tuple(prop.local_columns) With this patch, this test can be replaced with if isinstance(self._impl, (ScalarAttributeImpl,ProxyImpl): …
* - changelog for #2785Mike Bayer2014-05-163-32/+32
| | | | | - refactor tests a bit fixes #2785
* Merge branch 'zero_indexes-param-for-postgresql-ARRAY-type' of ↵Mike Bayer2014-05-162-1/+69
|\ | | | | | | https://bitbucket.org/LevonXXL/sqlalchemy/overview into t
| * zero_indexes-param-for-postgresql-ARRAY-typeAlexey Terentev2014-05-132-1/+69
| |
* | typoMike Bayer2014-05-161-1/+1
| |
* | - add lots more to the profiling sectionMike Bayer2014-05-161-340/+497
| | | | | | | | | | | | - add the query profiling recipe, fix it with a stack as we now nest those calls occasionally - tabs to spaces
* | Merge branch 'master' into rel_0_9Mike Bayer2014-05-151-0/+6
|\ \
| * \ Merged in gunnlaugur/sqlalchemy (pull request #19) Mike Bayer2014-05-151-0/+6
| |\ \ | | | | | | | | Add note on PostgreSQL config for test runs
| | * | Add note on PostgreSQL config for test runsGunnlaugur Þór Briem2014-05-151-0/+6
| |/ / | | | | | | | | | | | | Several tests on PostgreSQL depend on English-language text search config being the default in the test DB. This adds a note about that.
* | | Merge branch 'master' into rel_0_9Mike Bayer2014-05-143-0/+30
|\ \ \ | |/ /
| * | - Fixed bug in mutable extension where :class:`.MutableDict` did notMike Bayer2014-05-143-0/+30
| | | | | | | | | | | | | | | report change events for the ``setdefault()`` dictionary operation. fixes #3051
| * | Merge branch 'master' of bitbucket.org:zzzeek/sqlalchemyMike Bayer2014-05-120-0/+0
| |\ \
* | \ \ Merge branch 'master' into rel_0_9Mike Bayer2014-05-121-135/+249
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | - add a new FAQ section "performance", put the profiling article there,Mike Bayer2014-05-121-135/+249
| | | | | | | | | | | | move the insert rows article there as well
| * | Posgtresql -> PostgreSQLWieland Hoffmann2014-05-121-1/+1
| | |
* | | Merged in mineo/sqlalchemy/mineo/posgtresql-postgresql-1399232068499 (pull ↵Mike Bayer2014-05-121-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | request #17) Posgtresql -> PostgreSQL
| * | Posgtresql -> PostgreSQLWieland Hoffmann2014-05-041-1/+1
| | |
* | | changelog for pullreq bitbucket:15Mike Bayer2014-05-121-0/+9
| | |
* | | Merged in WSMcG/sqlalchemy (pull request #15) Mike Bayer2014-05-122-1/+5
|\ \ \ | |_|/ |/| | Added optional '=' to MySQL KEY_BLOCK_SIZE regex
| * | Added optional '=' to MySQL KEY_BLOCK_SIZE regexW. Sean McGivern2014-04-192-1/+5
| | |
* | | Merge pull request #91 from smurfix/de_apostroph_ifymike bayer2014-05-1128-35/+35
|\ \ \ | | | | | | | | Documentation fix-up: "its" vs. "it's"
| * | | Documentation fix-up: "its" vs. "it's"pr/91Matthias Urlichs2014-05-1128-35/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed ungrammatical apostrophes from documentation, replacing "it's" with "its" where appropriate (but in a few cases with "it is" when that read better). While doing that, I also fixed a couple of minor typos etc. as I noticed them.
* | | | - Fixed ORM bug where the :func:`.class_mapper` function would maskMike Bayer2014-05-103-2/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | AttributeErrors or KeyErrors that should raise during mapper configuration due to user errors. The catch for attribute/keyerror has been made more specific to not include the configuration step. fixes #3047
* | | | - stress test for invalidationMike Bayer2014-05-101-0/+51
| | | |
* | | | - Fixed some "double invalidate" situations were detected whereMike Bayer2014-05-103-3/+36
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a connection invalidation could occur within an already critical section like a connection.close(); ultimately, these conditions are caused by the change in :ticket:`2907`, in that the "reset on return" feature calls out to the Connection/Transaction in order to handle it, where "disconnect detection" might be caught. However, it's possible that the more recent change in :ticket:`2985` made it more likely for this to be seen as the "connection invalidate" operation is much quicker, as the issue is more reproducible on 0.9.4 than 0.9.3. Checks are now added within any section that an invalidate might occur to halt further disallowed operations on the invalidated connection. This includes two fixes both at the engine level and at the pool level. While the issue was observed with highly concurrent gevent cases, it could in theory occur in any kind of scenario where a disconnect occurs within the connection close operation. fixes #3043 ref #2985 ref #2907 - add some defensive checks during an invalidate situation: 1. _ConnectionRecord.invalidate might be called twice within finalize_fairy if the _reset() raises an invalidate condition, invalidates, raises and then goes to invalidate the CR. so check for this. 2. similarly within Conneciton, anytime we do handle_dbapi_error(), we might become invalidated. so a following finally must check self.__invalid before dealing with the connection any futher.
* | | - Fixed bug where :meth:`.Table.update` and :meth:`.Table.delete`Mike Bayer2014-05-085-4/+49
| |/ |/| | | | | | | | | | | would produce an empty WHERE clause when an empty :func:`.and_()` or :func:`.or_()` or other blank expression were applied. This is now consistent with that of :func:`.select`. fixes #3045
* | - critically, py.test for unknown reasons *SKIPS* tests that have an ↵Mike Bayer2014-05-021-27/+7
| | | | | | | | | | | | __init__() method. No clue. nosetests doesn't do this. concerning that other tests might have the same issue.
* | doc fixesMike Bayer2014-05-012-1/+2
| |
* | - Fixed bug where the combination of "limit" rendering asMike Bayer2014-04-304-15/+58
| | | | | | | | | | | | | | | | | | "SELECT FIRST n ROWS" using a bound parameter (only firebird has both), combined with column-level subqueries which also feature "limit" as well as "positional" bound parameters (e.g. qmark style) would erroneously assign the subquery-level positions before that of the enclosing SELECT, thus returning parameters which are out of order. Fixes #3038
* | Fix many typos throughout the codebasepr/85Alex Gaynor2014-04-2695-224/+224
| | | | | | | | Found using: https://github.com/intgr/topy
* | - add a note about versioning only applying to flushesMike Bayer2014-04-251-0/+10
| |
* | - document that joinedload/eagerload work with of_type() + with_polymoprhic()Mike Bayer2014-04-231-3/+19
| |
* | Merged in benselme/sqlalchemy/docs_linking (pull request #16) Mike Bayer2014-04-231-35/+39
|\ \ | | | | | | Added some links in session docs
| * | Added some links in session docsbenselme2014-04-231-35/+39
|/ /
* | - The "primaryjoin" model has been stretched a bit further to allowMike Bayer2014-04-196-29/+301
| | | | | | | | | | | | | | | | | | | | a join condition that is strictly from a single column to itself, translated through some kind of SQL function or expression. This is kind of experimental, but the first proof of concept is a "materialized path" join condition where a path string is compared to itself using "like". The :meth:`.Operators.like` operator has also been added to the list of valid operators to use in a primaryjoin condition. fixes #3029
* | - Liberalized the contract for :class:`.Index` a bit in that you canMike Bayer2014-04-198-25/+158
|/ | | | | | | specify a :func:`.text` expression as the target; the index no longer needs to have a table-bound column present if the index is to be manually added to the table, either via inline declaration or via :meth:`.Table.append_constraint`. fixes #3028
* - Revised the query used to determine the current default schema nameMike Bayer2014-04-172-14/+18
| | | | | | | to use the ``database_principal_id()`` function in conjunction with the ``sys.database_principals`` view so that we can determine the default schema independently of the type of login in progress (e.g., SQL Server, Windows, etc). fixes #3025
* - Fixed bug in new :meth:`.DialectKWArgs.argument_for` method whereMike Bayer2014-04-153-0/+21
| | | | | adding an argument for a construct not previously included for any special arguments would fail. fixes #3024
* changelogMike Bayer2014-04-141-0/+9
|
* Merged in goodscloud/sqlalchemy (pull request #14) Mike Bayer2014-04-144-6/+15
|\ | | | | fixes for #2830
| * use importlib.machinery to load modules instead of imp under Python 3.3 and ↵Matt Chisholm2014-04-142-4/+13
| | | | | | | | | | | | greater part of #2830
| * remove unused importMatt Chisholm2014-04-141-1/+0
| |
| * fix unclosed file ResourceWarningMatt Chisholm2014-04-141-1/+2
|/ | | | part of #2830
* - Added a new "disconnect" message "connection has been closed unexpectedly".Mike Bayer2014-04-111-0/+12
| | | | | This appears to be related to newer versions of SSL. Pull request courtesy Antti Haapala.
* Merged in ↵Mike Bayer2014-04-111-1/+3
|\ | | | | | | | | | | antti_haapala/sqlalchemy/antti_haapala/added-an-ssl-related-connection-error-1397245079299 (pull request #13) added an SSL related connection error
| * added an SSL related connection errorantti_haapala2014-04-111-1/+3
|/
* Merge pull request #84 from Daniel-B-Smith/mastermike bayer2014-04-111-1/+1
|\ | | | | Fixed bug in example code on orm session page.
| * Fixed bug in example code.pr/84Daniel Smith2014-04-101-1/+1
| |
* | - Fixed regression introduced in 0.9 where new "ORDER BY <labelname>"Mike Bayer2014-04-103-1/+18
|/ | | | | | feature from :ticket:`1068` would not apply quoting rules to the label name as rendered in the ORDER BY. fix #3020, re: #1068
* - Added new utility function :func:`.make_transient_to_detached` which canMike Bayer2014-04-095-3/+95
| | | | | | | be used to manufacture objects that behave as though they were loaded from a session, then detached. Attributes that aren't present are marked as expired, and the object can be added to a Session where it will act like a persistent one. fix #3017