summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | - hyperlink all the column operators listed in the ORM tutorial common ↵Mike Bayer2014-05-241-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | filter operators section - add language to MATCH explicitly stating this operator varies by backend and is not available on SQLite, as the tutorial defaults to SQLite to start with, fix #3059 - on the actual match() documentation fix this up to be more accurate, list some example renderings for different backends. again mention SQLite not supported
* | | - document the compiler_kwargs accessorMike Bayer2014-05-231-0/+20
| | | | | | | | | | | | - add new FAQ for rendering SQL as a string
* | | Merge branch 'ticket_3034'Mike Bayer2014-05-2311-68/+258
|\ \ \
| * | | - more tests, including backend testsMike Bayer2014-05-164-48/+173
| | | | | | | | | | | | | | | | - implement for SQL server, use window functions when simple limit/offset not available
| * | | Merge branch 'issue_3034' of ↵Mike Bayer2014-05-169-54/+119
| |\ \ \ | | |_|/ | |/| | | | | | https://bitbucket.org/dobesv/sqlalchemy/branch/issue_3034 into ticket_3034
| | * | Remove unused importDobes Vandermeer2014-05-091-6/+29
| | | |
| | * | Remove unused importDobes Vandermeer2014-04-251-1/+1
| | | |
| | * | Remove unused importDobes Vandermeer2014-04-251-1/+0
| | | |
| | * | Remove unused importDobes Vandermeer2014-04-251-1/+0
| | | |
| | * | Remove unused importDobes Vandermeer2014-04-251-1/+0
| | | |
| | * | Pull out offset/limit to a local variable to reduce the impact of the ↵Dobes Vandermeer2014-04-251-8/+10
| | | | | | | | | | | | | | | | inefficient select._offset and select._limit operations.
| | * | Remove unused importDobes Vandermeer2014-04-251-1/+0
| | | |
| | * | Use _offset_clause and _limit_clause, which are always Visitable and usually ↵Dobes Vandermeer2014-04-257-43/+74
| | | | | | | | | | | | | | | | a BindParameter, instead of _offset and _limit in GenerativeSelect.
| | * | Extract limit/offset to variablesDobes Vandermeer2014-04-251-5/+7
| | | |
| | * | Proof-of-concept implementation of supporting bindparam for offset and limit ↵Dobes Vandermeer2014-04-245-13/+24
| | | | | | | | | | | | | | | | on a query.
* | | | - switch master to be 1.0Mike Bayer2014-05-231-1/+1
| | | |
* | | | - mark translate_row, create_instance, populate_instance, append_result as ↵Mike Bayer2014-05-232-3/+25
| | | | | | | | | | | | | | | | legacy
* | | | inliningMike Bayer2014-05-193-17/+27
| | | |
* | | | Revert "remove events nobody uses...?"Mike Bayer2014-05-191-4/+60
| | | | | | | | | | | | | | | | This reverts commit 72a09d9e5c54e3ee8b3561da144d8379ce1df747.
* | | | remove events nobody uses...?Mike Bayer2014-05-191-60/+4
| | | |
* | | | - some inlining, speed up identity mapMike Bayer2014-05-193-45/+69
|/ / /
* | | - changelog for #2785Mike Bayer2014-05-161-3/+6
| | | | | | | | | | | | | | | - refactor tests a bit fixes #2785
* | | Merge branch 'zero_indexes-param-for-postgresql-ARRAY-type' of ↵Mike Bayer2014-05-161-1/+16
|\ \ \ | | | | | | | | | | | | https://bitbucket.org/LevonXXL/sqlalchemy/overview into t
| * | | zero_indexes-param-for-postgresql-ARRAY-typeAlexey Terentev2014-05-131-1/+16
| | | |
* | | | - Fixed bug in mutable extension where :class:`.MutableDict` did notMike Bayer2014-05-141-0/+5
| | | | | | | | | | | | | | | | | | | | report change events for the ``setdefault()`` dictionary operation. fixes #3051
* | | | Posgtresql -> PostgreSQLWieland Hoffmann2014-05-121-1/+1
| | | |
* | | | Merged in WSMcG/sqlalchemy (pull request #15) Mike Bayer2014-05-121-1/+1
|\ \ \ \ | |/ / / |/| | | Added optional '=' to MySQL KEY_BLOCK_SIZE regex
| * | | Added optional '=' to MySQL KEY_BLOCK_SIZE regexW. Sean McGivern2014-04-191-1/+1
| | | |
* | | | Merge pull request #91 from smurfix/de_apostroph_ifymike bayer2014-05-1118-21/+21
|\ \ \ \ | | | | | | | | | | Documentation fix-up: "its" vs. "it's"
| * | | | Documentation fix-up: "its" vs. "it's"pr/91Matthias Urlichs2014-05-1118-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-101-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | - Fixed some "double invalidate" situations were detected whereMike Bayer2014-05-102-3/+14
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-081-3/+6
| |_|/ |/| | | | | | | | | | | | | | | | | 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
* | | - Fixed bug where the combination of "limit" rendering asMike Bayer2014-04-301-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | "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-2636-68/+68
| |/ |/| | | | | Found using: https://github.com/intgr/topy
* | Added some links in session docsbenselme2014-04-231-35/+39
| |
* | - The "primaryjoin" model has been stretched a bit further to allowMike Bayer2014-04-192-27/+47
| | | | | | | | | | | | | | | | | | | | 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-195-13/+46
|/ | | | | | | 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-171-14/+8
| | | | | | | 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-151-0/+2
| | | | | adding an argument for a construct not previously included for any special arguments would fail. fixes #3024
* use importlib.machinery to load modules instead of imp under Python 3.3 and ↵Matt Chisholm2014-04-141-2/+7
| | | | | | greater part of #2830
* added an SSL related connection errorantti_haapala2014-04-111-1/+3
|
* - Fixed regression introduced in 0.9 where new "ORDER BY <labelname>"Mike Bayer2014-04-101-1/+1
| | | | | | 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-092-2/+37
| | | | | | | 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
* - Restored the import for :class:`.Function` to the ↵Mike Bayer2014-04-051-1/+1
| | | | | | ``sqlalchemy.sql.expression`` import namespace, which was removed at the beginning of 0.9.
* - add some docs for the instancestate linkage to the inspection systemMike Bayer2014-04-041-5/+67
|
* escape backslashMike Bayer2014-04-021-1/+1
|
* - reverse order of columns in sample CTEs as this is a UNION and the cols ↵Mike Bayer2014-04-022-4/+2
| | | | | | | | | | need to line up - alter this in the unit tests as well as these queries were just copied from the tests - remove the included_parts.join(parts) from the core CTE doc (also just copied from the test, where we want to make sure joins don't get screwed up with the CTE) as it doesn't contribute to the query itself fixes #3014
* - back off the callcounts a bit for the boolean fixMike Bayer2014-04-011-3/+4
| | | | - rewrite callcounts for select()
* - Fixes to the newly enhanced boolean coercion in :ticket:`2804` whereMike Bayer2014-04-012-3/+3
| | | | | | | the new rules for "where" and "having" woudn't take effect for the "whereclause" and "having" kw arguments of the :func:`.select` construct, which is also what :class:`.Query` uses so wasn't working in the ORM either. fixes #3013 re: #2804