summaryrefslogtreecommitdiff
path: root/test/engine
Commit message (Collapse)AuthorAgeFilesLines
* - apply a timeout to all join() calls for test_poolMike Bayer2013-11-171-5/+10
| | | | | | | - use thread.join() for waiters_handled test Conflicts: test/engine/test_pool.py
* - The regexp used by the :func:`.url.make_url` function now parsesMike Bayer2013-10-231-12/+19
| | | | ipv6 addresses, e.g. surrounded by brackets. [ticket:2851]
* Merge pull request #25 from gthb/ticket_2821mike bayer2013-09-291-0/+4
| | | | | | Hide password in URL and Engine __repr__ Conflicts: lib/sqlalchemy/engine/url.py
* use a different col here to keep oracle happyMike Bayer2013-09-021-2/+12
|
* plus some more adjustments for mysql, or in general if an Index refers toMike Bayer2013-08-281-1/+3
| | | | in-python only cols
* Fixed bug where using the ``column_reflect`` event to change the ``.key``Mike Bayer2013-08-281-4/+34
| | | | | | | | | of the incoming :class:`.Column` would prevent primary key constraints, indexes, and foreign key constraints from being correctly reflected. Also in 0.8.3. [ticket:2811] Conflicts: doc/build/changelog/changelog_09.rst
* try seeing if just clearing this ahead of time helpsMike Bayer2013-07-271-0/+1
|
* further tweakingMike Bayer2013-07-131-3/+2
|
* fix the scoping hereMike Bayer2013-07-131-2/+4
|
* fix missing import hereMike Bayer2013-07-121-0/+1
|
* Dialect.initialize() is not called a second time if an :class:`.Engine`Mike Bayer2013-07-111-3/+31
| | | | | | is recreated, due to a disconnect error. This fixes a particular issue in the Oracle 8 dialect, but in general the dialect.initialize() phase should only be once per dialect. [ticket:2776]
* - take advantage of 0.9's pool redesign a bit, addingMike Bayer2013-07-041-15/+65
| | | | | | | | | _ConnectionRecord.checkin() so that this functionality is encapsulated; is now called from two different locations for [ticket:2772]. - Fixed bug where :class:`.QueuePool` would lose the correct checked out count if an existing pooled connection failed to reconnect after an invalidate or recycle event. [ticket:2772]
* mark the tests that seem to be segfauling py3k+coverage so that we can ↵Mike Bayer2013-07-031-0/+7
| | | | | | exclude them at the nose command line
* - clean up some of the requires for cross-schema reflectionMike Bayer2013-07-021-7/+4
| | | | - add oracle profile counts
* fix python 2.5ismsMike Bayer2013-06-302-1/+5
|
* fix a missing stringio importMike Bayer2013-06-301-0/+2
|
* - replace most explicitly-named test objects called "Mock..." withMike Bayer2013-06-305-360/+354
| | | | | | | | | | | | actual mock objects from the mock library. I'd like to use mock for new tests so we might as well use it in obvious places. - use unittest.mock in py3.3 - changelog - add a note to README.unittests - add tests_require in setup.py - have tests import from sqlalchemy.testing.mock - apply usage of mock to one of the event tests. we can be using this approach all over the place.
* tweak the timings here to maximize chance of test successMike Bayer2013-06-291-31/+12
|
* Merge pull request #6 from eevee/propagate-reset-on-returnmike bayer2013-06-101-1/+2
| | | | Preserve reset_on_return when recreating a Pool.
* Fixed bug whereby using :meth:`.MetaData.reflect` across a remoteMike Bayer2013-06-031-0/+24
| | | | | | | | | | schema as well as a local schema could produce wrong results in the case where both schemas had a table of the same name. [ticket:2728] Conflicts: doc/build/changelog/changelog_09.rst lib/sqlalchemy/schema.py
* - cleanupMike Bayer2013-05-051-17/+20
| | | | - move the timeout here to 14 seconds as jenkins still chokes occasionally
* cleanupMike Bayer2013-05-041-79/+78
|
* missing commaMike Bayer2013-04-301-2/+2
|
* Updated mysqlconnector dialect to check for disconnect basedMike Bayer2013-04-291-13/+6
| | | | | on the apparent string message sent in the exception; tested against mysqlconnector 1.0.9.
* - test + changelog for [ticket:2691]Mike Bayer2013-04-181-1/+23
|
* Improvements to Connection auto-invalidationMike Bayer2013-04-111-14/+122
| | | | | | | | | | | | | handling. If a non-disconnect error occurs, but leads to a delayed disconnect error within error handling (happens with MySQL), the disconnect condition is detected. The Connection can now also be closed when in an invalid state, meaning it will raise "closed" on next usage, and additionally the "close with result" feature will work even if the autorollback in an error handling routine fails and regardless of whether the condition is a disconnect or not. [ticket:2695]
* Merged in nakagami/sqlalchemy/cymysql (pull request #42)Mike Bayer2013-03-073-2/+6
|\ | | | | | | cymysql support
| * fix decorator positionHajime Nakagami2013-03-021-1/+1
| |
| * mymysql dialectHajime Nakagami2013-03-011-0/+3
| |
| * avoid drop table in mysql+cymysql test because of deadlockHajime Nakagami2013-02-221-0/+1
| |
| * test for cymysqlHajime Nakagami2013-02-171-2/+2
| |
* | - :meth:`.MetaData.create_all` and :meth:`.MetaData.drop_all` willMike Bayer2013-03-021-0/+184
| | | | | | | | | | | | | | | | | | | | now accommodate an empty list as an instruction to not create/drop any items, rather than ignoring the collection. [ticket:2664]. This is a behavioral change and extra notes to the changelog and migration document have been added. - create a new test suite for exercising codepaths in engine/ddl.py
* | - Fixed an import of "logging" in test_execute which was notMike Bayer2013-03-021-1/+1
|\ \ | |/ |/| | | | | working on some linux platforms. Also in 0.7.11. - only need "logging.handlers" here, "logging" comes in implicitly
| * test_execute: import logging.handlers to fix AttributeErrorMike Gilbert2013-02-271-1/+1
|/ | | | See also: https://bugs.gentoo.org/show_bug.cgi?id=458684
* - adding in requirementsMike Bayer2013-02-061-3/+3
| | | | - get test_naturalpks to be more generalized
* - 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
* The :meth:`.Connection.connect` and :meth:`.Connection.contextual_connect`Mike Bayer2012-11-141-1/+24
| | | | | | | methods now return a "branched" version so that the :meth:`.Connection.close` method can be called on the returned connection without affecting the original. Allows symmetry when using :class:`.Engine` and :class:`.Connection` objects as context managers.
* Fixed :meth:`.MetaData.reflect` to correctly useMike Bayer2012-11-141-10/+37
| | | | | | the given :class:`.Connection`, if given, without opening a second connection from that connection's :class:`.Engine`. [ticket:2604]
* Added a new method :meth:`.Engine.execution_options`Mike Bayer2012-10-231-2/+63
| | | | | | | | | | | to :class:`.Engine`. This method works similarly to :class:`.Connection.execution_options` in that it creates a copy of the parent object which will refer to the new set of options. The method can be used to build sharding schemes where each engine shares the same underlying pool of connections. The method has been tested against the horizontal shard recipe in the ORM as well.
* - test updatesMike Bayer2012-10-041-5/+7
|
* - more tests, move some tests out of test_reflection, test_queryMike Bayer2012-09-271-317/+0
|
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-279-44/+49
| | | | | | | 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.
* - got firebird runningMike Bayer2012-09-231-5/+5
| | | | | | | | | | | | - add some failure cases - [bug] Firebird now uses strict "ansi bind rules" so that bound parameters don't render in the columns clause of a statement - they render literally instead. - [bug] Support for passing datetime as date when using the DateTime type with Firebird; other dialects support this.
* finished fixes for mxodbc; need to use at least version 3.2.1Mike Bayer2012-09-211-3/+1
|
* - add req's for predictable gcMike Bayer2012-09-051-0/+2
|
* - fixes for mxODBC, some pyodbcMike Bayer2012-09-021-6/+10
| | | | | | - enhancements to test suite including ability to set up a testing engine for a whole test class, fixes to how noseplugin sets up/tears down per-class context
* with statementMike Bayer2012-09-011-0/+1
|
* - get all tests within -w engine + pyodbc:mssql on windows to passMike Bayer2012-09-012-17/+24
|
* adjust this test which passes on some psycopg2s, fails on others, and we ↵Mike Bayer2012-08-281-2/+2
| | | | | | dont have a good testing decorator to check this
* - [feature] The "required" flag is set toMike Bayer2012-08-271-6/+4
| | | | | | | | | | True by default, if not passed explicitly, on bindparam() if the "value" or "callable" parameters are not passed. This will cause statement execution to check for the parameter being present in the final collection of bound parameters, rather than implicitly assigning None. [ticket:2556]