mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-02 13:56:54 +00:00
Fix for CONPY-251
Check if stmt was already initialized in cursor method nextset().
This commit is contained in:
@ -29,6 +29,12 @@ class TestCursor(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
del self.connection
|
||||
|
||||
def test_conpy251(self):
|
||||
cursor = self.connection.cursor()
|
||||
x = cursor.nextset()
|
||||
self.assertEqual(x, None)
|
||||
cursor.close()
|
||||
|
||||
def test_multiple_close(self):
|
||||
cursor = self.connection.cursor()
|
||||
cursor.close()
|
||||
|
Reference in New Issue
Block a user