Commits

Armin Rigo  committed b0543cd Merge

merge heads

  • Participants
  • Parent commits 87cc13e, 75a2ee7

Comments (0)

Files changed (1)

File lib_pypy/_sqlite3.py

 
     def _begin(self):
         statement = c_void_p()
-        next_char = c_char_p()
         ret = sqlite.sqlite3_prepare_v2(self._db, self.__begin_statement, -1,
-                                        byref(statement), next_char)
+                                        byref(statement), None)
         try:
             if ret != SQLITE_OK:
                 raise self._get_exception(ret)
                 obj._reset()
 
         statement = c_void_p()
-        next_char = c_char_p()
         ret = sqlite.sqlite3_prepare_v2(self._db, b"COMMIT", -1,
-                                        byref(statement), next_char)
+                                        byref(statement), None)
         try:
             if ret != SQLITE_OK:
                 raise self._get_exception(ret)
                 cursor._reset = True
 
         statement = c_void_p()
-        next_char = c_char_p()
         ret = sqlite.sqlite3_prepare_v2(self._db, b"ROLLBACK", -1,
-                                        byref(statement), next_char)
+                                        byref(statement), None)
         try:
             if ret != SQLITE_OK:
                 raise self._get_exception(ret)