[Python-modules-commits] r30579 - in packages/mysql-connector-python/trunk/debian (4 files)

bam at users.alioth.debian.org bam at users.alioth.debian.org
Fri Sep 12 00:31:32 UTC 2014


    Date: Friday, September 12, 2014 @ 00:31:30
  Author: bam
Revision: 30579

Fix last_executed_query

Added:
  packages/mysql-connector-python/trunk/debian/patches/
  packages/mysql-connector-python/trunk/debian/patches/fix_last_executed_query.patch
  packages/mysql-connector-python/trunk/debian/patches/series
Modified:
  packages/mysql-connector-python/trunk/debian/changelog

Modified: packages/mysql-connector-python/trunk/debian/changelog
===================================================================
--- packages/mysql-connector-python/trunk/debian/changelog	2014-09-11 03:50:20 UTC (rev 30578)
+++ packages/mysql-connector-python/trunk/debian/changelog	2014-09-12 00:31:30 UTC (rev 30579)
@@ -1,3 +1,9 @@
+mysql-connector-python (1.2.3-2) UNRELEASED; urgency=low
+
+  * Fix last_executed_query to return unicode. Closes: #761136.
+
+ -- Brian May <bam at debian.org>  Thu, 11 Sep 2014 09:02:11 +1000
+
 mysql-connector-python (1.2.3-1) unstable; urgency=low
 
   * New upstream version.

Added: packages/mysql-connector-python/trunk/debian/patches/fix_last_executed_query.patch
===================================================================
--- packages/mysql-connector-python/trunk/debian/patches/fix_last_executed_query.patch	                        (rev 0)
+++ packages/mysql-connector-python/trunk/debian/patches/fix_last_executed_query.patch	2014-09-12 00:31:30 UTC (rev 30579)
@@ -0,0 +1,14 @@
+Index: mysql-connector-python/python23/django/base.py
+===================================================================
+--- mysql-connector-python.orig/python23/django/base.py	2014-08-15 07:47:44.000000000 +1000
++++ mysql-connector-python/python23/django/base.py	2014-09-11 09:00:39.894957233 +1000
+@@ -372,7 +372,8 @@
+         return 'MATCH ({0}) AGAINST (%s IN BOOLEAN MODE)'.format(field_name)
+ 
+     def last_executed_query(self, cursor, sql, params):
+-        return cursor.statement
++        from django.utils.encoding import force_text
++        return force_text(cursor.statement)
+ 
+     def no_limit_value(self):
+         # 2**64 - 1, as recommended by the MySQL documentation

Added: packages/mysql-connector-python/trunk/debian/patches/series
===================================================================
--- packages/mysql-connector-python/trunk/debian/patches/series	                        (rev 0)
+++ packages/mysql-connector-python/trunk/debian/patches/series	2014-09-12 00:31:30 UTC (rev 30579)
@@ -0,0 +1 @@
+fix_last_executed_query.patch




More information about the Python-modules-commits mailing list