summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove uneeded import from code examplepr/60Wichert Akkerman2014-01-201-1/+0
| | | | | This had me reread the code twice to see if I missed why the import was present.
* fix typoMike Bayer2014-01-191-1/+1
|
* Merge pull request #59 from wichert/doc-relationship-typomike bayer2014-01-191-1/+1
|\ | | | | Fix a typo in the relationship docs
| * Fix a typo in the relationship docspr/59Wichert Akkerman2014-01-161-1/+1
| | | | | | | | | | The text refers to ``boston_addresses``, while the code sample uses ``addresses``.
* | - alter behavior such that dialect_kwargs is still immutable, butMike Bayer2014-01-192-28/+53
| | | | | | | | | | | | now represents exactly the kwargs that were passed, and not the defaults. the defaults are still in dialect_options. This allows repr() schemes such as that of alembic to not need to look through and compare for defaults.
* | - some test fixesMike Bayer2014-01-194-41/+33
| | | | | | | | - clean up some shenanigans in reflection
* | akiban-> foundationdbMike Bayer2014-01-181-3/+2
| |
* | - implement kwarg validation and type system for dialect-specificMike Bayer2014-01-1816-81/+562
| | | | | | | | | | arguments; [ticket:2866] - add dialect specific kwarg functionality to ForeignKeyConstraint, ForeignKey
* | credit to Derek HarlandMike Bayer2014-01-181-0/+1
| |
* | - changelog for pullreq:11Mike Bayer2014-01-182-1/+17
| | | | | | | | - be specific about version 0.9.2
* | Merge branch 'patch-msql-pkc-clustered' of bitbucket.org:dharland/sqlalchemy ↵Mike Bayer2014-01-184-8/+118
|\ \ | | | | | | | | | into m
| * | Bug Fix: Stop generating bad sql if an empty UniqueConstraint() is givendonkopotamus2014-01-173-0/+26
| | |
| * | Support mssql_clustered option on UniqueConstraint (plus docs and test)donkopotamus2014-01-172-4/+41
| | |
| * | Remove support for mssql_clustered on Tabledonkopotamus2014-01-172-27/+6
| | |
| * | Support mssql_clustered option in mssql dialect for both Table and ↵donkopotamus2014-01-142-8/+76
| | | | | | | | | | | | PrimaryKeyConstraint
| * | Merged zzzeek/sqlalchemy into masterDerek Harland2014-01-14228-1345/+5913
| |\ \
* | | | cx_oracle is now "conditional" on py2kMike Bayer2014-01-171-3/+5
| | | |
* | | | - rework Oracle to no longer do its own unicode conversion; this has been ↵Mike Bayer2014-01-175-17/+104
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | observed to be very slow. this now has the effect of producing "conditional" unicode conversion for the Oracle backend, as it still returns NVARCHAR etc. as unicode [ticket:2911] - add new "conditional" functionality to unicode processors; the C-level function now uses PyUnicode_Check() as a fast alternative to the isinstance() check in Python
* | | even simplerMike Bayer2014-01-151-8/+4
| | |
* | | - should close the session before rolling back the transactionMike Bayer2014-01-151-3/+44
| | | | | | | | | | | | | | | - make section title actually say, "such as for test suites" - add topic section detailing an evented approach to allowing ROLLBACK by using savepoint
* | | - changelog + test for pullreq github 58Mike Bayer2014-01-142-0/+16
| | |
* | | Merge pull request #58 from kstark/patch-1mike bayer2014-01-141-1/+1
|\ \ \ | | | | | | | | Fix TypeError for class_mapper called w/ iterable
| * | | Fix TypeError for class_mapper called w/ iterablepr/58Kyle Stark2014-01-131-1/+1
| | | | | | | | | | | | When the class_ passed is not a mapped class but is actually an iterable, the string formatting operation fails with a TypeError, and the expected ArgumentError is not raised. Calling code which is using reflection and expects this error will fail (e.g. the sadisplay module).
* | | | - _cursor_execute() will close the cursor on error; oracle doesn't allow ↵Mike Bayer2014-01-132-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | double close - ensure no iterator changed size issues in testing.engines
* | | | - Fixed a bug involving the new flattened JOIN structures whichMike Bayer2014-01-133-4/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are used with :func:`.joinedload()` (thereby causing a regression in joined eager loading) as well as :func:`.aliased` in conjunction with the ``flat=True`` flag and joined-table inheritance; basically multiple joins across a "parent JOIN sub" entity using different paths to get to a target class wouldn't form the correct ON conditions. An adjustment / simplification made in the mechanics of figuring out the "left side" of the join in the case of an aliased, joined-inh class repairs the issue. [ticket:2908]
* | | | - a little bit of profile bump, just on insert not too concernedMike Bayer2014-01-131-3/+3
| |_|/ |/| |
* | | - The MySQL CAST compilation now takes into account aspects of a stringMike Bayer2014-01-138-34/+121
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type such as "charset" and "collation". While MySQL wants all character- based CAST calls to use the CHAR type, we now create a real CHAR object at CAST time and copy over all the parameters it has, so that an expression like ``cast(x, mysql.TEXT(charset='utf8'))`` will render ``CAST(t.col AS CHAR CHARACTER SET utf8)``. - Added new "unicode returns" detection to the MySQL dialect and to the default dialect system overall, such that any dialect can add extra "tests" to the on-first-connect "does this DBAPI return unicode directly?" detection. In this case, we are adding a check specifically against the "utf8" encoding with an explicit "utf8_bin" collation type (after checking that this collation is available) to test for some buggy unicode behavior observed with MySQLdb version 1.2.3. While MySQLdb has resolved this issue as of 1.2.4, the check here should guard against regressions. The change also allows the "unicode" checks to log in the engine logs, which was not previously the case. [ticket:2906]
* | update changelog from 0.3.2 to 0.3.4, re-patching the part of ↵Mike Bayer2014-01-131-1/+1
| | | | | | | | | | | | 2775c95b1ee30831216cc5 that was intended
* | revert r2775c95b1ee30831216cc5 which was mostly an inadvertent commit, ↵Mike Bayer2014-01-134-44/+23
| | | | | | | | except for the changelog part
* | - continue with [ticket:2907] and further clean up how we set upMike Bayer2014-01-133-19/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | _reset_agent, so that it's local to the various begin_impl(), rollback_impl(), etc. this allows setting/resetting of the flag to be symmetric. - don't set _reset_agent if it's not None, don't unset it if it isn't our own transaction. - make sure we clean it out in close(). - basically, we're dealing here with pools using "threadlocal" that have a counter, other various mismatches that the tests bring up - test for recover() now has to invalidate() the previous connection, because closing it actually rolls it back (e.g. this test was relying on the broken behavior).
* | - dont run deletes hereMike Bayer2014-01-131-0/+1
| |
* | - :class:`.Connection` now associates a newMike Bayer2014-01-125-20/+299
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | :class:`.RootTransaction` or :class:`.TwoPhaseTransaction` with its immediate :class:`._ConnectionFairy` as a "reset handler" for the span of that transaction, which takes over the task of calling commit() or rollback() for the "reset on return" behavior of :class:`.Pool` if the transaction was not otherwise completed. This resolves the issue that a picky transaction like that of MySQL two-phase will be properly closed out when the connection is closed without an explicit rollback or commit (e.g. no longer raises "XAER_RMFAIL" in this case - note this only shows up in logging as the exception is not propagated within pool reset). This issue would arise e.g. when using an orm :class:`.Session` with ``twophase`` set, and then :meth:`.Session.close` is called without an explicit rollback or commit. The change also has the effect that you will now see an explicit "ROLLBACK" in the logs when using a :class:`.Session` object in non-autocommit mode regardless of how that session was discarded. Thanks to Jeff Dairiki and Laurence Rowe for isolating the issue here. [ticket:2907]
* | - add new event PoolEvents.invalidate(). allows interception of invalidationMike Bayer2014-01-126-55/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | events including auto-invalidation, which is useful both for tests here as well as detecting failure conditions within the "reset" or "close" cases. - rename the argument for PoolEvents.reset() to dbapi_connection and connection_record to be consistent with everything else. - add new documentation sections on invalidation, including auto-invalidation and the invalidation process within the pool. - add _ConnectionFairy and _ConnectionRecord to the pool documentation. Establish docs for common _ConnectionFairy/_ConnectionRecord methods and accessors and have PoolEvents docs refer to _ConnectionRecord, since it is passed to all events. Rename a few _ConnectionFairy methods that are actually private to pool such as _checkout(), _checkin() and _checkout_existing(); there should not be any external code calling these
* | - bump up how many args for "named arg style" to fourMike Bayer2014-01-121-1/+1
| |
* | - changelog for pullreq github 57Mike Bayer2014-01-121-0/+7
| |
* | - pullreq github 55 is in the wrong changelog! 0.9.2...Mike Bayer2014-01-121-2/+5
| |
* | Merge pull request #57 from sdague/mastermike bayer2014-01-121-0/+4
|\ \ | | | | | | expose SchemaVisitor in the compatibility layer
| * | expose SchemaVisitor in the compatibility layerpr/57Sean Dague2014-01-111-0/+4
|/ / | | | | | | | | | | | | | | sqlalchemy-migrate uses SchemaVisitor. It was one of the only objects that changed namespaces without compatibility that we use. Would love to get this added to remove a work around we need at https://review.openstack.org/#/c/66156/
* | - add a CLI to determine waht kind of test to runMike Bayer2014-01-111-19/+25
| |
* | new changelogMike Bayer2014-01-114-23/+44
| |
* | - fix some function mismatch in profilingMike Bayer2014-01-091-6/+3
| |
* | 0.9.2Mike Bayer2014-01-091-1/+1
| |
* | changelog for pullreq github:55pullreq55Mike Bayer2014-01-091-0/+11
| |
* | Use PyMODINIT_FUNCpr/55cgohlke2014-01-081-1/+1
| |
* | Use PyMODINIT_FUNCcgohlke2014-01-081-1/+1
| |
* | Use PyMODINIT_FUNCcgohlke2014-01-081-1/+1
| |
* | - fixesMike Bayer2014-01-081-4/+4
| |
* | - add more critical behavioral change for [ticket:2804]Mike Bayer2014-01-081-1/+49
| |
* | - 0.9.1rel_0_9_1Mike Bayer2014-01-052-2/+3
| |
* | - these tests are really old but trying to make sure everything is closed outMike Bayer2014-01-051-40/+40
| |