summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-02-06 21:58:31 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-02-06 21:58:31 +0000
commit1f4a3e3f8d47eafc61afee79ff8f586d17935575 (patch)
treea71c6b043dde099f48216c3b60342f43b7bde9e6 /dev-python/mysql-python/files/1.2.0-newdecimal.patch
parentAdded missing variable definition (See bug #121826). (diff)
downloadgentoo-2-1f4a3e3f8d47eafc61afee79ff8f586d17935575.tar.gz
gentoo-2-1f4a3e3f8d47eafc61afee79ff8f586d17935575.tar.bz2
gentoo-2-1f4a3e3f8d47eafc61afee79ff8f586d17935575.zip
revision bump with mysql 5 support patch. bumped dep to version mysql-5 in case someone mistakenly stablises this before mysql-5 is stable. (#117948)
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-python/mysql-python/files/1.2.0-newdecimal.patch')
-rw-r--r--dev-python/mysql-python/files/1.2.0-newdecimal.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/mysql-python/files/1.2.0-newdecimal.patch b/dev-python/mysql-python/files/1.2.0-newdecimal.patch
new file mode 100644
index 000000000000..c24a9debd7e8
--- /dev/null
+++ b/dev-python/mysql-python/files/1.2.0-newdecimal.patch
@@ -0,0 +1,24 @@
+diff -U 2 -r MySQL-python-1.2.0/MySQLdb/constants/FIELD_TYPE.py MySQL-python-1.2.0-fix-5/MySQLdb/constants/FIELD_TYPE.py
+--- MySQL-python-1.2.0/MySQLdb/constants/FIELD_TYPE.py 2005-01-05 03:40:19.000000000 +0000
++++ MySQL-python-1.2.0-fix-5/MySQLdb/constants/FIELD_TYPE.py 2006-01-05 21:53:56.000000000 +0000
+@@ -21,4 +21,5 @@
+ YEAR = 13
+ NEWDATE = 14
++NEWDECIMAL = 246
+ ENUM = 247
+ SET = 248
+diff -U 2 -r MySQL-python-1.2.0/MySQLdb/converters.py MySQL-python-1.2.0-fix-5/MySQLdb/converters.py
+--- MySQL-python-1.2.0/MySQLdb/converters.py 2005-01-21 02:39:22.000000000 +0000
++++ MySQL-python-1.2.0-fix-5/MySQLdb/converters.py 2006-01-05 22:24:02.000000000 +0000
+@@ -129,4 +129,5 @@
+ FIELD_TYPE.DOUBLE: float,
+ FIELD_TYPE.DECIMAL: float,
++ FIELD_TYPE.NEWDECIMAL: float,
+ FIELD_TYPE.LONGLONG: long,
+ FIELD_TYPE.INT24: int,
+@@ -146,4 +147,5 @@
+ from decimal import Decimal
+ conversions[FIELD_TYPE.DECIMAL] = Decimal
++ conversions[FIELD_TYPE.NEWDECIMAL] = Decimal
+ except ImportError:
+ pass