diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-28 23:51:54 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-28 23:51:54 +0000 |
| commit | a76927f584dab481383592645a2a471fed37ecf9 (patch) | |
| tree | 1303912df863199b07bdbcf4a5ffd1abf63701d6 /test/sql/test_rowcount.py | |
| parent | c366b7ec4fded0c8baabcdc6e6f15ecd81a4bf00 (diff) | |
| download | sqlalchemy-a76927f584dab481383592645a2a471fed37ecf9.tar.gz | |
- 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
Diffstat (limited to 'test/sql/test_rowcount.py')
| -rw-r--r-- | test/sql/test_rowcount.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/sql/test_rowcount.py b/test/sql/test_rowcount.py index 6da25b914..9577b104a 100644 --- a/test/sql/test_rowcount.py +++ b/test/sql/test_rowcount.py @@ -54,22 +54,19 @@ class FoundRowsTest(TestBase, AssertsExecutionResults): department = employees_table.c.department r = employees_table.update(department=='C').execute(department='Z') print "expecting 3, dialect reports %s" % r.rowcount - if testing.db.dialect.supports_sane_rowcount: - assert r.rowcount == 3 + assert r.rowcount == 3 def test_update_rowcount2(self): # WHERE matches 3, 0 rows changed department = employees_table.c.department r = employees_table.update(department=='C').execute(department='C') print "expecting 3, dialect reports %s" % r.rowcount - if testing.db.dialect.supports_sane_rowcount: - assert r.rowcount == 3 + assert r.rowcount == 3 def test_delete_rowcount(self): # WHERE matches 3, 3 rows deleted department = employees_table.c.department r = employees_table.delete(department=='C').execute() print "expecting 3, dialect reports %s" % r.rowcount - if testing.db.dialect.supports_sane_rowcount: - assert r.rowcount == 3 + assert r.rowcount == 3 |
