summaryrefslogtreecommitdiff
path: root/test/engine/test_transaction.py
Commit message (Collapse)AuthorAgeFilesLines
* something changed the name here, probably one of those doc pullreqsMike Bayer2013-11-211-1/+1
|
* - remove informix dialect, moved out to ↵Mike Bayer2013-11-171-3/+0
| | | | | | https://bitbucket.org/zzzeek/sqlalchemy_informixdb - remove informix, maxdb, access symbols from tests etc.
* Improved support for the cymysql driver, supporting version 0.6.5,Mike Bayer2013-08-171-1/+0
| | | | courtesy Hajime Nakagami.
* - refactor pool a bit so that intent between ↵Mike Bayer2013-07-021-11/+11
| | | | | | | | | | | | | | ConnectionRecord/ConnectionFairy is clear; make sure that the DBAPI connection passed to the reset-on-return events/dialect hooks is also a "fairy", so that dictionaries like "info" are available. [ticket:2770] - rework the execution_options system so that the dialect is given the job of making any immediate adjustments based on a set event. move the "isolation level" logic to use this new system. Also work things out so that even engine-level execution options can be used for things like isolation level; the dialect attaches a connect-event handler in this case to handle the task. - to support this new system as well as further extensibiltiy of execution options add events engine_connect(), set_connection_execution_options(), set_engine_execution_options()
* tweak the timings here to maximize chance of test successMike Bayer2013-06-291-31/+12
|
* - the raw 2to3 runMike Bayer2013-04-271-10/+10
| | | | - went through examples/ and cleaned out excess list() calls
* fix decorator positionHajime Nakagami2013-03-021-1/+1
|
* avoid drop table in mysql+cymysql test because of deadlockHajime Nakagami2013-02-221-0/+1
|
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-6/+6
| | | | | | | 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.
* -whitespace bonanza, contdMike Bayer2012-07-281-9/+9
|
* - [feature] Added support for the "isolation_level"Mike Bayer2012-02-121-27/+65
| | | | | | | parameter to all MySQL dialects. Thanks to mu_mind for the patch here. [ticket:2394] - add documentation examples for mysql, postgresql - pep8ing
* - adjust some tests and such to work better with a mysql 5.5 installMike Bayer2011-10-111-0/+1
| | | | | - Added mysql_length parameter to Index construct, specifies "length" for indexes. [ticket:2293]
* - Context manager provided by Connection.begin()Mike Bayer2011-07-121-0/+22
| | | | | will issue rollback() if the commit() fails, not just if an exception occurs.
* - Unit tests pass 100% on MySQL installedMike Bayer2011-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | on windows, after aggressive exclusion of a wide variety of tests. Not clear to what degree the failures are related to version 5.5 vs. the usage of windows, in particular the ON UPDATE CASCADE immediately crashes the server. The features being tested here are all edge cases not likely to be used in typical MySQL environments. - Removed the "adjust casing" step that would fail when reflecting a table on MySQL on windows with a mixed case name. After some experimenting with a windows MySQL server, it's been determined that this step wasn't really helping the situation much; MySQL does not return FK names with proper casing on non-windows platforms either, and removing the step at least allows the reflection to act more like it does on other OSes. A warning here has been considered but its difficult to determine under what conditions such a warning can be raised, so punted on that for now - added some docs instead. [ticket:2181] - supports_sane_rowcount will be set to False if using MySQLdb and the DBAPI doesn't provide the constants.CLIENT module.
* - query.count() emits "count(*)" instead ofMike Bayer2011-05-101-0/+1
| | | | | "count(1)". [ticket:2162] - another test that should be excluded from "low-connections"
* - given that Oracle's issue is not just open connections, but *closed* ones ↵Mike Bayer2011-05-091-1/+2
| | | | | | | | too, go really heavy handed and start marking tests as "requires.ad_hoc_engines", add a flag --low-connections that will switch the engine reaper mechanism to use as *few* distinct engines and connections as possible, many engine tests that really need their own engines are just skipped.
* - hardcore force every connection into a strong-referenced set, rollback on ↵Mike Bayer2011-04-251-13/+14
| | | | | | | | | 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
* - move all the comments that got shoved below the fixture grabs back upMike Bayer2011-03-271-0/+1
|
* - remove test.sql._base, test.engine._base, test.orm._base, move those ↵Mike Bayer2011-03-271-7/+8
| | | | | | | classes to a new test.lib.fixtures module - move testing.TestBase to test.lib.fixtures - massive search and replace
* corrected a bunch of spelling typosDiana Clarke2011-02-281-1/+1
|
* - py3k fix regarding new exception systemMike Bayer2011-02-091-0/+1
| | | | | - this test keeps throwing a TNS error on Oracle on the buildbot only, runs locally, seems to be related to some scaling/memory type of issue on the bot
* - execution_options() on Connection acceptsMike Bayer2011-01-161-7/+47
| | | | | | | | | | "isolation_level" argument, sets transaction isolation level for that connection only until returned to the connection pool, for thsoe backends which support it (SQLite, Postgresql) [ticket:2001] - disallow the option on Engine (use isolation_level to create_engine()), Executable (we don't want to check/set per statement) - docs
* - add dialect.reset_isolation_level(), revertsMike Bayer2011-01-161-0/+29
| | | | - base not implemented methods on Dialect
* - factor consistent set_isolation_level(), get_isolation_level()Mike Bayer2011-01-161-1/+64
| | | | | | per-connection methods for sqlite, postgresql, psycopg2 dialects - move isolation test suite to test engines/test_transaction - preparing for [ticket:2001]
* - merge r43460573c27a:4993c7eae8e5d117ff342bdc59f3b0635b898e2c of 0.6 branchMike Bayer2011-01-081-0/+21
|
* - whitespace removal bonanzaMike Bayer2011-01-021-11/+11
|
* - further fixes to no trans in progress, no trans ever for TLEngine, ↵Mike Bayer2010-12-091-0/+24
| | | | [ticket:1998]
* - Threadlocal engine methods rollback(), commit(),Mike Bayer2010-12-081-0/+12
| | | | | prepare() won't raise if no transaction is in progress; this was a regression introduced in 0.6. [ticket:1998]
* - sqlalchemy.test and nose plugin moves back to being entirelyMike Bayer2010-11-281-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | 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-4/+4
| |
* | - fixes for PG, mysql, twophaseMike Bayer2010-11-201-2/+5
|/ | | | | - added "pool_events" arg to create_engine(), "events" to pool, allowing establishment of listeners which fire before those of the dialect
* - *Major* cleanup / modernization of the InformixMike Bayer2010-10-011-9/+9
| | | | | dialect for 0.6, courtesy Florian Apolloner. [ticket:1906]
* mark this as intermittent crashes on the buildbot - reason for failures not ↵Mike Bayer2010-08-081-0/+1
| | | | clear
* Python-tidy test/engine and test/aaa_profiling, 80% auto + 20% manual ↵Mike Bayer2010-07-111-298/+287
| | | | intervention
* some more metadata cleanup since --dropall isnt specified on the buildbotMike Bayer2010-04-161-2/+2
|
* - Fixed bug in execution_options() feature whereby the existingMike Bayer2010-04-071-1/+12
| | | | | Transaction and other state information from the parent connection would not be propagated to the sub-connection.
* some ms/odbc fixesMike Bayer2010-02-281-1/+2
|
* - threadlocal engine wasn't properly closing the connectionMike Bayer2010-02-271-3/+0
| | | | | | | | | | upon close() - fixed that. - Transaction object doesn't rollback or commit if it isn't "active", allows more accurate nesting of begin/rollback/commit. - Added basic support for mxODBC [ticket:1710]. - Python unicode objects as binds result in the Unicode type, not string, thus eliminating a certain class of unicode errors on drivers that don't support unicode binds.
* the order of rollback()s wasn't correct. slightly disturbing as the test ↵Mike Bayer2010-02-021-0/+6
| | | | | | | | usually passed, began failing on PG as of somewhat unrelated commit r6705, and only when the full test/engine series of tests were run. very heisenbuggy. may want to add tests to assert that TLEngine is enforcing nesting even with subtransactions.
* - the "connection" argument from engine.transaction() andMike Bayer2010-01-291-2/+20
| | | | | | | engine.run_callable() is removed - Connection itself now has those methods. All four methods accept *args and **kwargs which are passed to the given callable, as well as the operating connection.
* - the "autocommit" flag on select() and text() as wellMike Bayer2010-01-281-4/+69
| | | | | | as select().autocommit() are deprecated - now call .execution_options(autocommit=True) on either of those constructs, also available directly on Connection and orm.Query.
* oracle compatPhilip Jenvey2010-01-261-4/+4
|
* - the "threadlocal" engine has been rewritten and simplifiedMike Bayer2010-01-241-15/+119
| | | | and now supports SAVEPOINT operations.
* - added _with_options() to Connection. not publicizing this yet.Mike Bayer2009-12-181-0/+1
| | | | | | - updated oursql driver with latest fixes using options. [ticket:1613] - all the MySQL drivers get a shoutout in the docs - marked tests that OurSQL has problems with (only three), passes 100% now
* - Fixed bug in two-phase transaction whereby commit() methodMike Bayer2009-11-041-1/+3
| | | | | didn't set the full state which allows subsequent close() call to succeed. [ticket:1603]
* close out py3k + pg8000 bugs that are fixable for now without pg8000 decimal fixMike Bayer2009-08-091-5/+5
|
* python3k fixesMike Bayer2009-08-091-5/+5
|
* merge 0.6 series to trunk.Mike Bayer2009-08-061-9/+25
|
* changed reference to PostgreSQL in docs.rel_0_5_5Mike Bayer2009-07-131-2/+2
|
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-0/+840
See README.unittests for information on how to run the tests. [ticket:970]