[pysqlite] cursor changes have broken read of pragmas

Damien Elmes <resolve-5m3Em/[email protected]> Sat, 14 Mar 2009 06:38:32 +0900
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
Hi,

Is this supposed to fail?

--- pysqlite-2.5.4/pysqlite2/test/dbapi.py      2009-03-03
18:22:46.000000000 +0900
+++ pysqlite-2.5.4/build/lib.linux-i686-2.5/pysqlite2/test/dbapi.py
 2009-03-14 06:38:03.000000000 +0900
@@ -391,6 +391,8 @@
         self.failUnlessEqual(row[0], "foo")
         row = self.cu.fetchone()
         self.failUnlessEqual(row, None)
+        self.cu.execute("pragma page_size")
+        row = self.cu.fetchone()

     def CheckFetchoneNoStatement(self):
         cur = self.cx.cursor()

Cheers,

Damien