Commit Graph

5901 Commits

Author SHA1 Message Date
Mike Bayer 1ea2ac1261 add oursql to the list of offenders... 2010-12-08 15:00:37 -05:00
Mike Bayer 9d5d0bbd83 - add test coverage for what DBAPIs give us raw for numerics 2010-12-08 14:31:45 -05:00
Mike Bayer 8df4dc4385 - Threadlocal engine methods rollback(), commit(),
prepare() won't raise if no transaction is in progress;
this was a regression introduced in 0.6.  [ticket:1998]
2010-12-08 13:46:29 -05:00
Mike Bayer 1c67cf5caf - gently push users towards entity name for simple cases 2010-12-07 23:11:47 -05:00
Mike Bayer 83be34c047 - hardwire the huge LIMIT number on MySQL. this might fix the OurSQL py3k
bug we're having, though I'm not able to get a good run of OurSQL
on OSX right now either Python 2 or 3.
2010-12-06 18:45:19 -05:00
Mike Bayer 987828194e oracle fixes 2010-12-06 17:05:32 -05:00
Mike Bayer 8423dbcf62 - shave about a millisecond off of moderately complex save casades. 2010-12-06 13:29:13 -05:00
Mike Bayer a104f9d57d - explain that these are not part of the test suite 2010-12-05 19:48:20 -05:00
Mike Bayer 175f1510d5 callcounts in 2.4 2010-12-05 19:29:47 -05:00
Mike Bayer 1ae8188609 squash sets warning 2010-12-05 18:52:37 -05:00
Mike Bayer 4d9d6c126f - add version selector 2010-12-05 18:45:15 -05:00
Mike Bayer 15297eb4fb callcounts... 2010-12-05 17:47:09 -05:00
Mike Bayer 1562860fea up this variance a bit, differences between 2.6.3/2.6.4 not worth it 2010-12-05 17:40:51 -05:00
Mike Bayer 1c16f373d9 callcounts for 2.4, 2.5, 2.6 2010-12-05 16:39:15 -05:00
Mike Bayer 391824a0f3 have a 'buffer' symbol present in util in py3k as well 2010-12-05 16:12:35 -05:00
Mike Bayer dd2b208d86 - fix callcount for 2.6 2010-12-05 16:09:53 -05:00
Mike Bayer 09355f514c merge tip 2010-12-05 14:58:35 -05:00
Mike Bayer a967dffbf4 log [ticket:1978] 2010-12-05 14:58:02 -05:00
Mike Bayer f1e54a69fb - merge default tip 2010-12-05 14:56:26 -05:00
Mike Bayer 77763969ff - refer to 0.7 in docs 2010-12-05 13:29:34 -05:00
Mike Bayer 1f9029597c - move topological, queue into util
- move function_named into test.lib.util
- use @decorator for all decorators in test/
2010-12-05 12:51:24 -05:00
Mike Bayer 49145a6940 - more inlining. nominal execution on sqlite down to 36 calls, from 51 in 0.6. 2010-12-05 12:09:06 -05:00
Mike Bayer 8e6b5ab1bd - reduce some pool overhead 2010-12-05 02:10:49 -05:00
Mike Bayer bbe88372e8 - inline the various construction methods of DefaultExecutionContext. This
makes it sort of easier to read, sort of harder, depending on where you look.
Cuts down two or three method calls on execute.
2010-12-05 01:41:37 -05:00
Mike Bayer 8e24584d8d - ResultProxy and friends always reference the DBAPI connection at the same time
as the cursor.  There is no reason for CursorFairy - the only use case would be,
end-user is using the pool or pool.manage with DBAPI connections, uses a cursor,
deferences the owning connection and continues using cursor.  This is an almost
nonexistent use case and isn't correct usage at a DBAPI level.  Take out CursorFairy.
- move the "check for a dot in the colname" logic out to the sqlite dialect.
2010-12-05 00:46:11 -05:00
Mike Bayer 926b0d7fa8 - ordering for tests, [ticket:1888] 2010-12-04 22:59:32 -05:00
Mike Bayer c8f8124cc9 - Backport of "optimized get" fix from 0.7,
improves the generation of joined-inheritance
"load expired row" behavior.  [ticket:1992]
2010-12-04 22:13:10 -05:00
Mike Bayer af75fdf60f - added strictness to the optimized load, [ticket:1992] 2010-12-03 18:45:42 -05:00
Mike Bayer d30678d18d new calling style: event.listen(target, identifier, fn) 2010-12-01 14:10:11 -05:00
Mike Bayer df7379f992 - modernize multiple warning assertions for PG reflect index test 2010-11-30 20:39:06 -05:00
Mike Bayer 3c9d2d7b2f - replace GenericBackrefExtension with straight events
- add "backref" argument to register_attribute_impl
2010-11-30 20:25:22 -05:00
Mike Bayer 582b12152e - Fixed bug whereby KeyError would occur with non-ENUM
supported PG versions after a pool dispose+recreate
would occur, [ticket:1989]
2010-11-30 13:55:17 -05:00
Mike Bayer 4c6e93d72a - format guid hexstring explicit with 32 chars, [ticket:1988] 2010-11-30 13:29:23 -05:00
Mike Bayer 79fc3cdc1b - use class name by itself in flush warnings to prevent overflow of warnings registry
- test suite swaps out warnings.warn with warnings.warn_explicit, to solve warnings registry issue
- explicitly disallow functions from inside test.bootstrap, test.lib being interpreted as tests
2010-11-29 18:38:44 -05:00
Mike Bayer 35bfda533e - repair MS-SQL handling of LIMIT/OFFSET as binds, add bindparam() to the compile stream
so they function correctly
2010-11-29 17:28:36 -05:00
Mike Bayer aaf9933942 - add docs for hybrid 2010-11-28 17:13:07 -05:00
Mike Bayer 69ee83d1cb - fix bug preventing multiple SessionExtensions from being correctly converted to event listeners 2010-11-28 16:43:30 -05:00
Mike Bayer de9f2b3153 - restore the updates to test_assorted_eager that were part of
[ticket:1974] 's update
2010-11-28 16:37:49 -05:00
Mike Bayer ec5b48d8fa merge backout 2010-11-28 16:29:39 -05:00
Mike Bayer ca9d3cea39 after some usage, its clear that [ticket:1974] should not be implemented. backrefs
add to collections so its expected that collection membership would mirror in session
membership.
Backed out changeset e836366c84
2010-11-28 16:27:44 -05:00
Mike Bayer a97471ee1b - assuming I read pep-386 correctly, the first 0.7 release will be 0.7b1 2010-11-28 15:52:40 -05:00
Mike Bayer eb1274de9c - mappers can be created against select() constructs, or others,
that don't ultimately have any Table objects referenced.
[ticket:1876]
2010-11-28 15:50:00 -05:00
Mike Bayer 71083b6977 combine test/engine/test_metadata.py and test/sql/test_columns.py into new
test/sql/test_metadata.py, [ticket:1970]
2010-11-28 15:34:41 -05:00
Mike Bayer 2d9387139a - replace util.py with util/ package, [ticket:1986] 2010-11-28 15:32:09 -05:00
Mike Bayer 58b2939433 - sqlalchemy.test and nose plugin moves back to being entirely
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]
2010-11-28 14:19:44 -05:00
Mike Bayer 94bb2f428e - a column with a "mutable" type mapped as "deferred" will not
emit a load for the "old" value upon a set event,
unless the "active_history" flag is set to True.  [ticket:1976]
2010-11-28 13:45:51 -05:00
Mike Bayer e759fd7d78 - Pooling methods now underscored or removed:
Pool.create_connection() -> Pool._create_connection()
    Pool.do_get() -> Pool._do_get()
    Pool.do_return_conn() -> Pool._do_return_conn()
    Pool.do_return_invalid() -> removed, was not used
    Pool.return_conn() -> Pool._return_conn()
    Pool.get() -> Pool._get(), public API is Pool.connect()
    SingletonThreadPool.cleanup() -> _cleanup()
    SingletonThreadPool.dispose_local() -> removed, use conn.invalidate()

[ticket:1982]
2010-11-28 13:40:56 -05:00
Mike Bayer 5c0d645353 - the "type_map" dictionary in sqlalchemy.types is now private,
i.e. is named "_type_map". [ticket:1870]
2010-11-28 13:07:00 -05:00
Mike Bayer e836366c84 - cascade_backrefs flag on relationship() now set to False by default.
[ticket:1974]
2010-11-28 13:01:23 -05:00
Mike Bayer 17fdeb77ad - fix test related to [ticket:1980] 2010-11-28 12:55:59 -05:00