]> granicus.if.org Git - python/commitdiff
Fix automatic replacing mistake.
authorGeorg Brandl <georg@python.org>
Sat, 11 Aug 2007 15:39:18 +0000 (15:39 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 11 Aug 2007 15:39:18 +0000 (15:39 +0000)
Modules/_sqlite/connection.c

index b04601159c0df2ba532f630dcaedb5c24ddde287..e8c28e3e5350f32c6455c688333d0a63af4f9e91 100644 (file)
@@ -378,7 +378,7 @@ PyObject* pysqlite_connection_rollback(pysqlite_Connection* self, PyObject* args
         pysqlite_reset_all_statements(self);
 
         Py_BEGIN_ALLOW_THREADS
-        rc = sqlite3_prepare(self->db, "READONLYLLBACK", -1, &statement, &tail);
+        rc = sqlite3_prepare(self->db, "ROLLBACK", -1, &statement, &tail);
         Py_END_ALLOW_THREADS
         if (rc != SQLITE_OK) {
             _pysqlite_seterror(self->db);