(self)
| 68 | self.assertIsNone(cur1.nextset()) |
| 69 | |
| 70 | def test_multi_statement_warnings(self): |
| 71 | con = self.connect( |
| 72 | init_command='SELECT "bar"; SELECT "baz"', |
| 73 | client_flag=CLIENT.MULTI_STATEMENTS, |
| 74 | ) |
| 75 | cursor = con.cursor() |
| 76 | |
| 77 | try: |
| 78 | cursor.execute("DROP TABLE IF EXISTS a; DROP TABLE IF EXISTS b;") |
| 79 | except TypeError: |
| 80 | self.fail() |
| 81 | |
| 82 | # TODO: How about SSCursor and nextset? |
| 83 | # It's very hard to implement correctly... |