We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 706b72d commit e3a52dbCopy full SHA for e3a52db
tests/nuodb_cursor_test.py
@@ -23,12 +23,13 @@ def test_cursor_description(self):
23
self.assertEquals(descriptions[1][1], self.driver.NUMBER)
24
self.assertEquals(descriptions[1][2], 11)
25
26
- def test_cursor_rowcount_select(self):
+ def test_cursor_rowcount_and_last_query(self):
27
con = self._connect()
28
cursor = con.cursor()
29
-
30
- cursor.execute("SELECT 1 FROM DUAL UNION ALL SELECT 2 FROM DUAL")
+ statement = "SELECT 1 FROM DUAL UNION ALL SELECT 2 FROM DUAL"
+ cursor.execute(statement)
31
self.assertEquals(cursor.rowcount, -1)
32
+ self.assertEquals(cursor.query, statement)
33
34
def test_insufficient_parameters(self):
35
0 commit comments