Commits

Mike Bayer committed 65e1e7c

- misc savepoint test
- don't need dialect_impl() for Text

Comments (0)

Files changed (2)

lib/sqlalchemy/types.py

     params (and the reverse for result sets.)
 
     """
-    def dialect_impl(self, dialect, **kwargs):
-        return TypeEngine.dialect_impl(self, dialect, **kwargs)
 
 class Unicode(String):
     """A variable length Unicode string.

test/orm/transaction.py

         self.assertEquals(s.query(User.name).order_by(User.id).all(), [('ed',), ('jack',)])
 
     @testing.requires.savepoints
+    def test_savepoint_delete(self):
+        s = self.session()
+        u1 = User(name='ed')
+        s.add(u1)
+        s.commit()
+        self.assertEquals(s.query(User).filter_by(name='ed').count(), 1)
+        s.begin_nested()
+        s.delete(u1)
+        s.commit()
+        self.assertEquals(s.query(User).filter_by(name='ed').count(), 0)
+        s.commit()
+
+    @testing.requires.savepoints
     def test_savepoint_commit(self):
         s = self.session()
         u1 = User(name='ed')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.