MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_multi_statement_warnings

Method test_multi_statement_warnings

pymysql/tests/test_nextset.py:70–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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...

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
executeMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected