Commit Graph

2486 Commits

Author SHA1 Message Date
Mike Bayer c4d429fc2a fix the timeout test once and for all 2010-03-13 11:52:17 -05:00
Mike Bayer 1f27092a45 move the initial connect out of the profile zone so we don't get a method call hit on that 2010-03-12 19:57:06 -05:00
Philip Jenvey d1983c22b4 these pass on +zxjdbc, seemingly because it lacks a sane rowcount 2010-03-12 11:07:53 -08:00
Mike Bayer 1b16954864 - introduce an optimizing type _NativeUnicodeMixin to oracle plus supporting
changes to Enum/SchemaType to re-support adaptation of string types.
This approach can be adapted by "conditional" unicode returning dialects
(i.e. pyodbc and possibly mxodbc) to remove the overhead
of isinstance(value, unicode) calls when the dialect returned type is
of dbapi.UNICODE, dbapi.NVARCHAR, etc.
2010-03-12 18:30:38 +00:00
Mike Bayer b4f1fbc708 think I came across a syntactical weirdism there 2010-03-11 22:38:15 -05:00
Mike Bayer e66ca9edd5 adding windows-appropriate levels of pain to unicode handling 2010-03-11 22:10:25 -05:00
Mike Bayer 7c8942d4eb Added a non-freetds specific exclusion for pyodbc 2010-03-11 21:23:25 -05:00
Mike Bayer 3264433782 - query.scalar() now raises an exception if more than one
row is returned.  All other behavior remains the same.
[ticket:1735]
2010-03-11 18:38:51 -05:00
Mike Bayer 409c8ed703 - Calling query.order_by() or query.distinct() before calling
query.select_from(), query.with_polymorphic(), or
query.from_statement() raises an exception now instead of
silently dropping those criterion. [ticket:1736]
2010-03-11 18:04:57 -05:00
Mike Bayer 30327525de this resolves the returning failures from #1733 2010-03-11 21:36:03 +00:00
Mike Bayer b763015642 re-enable these tests 2010-03-11 21:34:13 +00:00
Mike Bayer ec0fafc7b0 added better typing for integer expressions, since integer is implementing _DateAffinity 2010-03-11 16:18:37 -05:00
Mike Bayer 3254699f85 force an oracle test to pass. this is as usual an extremely fringy test for a feature nobody should be using normally. 2010-03-11 18:52:02 +00:00
Mike Bayer ee8eea4101 these fail for unknown reasons. Seems to be potentially VARCHAR used with RETURNING, or out params, not sure. 2010-03-11 18:39:15 +00:00
Mike Bayer 47f7b6f68e fix this test for oracle so all types return datetime.date 2010-03-11 18:34:27 +00:00
Mike Bayer 9a3a909ed2 this test requires a length for the varchar in mysql/oracle 2010-03-11 18:21:44 +00:00
Mike Bayer 67f5f4831b - fix the sqlalchemy.test.schema.Column function to work with copies
- add sequences to new associationproxy tests
- test/ext passes 100% on oracle here
2010-03-11 18:01:04 +00:00
Mike Bayer 757bf74ec0 merged default tip 2010-03-11 17:43:55 +00:00
Mike Bayer e45a14e6fc add autoincrement flags to decls 2010-03-11 17:43:34 +00:00
Mike Bayer 19de4da70f - the copy() method of Column now copies over uninitialized
"on table attach" events.  Helps with the new declarative
"mixin" capability.
2010-03-11 12:42:06 -05:00
Mike Bayer 0712f4aa0a - mark tests unsupported by sqlite unsupported by oracle as well 2010-03-11 17:22:49 +00:00
Mike Bayer 86df449c2b - fixed internal error which would occur if calling has()
or similar complex expression on a single-table inheritance
relation(). [ticket:1731]
2010-03-11 12:07:08 -05:00
Mike Bayer ea4916001d - Oracle 'DATE' now does not perform any result processing,
as the DATE type in Oracle stores full date+time objects,
that's what you'll get.  Note that the generic types.Date
type *will* still call value.date() on incoming values,
however.  When reflecting a table, the reflected type
will be 'DATE'.
2010-03-11 10:27:18 -05:00
Mike Bayer e9b059f782 base tests pass 2010-03-09 14:32:38 -05:00
Mike Bayer 969c04860f almost there, some tests failing still. 2010-03-09 13:41:43 -05:00
Mike Bayer 62458eb8ad merge latest tip. practicing on mercurial. 2010-03-08 23:54:30 -05:00
Mike Bayer c3fd9a5536 still thinking about stuff here 2010-03-08 21:15:16 -05:00
Mike Bayer b9cc0ef326 working on getting operators/left hand type awareness into the "bind" coercion. this system has to be figured out somehow 2010-03-08 18:27:35 -05:00
Philip Jenvey 649d1f11c3 fix last commit 2010-03-08 13:04:32 -08:00
Philip Jenvey d9c7d9e0b0 small cleanup 2010-03-08 12:22:33 -08:00
Gaëtan de Menten 17fee657a6 timings should use getitem syntax and not the slow getattr one 2010-03-03 20:40:39 +00:00
Chris Withers a1337a822a fixes for some nasty edge cases when usng descriptors to compute special attributes 2010-03-02 10:17:31 +00:00
Mike Bayer 4233c6ceb4 there we go, that was the stupid gc bug 2010-03-01 23:13:21 +00:00
Mike Bayer 52d89f7225 skip test for oursql 2010-03-01 22:12:25 +00:00
Chris Withers 8aaf3da70a allow __tablename__ to come from a mixin 2010-03-01 18:10:23 +00:00
Chris Withers 83d7d12b0a paranoid test that single table inheritance works with single table inheritance 2010-03-01 17:59:19 +00:00
Mike Bayer 8c17344d1e preload type affinity entries so that these comparisons don't get shoved into the callcounts 2010-03-01 17:47:58 +00:00
Michael Trier d0eba53117 Added support for FOUND_ROWS to mysqlconnector. 2010-03-01 03:01:55 +00:00
Mike Bayer da1666cc18 - adjusted the literal coercion rules to take the left side's type into account, if it is
compatible with what was found for the right, so that things like oracle CHAR conversions
work.
- oracle dialect specific tests pass again.
2010-03-01 01:00:12 +00:00
Mike Bayer fbe6772d44 more bumps 2010-03-01 00:25:50 +00:00
Mike Bayer d840042748 some 2.4 bumps probably due to the tuple/list thing 2010-03-01 00:25:02 +00:00
Michael Trier 3eee887232 Changes to get mysqlconnector passing most tests. 2010-02-28 23:56:11 +00:00
Mike Bayer a76927f584 - the execution sequence pulls all rowcount/last inserted ID
info from the cursor before commit() is called on the
DBAPI connection in an "autocommit" scenario.  This helps
mxodbc with rowcount and is probably a good idea overall.
- cx_oracle wants list(), not tuple(), for empty execute.
- cleaned up plain SQL param handling
2010-02-28 23:51:54 +00:00
Mike Bayer 68f71502c1 mxodbc supports rowcount, just have to snag before the cursor is closed. 2010-02-28 22:05:39 +00:00
Mike Bayer 5fd371fa9c some ms/odbc fixes 2010-02-28 21:29:20 +00:00
Mike Bayer 6ec5b489c6 callcounts 2010-02-28 20:46:06 +00:00
Mike Bayer ba015e62cc - orm: Removed a lot of logging that nobody really cares about,
logging that remains will respond to live changes in the
log level.  No significant overhead is added.  [ticket:1719]
- engine: Opened up logging a bit such that isEnabledFor() is called
more often, so that changes to the log level for engine/pool
will be reflected on next connect.   This adds a small
amount of method call overhead.  It's negligible and will make
life a lot easier for all those situations when logging
just happens to be configured after create_engine() is called.
[ticket:1719]
2010-02-28 17:43:10 +00:00
Mike Bayer cd6af2e03b working on pyodbc / mxodbc 2010-02-27 20:03:33 +00:00
Mike Bayer 46fa536ba4 - threadlocal engine wasn't properly closing the connection
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.
2010-02-27 00:44:26 +00:00
Michael Trier 7a629b6d41 Changed bind parameters to be passed as a tuple. Some drivers don't like to receive a list. 2010-02-26 19:05:00 +00:00