diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-04-02 21:36:11 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-04-02 21:36:11 +0000 |
| commit | cdceb3c3714af707bfe3ede10af6536eaf529ca8 (patch) | |
| tree | 2ccbfb60cd10d995c0309801b0adc4fc3a1f0a44 /test/sql/query.py | |
| parent | 8607de3159fd37923ae99118c499935c4a54d0e2 (diff) | |
| download | sqlalchemy-cdceb3c3714af707bfe3ede10af6536eaf529ca8.tar.gz | |
- merged the "execcontext" branch, refactors engine/dialect codepaths
- much more functionality moved into ExecutionContext, which impacted
the API used by dialects to some degree
- ResultProxy and subclasses now designed sanely
- merged patch for #522, Unicode subclasses String directly,
MSNVarchar implements for MS-SQL, removed MSUnicode.
- String moves its "VARCHAR"/"TEXT" switchy thing into
"get_search_list()" function, which VARCHAR and CHAR can override
to not return TEXT in any case (didnt do the latter yet)
- implements server side cursors for postgres, unit tests, #514
- includes overhaul of dbapi import strategy #480, all dbapi
importing happens in dialect method "dbapi()", is only called
inside of create_engine() for default and threadlocal strategies.
Dialect subclasses have a datamember "dbapi" referencing the loaded
module which may be None.
- added "mock" engine strategy, doesnt require DBAPI module and
gives you a "Connecition" which just sends all executes to a callable.
can be used to create string output of create_all()/drop_all().
Diffstat (limited to 'test/sql/query.py')
| -rw-r--r-- | test/sql/query.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sql/query.py b/test/sql/query.py index 3c3e2334c..08c766a0d 100644 --- a/test/sql/query.py +++ b/test/sql/query.py @@ -357,7 +357,7 @@ class QueryTest(PersistTest): Column('__parent', VARCHAR(20)), Column('__row', VARCHAR(20)), ) - shadowed.create() + shadowed.create(checkfirst=True) try: shadowed.insert().execute(shadow_id=1, shadow_name='The Shadow', parent='The Light', row='Without light there is no shadow', __parent='Hidden parent', __row='Hidden row') r = shadowed.select(shadowed.c.shadow_id==1).execute().fetchone() @@ -374,7 +374,7 @@ class QueryTest(PersistTest): pass # expected r.close() finally: - shadowed.drop() + shadowed.drop(checkfirst=True) class CompoundTest(PersistTest): """test compound statements like UNION, INTERSECT, particularly their ability to nest on |
