summaryrefslogtreecommitdiff
path: root/test/engine/test_pool.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | - the raw 2to3 runMike Bayer2013-04-271-15/+15
|/ | | | - went through examples/ and cleaned out excess list() calls
* - recognize that do_rollback() and do_commit() work with a DBAPI connection,Mike Bayer2012-11-221-5/+73
| | | | | | | | | | | | | | | | | | whereas the other do_rollback_twophase(), savepoint etc. work with :class:`.Connection`. the context on these are different as twophase/savepoint are available at the :class:`.Connection` level, whereas commit/rollback are needed at a lower level as well. Rename the argument to "dbapi_connection" when the conneciton is in fact the DBAPI interface. - start thinking about being able to track "autocommit" vs. "commit", but not sure we have a need for this yet. - have Pool call out to a Dialect for all rollback/commit/close operations now. Pool no longer calls DBAPI methods directly. May use this for a workaround for [ticket:2611] - add a new Pool event reset() to allow the pool's reset of the connection to be intercepted. - remove methods in Informix dialect which appear to be hardcoding some isolation settings on new Transaction only; the isolation API should be implemented for Informix. also removed "flag" for transaction commit/rollback being not available; this should be based on server/DBAPI version and we will need someone with test access in order to help determine how this should work
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-5/+5
| | | | | | | become an externally usable package but still remains within the main sqlalchemy parent package. in this system, we use kind of an ugly hack to get the noseplugin imported outside of the "sqlalchemy" package, while still making it available within sqlalchemy for usage by third party libraries.
* - add req's for predictable gcMike Bayer2012-09-051-0/+2
|
* - [feature] Added support for .info dictionary argument toMike Bayer2012-08-241-1/+1
| | | | | | column_property(), relationship(), composite(). All MapperProperty classes have an auto-creating .info dict available overall.
* try to loosen the times up here to reduce failures due to latencyMike Bayer2012-07-171-18/+18
|
* notify_all workaround for 2.5Mike Bayer2012-06-251-0/+1
|
* - change notify to notify_all() so all waiters exit immediately,Mike Bayer2012-06-251-6/+39
| | | | continuing [ticket:2522]
* - [bug] Fixed bug wherebyMike Bayer2012-06-221-0/+63
| | | | | | | | | | | | a disconnect detect + dispose that occurs when the QueuePool has threads waiting for connections would leave those threads waiting for the duration of the timeout on the old pool. The fix now notifies those waiters with a special exception case and has them move onto the new pool. This fix may or may not be ported to 0.7. [ticket:2522]
* ensure sa_pool_key isn't passed to connectMike Bayer2011-09-211-0/+15
|
* - The recreate() method in all pool classes usesMike Bayer2011-08-141-1/+2
| | | | | | | self.__class__ to get at the type of pool to produce, in the case of subclassing. Note there's no usual need to subclass pools. [ticket:2254]
* - hardcore force every connection into a strong-referenced set, rollback on ↵Mike Bayer2011-04-251-3/+4
| | | | | | | | | every test, close on every context. this uses pool events but bypasses the pool's fairy/record/dispose services. pypy still seems to expose some holes in that at least as far as what some (or maybe just one, cant find it yet) of the tests does. haven't tested this too deeply, just on sqlite + postgres, cypthon 2.7 + pypy. will see what the buildbot says
* - The "pool.manage" feature doesn't use pickleMike Bayer2011-04-051-14/+15
| | | | anymore to hash the arguments for each pool.
* - remove test.sql._base, test.engine._base, test.orm._base, move those ↵Mike Bayer2011-03-271-2/+3
| | | | | | | classes to a new test.lib.fixtures module - move testing.TestBase to test.lib.fixtures - massive search and replace
* - Fixed bug in QueuePool, SingletonThreadPool wherebyMike Bayer2011-03-221-1/+47
| | | | | | | | | connections that were discarded via overflow or periodic cleanup() were not explicitly closed, leaving garbage collection to the task instead. This generally only affects non-reference-counting backends like Jython and Pypy. Thanks to Jaimy Azle for spotting this. [ticket:2102]
* - Fixed AssertionPool regression bug. A replacement of finalizeMike Bayer2011-03-161-1/+19
| | | | | | logic did the wrong thing, but then also the logic it replaced also doesn't seem like its needed. If it is, would rather have a test case first so its out for now, added tests for assertionpool. [ticket:2097]
* - whitespace removal bonanzaMike Bayer2011-01-021-47/+47
|
* - removes the "on_" prefix.Mike Bayer2010-12-301-28/+28
|
* - they don't want "on_". First step, change the naming convention on EventsMike Bayer2010-12-301-1/+1
| | | | so that non-events are just _name.
* new calling style: event.listen(target, identifier, fn)Mike Bayer2010-12-011-11/+11
|
* - sqlalchemy.test and nose plugin moves back to being entirelyMike Bayer2010-11-281-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | outside of "sqlalchemy" and under "test/". Rationale: - coverage plugin works without issue, without need for an awkward additional package install - command line for "nosetests" isn't polluted with SQLAlchemy options [ticket:1949]
| * - move sqlalchemy.test to test.libMike Bayer2010-11-151-3/+3
| |
* | - SessionEvents is on board and the event model is done, can start building ↵Mike Bayer2010-11-141-2/+32
| | | | | | | | 0.7 tip soon
* | - pool event tests that don't depend on deprecated listener system,Mike Bayer2010-11-141-101/+228
| | | | | | | | | | attempting "test just one thing" style - reorganize fixtures to come primarily from the base test class
* | - basic docsMike Bayer2010-11-091-0/+30
| | | | | | | | - poolevent accepts Engine as a target
* | dingMike Bayer2010-11-071-3/+3
| |
* | merge tipMike Bayer2010-10-021-1/+1
|\ \ | |/
| * - *Major* cleanup / modernization of the InformixMike Bayer2010-10-011-1/+1
| | | | | | | | | | dialect for 0.6, courtesy Florian Apolloner. [ticket:1906]
* | merge from tipMike Bayer2010-09-031-1/+1
|\ \ | |/
| * - replaced all self.__connection.is_valid withMike Bayer2010-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | "safe" self._connection_is_valid. - Fixed bug in Connection whereby if a "disconnect" event occurred in the "initialize" phase of the first connection pool connect, an AttributeError would be raised when the Connection would attempt to invalidate the DBAPI connection. [ticket:1894] - Connection.invalidate() can be called more than once and subsequent calls do nothing.
* | - reorganize events into cls->dispatch, which is an instance of _Dispatch.Mike Bayer2010-08-101-7/+7
| | | | | | | | | | | | cut down on extraneous stuff, cleanup The Event class never gets instantiated and its methods stay the same so that sphinx can get to it.
* | working with how this will be documented and having some probs with sphinxMike Bayer2010-08-091-4/+4
| |
* | - pretty much all tests passing, maybe some callcounts are offMike Bayer2010-07-251-13/+12
|/ | | | | - test suite adjusted to use engine/pool events and not listeners - deprecation warnings
* Python-tidy test/engine and test/aaa_profiling, 80% auto + 20% manual ↵Mike Bayer2010-07-111-74/+84
| | | | intervention
* - StaticPool now initializes, disposes and recreates withoutMike Bayer2010-03-191-0/+19
| | | | | | opening a new connection - the connection is only opened when first requested. dispose() also works on AssertionPool now. [ticket:1728]
* fix the timeout test once and for allMike Bayer2010-03-131-4/+5
|
* fix last commitPhilip Jenvey2010-03-081-1/+1
|
* small cleanupPhilip Jenvey2010-03-081-1/+1
|
* there we go, that was the stupid gc bugMike Bayer2010-03-011-0/+2
|
* some ms/odbc fixesMike Bayer2010-02-281-0/+1
|
* increase the timeout here to accommodate slowness on the buildbotMike Bayer2010-02-221-2/+6
|
* missing import, forcefully compile the expression to strPhilip Jenvey2010-01-261-1/+1
|
* oracle compatPhilip Jenvey2010-01-261-1/+1
|
* - The cursor associated with connection pool connectionsMike Bayer2009-12-031-1/+8
| | | | | (i.e. _CursorFairy) now proxies `__iter__()` to the underlying cursor correctly. [ticket:1632]
* fix StaticPool [ticket:1615]Mike Bayer2009-11-121-33/+34
|
* - The psycopg2 dialect now uses psycopg2's "unicode extension"Mike Bayer2009-10-261-5/+18
| | | | | | | | | | | | | | | | | | on all new connections, which allows all String/Text/etc. types to skip the need to post-process bytestrings into unicode (an expensive step due to its volume). Other dialects which return unicode natively (pg8000, zxjdbc) also skip unicode post-processing. - String/Text/Unicode types now skip the unicode() check on each result column value if the dialect has detected the DBAPI as returning Python unicode objects natively. This check is issued on first connect using "SELECT CAST 'some text' AS VARCHAR(10)" or equivalent, then checking if the returned object is a Python unicode. This allows vast performance increases for native-unicode DBAPIs, including pysqlite/sqlite3, psycopg2, and pg8000.
* close cursors: mostly fetchone -> firstPhilip Jenvey2009-09-111-1/+1
|
* merge 0.6 series to trunk.Mike Bayer2009-08-061-289/+341
|
* Implemented recreate() for StaticPoolJason Kirtland2009-07-101-3/+9
|
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-0/+664
See README.unittests for information on how to run the tests. [ticket:970]