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 17c4edc commit 8363ac8Copy full SHA for 8363ac8
Lib/sqlite3/test/dbapi.py
@@ -555,6 +555,17 @@ def test_last_row_id_insert_o_r(self):
555
]
556
self.assertEqual(results, expected)
557
558
+ def test_column_count(self):
559
+ # Check that column count is updated correctly for cached statements
560
+ select = "select * from test"
561
+ res = self.cu.execute(select)
562
+ old_count = len(res.description)
563
+ # Add a new column and execute the cached select query again
564
+ self.cu.execute("alter table test add newcol")
565
566
+ new_count = len(res.description)
567
+ self.assertEqual(new_count - old_count, 1)
568
+
569
570
class ThreadTests(unittest.TestCase):
571
def setUp(self):
0 commit comments