Mike Bayer [Sun, 31 May 2009 21:41:20 +0000 (21:41 +0000)]
- some topological fixup to work around inconsistent string interning in py3k
- pg8000 in py3k needs description_encoding, turn this back on, switch off for py3k sqlite
Mike Bayer [Sun, 31 May 2009 16:33:00 +0000 (16:33 +0000)]
- added an "inline_ddl" flag to Constraint. this controls if DDL is emitted
from within CREATE TABLE, and is flipped off automatically when the item
is placed within an Add/DropConstraint object.
- the use_alter flag on ForeignKey is now a shortcut option for operations that
can be hand-constructed using the DDL() event system. A side effect of this refactor
is that ForeignKeyConstraint objects with use_alter=True will *not* be emitted on
SQLite, which does not support ALTER for foreign keys. This has no effect on SQLite's
behavior since SQLite does not actually honor FOREIGN KEY constraints.
- the "on" callable passed to DDL() needs to accept **kw arguments.
In the case of MetaData before/after create/drop, the list of
Table objects for which CREATE/DROP DDL is to be issued is passed
as the kw argument "tables". This is necessary for metadata-level
DDL that is dependent on the presence of specific tables.
- the "metadata" argument is removed from DefaultGenerator and subclasses,
but remains locally present on Sequence, which is a standalone construct
in DDL.
- really trying to pare down usage of testing.mock_engine()
Mike Bayer [Sun, 31 May 2009 01:27:46 +0000 (01:27 +0000)]
- lots of paring down and cleanup of schema / DDL. reworked
all _CreateDropBase classes to extend from the same event
framework as DDL(). semi-support for dialect-conditional
Constraint objects, needs work.
Mike Bayer [Sat, 30 May 2009 21:03:41 +0000 (21:03 +0000)]
- repair were-never-working instrumentation tests
- use nicer py3k reraise style detailed in pep3109 (directly affects how the traceback is formatted vs. with_traceback())
- seriously considering writing regular tests for sqlsoup since this is going to be impossible to 2to3-ize
Mike Bayer [Sat, 30 May 2009 19:38:08 +0000 (19:38 +0000)]
reverted a change which dates back to [changeset:5037] - there
doesn't seem to be any way for an old style class to be in the `__subclasses__()`
collection of a new style class. also fixes a 2to3 screwup
allowing test/orm/attributes.py to pass fully on py3k
Jason Kirtland [Tue, 31 Mar 2009 19:49:13 +0000 (19:49 +0000)]
- Added support for create_engine(isolation_level=...); postgres &
sqlite initially [ticket:443]
- Dialects gained visit_pool
- Pools gained a first_connect event
Patch from Adam Lowry. Thank you Adam!
Mike Bayer [Tue, 31 Mar 2009 17:00:02 +0000 (17:00 +0000)]
- rollback everything before dropping tables. PG + jython is a rough combo
- zxJDBC totally not returning rowcounts correctly
- some dict ordering for jython
Mike Bayer [Sat, 21 Mar 2009 19:34:45 +0000 (19:34 +0000)]
- connection initialize moves to a connection pool event [ticket:1340]
- sqlite doesn't support schemas. not sure if some versions do, but marking those as unsupported for now.
- added a testing.requires callable for schema support.
- standardized the "extra schema" name for unit tests as "test_schema" and "test_schema_2".
- sqlite needs description_encoding (was some other version of pysqlite tested here ?)
- other test fixes.
Arc Riley [Wed, 18 Mar 2009 00:13:39 +0000 (00:13 +0000)]
Set the set in __builtins__ check to Py2-only, set is always available in Py3
I believe some other test may be overriding __builtins__ to be a dict instead of a module only on Py3, but this is the easiest fix.