[Python-modules-commits] r5667 - in packages/python-mysqldb/trunk/debian (3 files)

bzed at users.alioth.debian.org bzed at users.alioth.debian.org
Mon Jun 16 18:03:44 UTC 2008


    Date: Monday, June 16, 2008 @ 18:03:42
  Author: bzed
Revision: 5667

* debian/patches/02_reconnect.dpatch:
  - Dropping patch:
    Comment in Storm which explains the problem:
      # Here is another sad story about bad transactional behavior. MySQL
      # offers a feature to automatically reconnect dropped connections.
      # What sounds like a dream, is actually a nightmare for anyone who
      # is dealing with transactions. When a reconnection happens, the
      # currently running transaction is transparently rolled back, and
      # everything that was being done is lost, without notice. Not only
      # that, but the connection may be put back in AUTOCOMMIT mode, even
      # when that's not the default MySQLdb behavior. The MySQL developers
      # quickly understood that this is a terrible idea, and removed the
      # behavior in MySQL 5.0.3. Unfortunately, Debian and Ubuntu still
      # have a patch right now which *reenables* that behavior by default
      # even past version 5.0.3.

Modified:
  packages/python-mysqldb/trunk/debian/changelog
  packages/python-mysqldb/trunk/debian/patches/00list
Deleted:
  packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch

Modified: packages/python-mysqldb/trunk/debian/changelog
===================================================================
--- packages/python-mysqldb/trunk/debian/changelog	2008-06-16 17:58:56 UTC (rev 5666)
+++ packages/python-mysqldb/trunk/debian/changelog	2008-06-16 18:03:42 UTC (rev 5667)
@@ -1,11 +1,30 @@
-python-mysqldb (1.2.2-7) UNRELEASED; urgency=low
+python-mysqldb (1.2.2-7) unstable; urgency=low
 
+  [ Sandro Tosi ]
   * debian/control
     - list items lines in description starts with 2 space, to avoid reformat
       on webpages (Closes: #480341)
 
- -- Sandro Tosi <matrixhasu at gmail.com>  Fri, 09 May 2008 19:48:03 +0200
+  [ Bernd Zeimetz ]
+  * debian/patches/02_reconnect.dpatch:
+    - Dropping patch:
+      Comment in Storm which explains the problem:
 
+        # Here is another sad story about bad transactional behavior. MySQL
+        # offers a feature to automatically reconnect dropped connections.
+        # What sounds like a dream, is actually a nightmare for anyone who
+        # is dealing with transactions. When a reconnection happens, the
+        # currently running transaction is transparently rolled back, and
+        # everything that was being done is lost, without notice. Not only
+        # that, but the connection may be put back in AUTOCOMMIT mode, even
+        # when that's not the default MySQLdb behavior. The MySQL developers
+        # quickly understood that this is a terrible idea, and removed the
+        # behavior in MySQL 5.0.3. Unfortunately, Debian and Ubuntu still
+        # have a patch right now which *reenables* that behavior by default
+        # even past version 5.0.3.
+
+ -- Bernd Zeimetz <bzed at debian.org>  Mon, 16 Jun 2008 20:03:09 +0200
+
 python-mysqldb (1.2.2-6) unstable; urgency=low
 
   [ Sandro Tosi ]

Modified: packages/python-mysqldb/trunk/debian/patches/00list
===================================================================
--- packages/python-mysqldb/trunk/debian/patches/00list	2008-06-16 17:58:56 UTC (rev 5666)
+++ packages/python-mysqldb/trunk/debian/patches/00list	2008-06-16 18:03:42 UTC (rev 5667)
@@ -1,5 +1,4 @@
 01_converters_boolean
-02_reconnect
 03_converters_set2str
 04_disable_ez_setup
 05_null-connection-guard

Deleted: packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch
===================================================================
--- packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch	2008-06-16 17:58:56 UTC (rev 5666)
+++ packages/python-mysqldb/trunk/debian/patches/02_reconnect.dpatch	2008-06-16 18:03:42 UTC (rev 5667)
@@ -1,20 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-
-## 02_reconnect.dpatch by Dan Pascu <dan at ag-projects.com>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: reconnect after connection is lost, even with mysql >= 5.0.3
-
- at DPATCH@
-
---- python-mysqldb-1.2.2/_mysql.c
-+++ python-mysqldb-1.2.2/_mysql.c
-@@ -579,6 +579,8 @@
- 	if (!conn) {
- 		_mysql_Exception(self);
- 		return -1;
-+	} else {
-+		conn->reconnect = 1;
- 	}
- 	/*
- 	  PyType_GenericAlloc() automatically sets up GC allocation and




More information about the Python-modules-commits mailing list