blob: c24a9debd7e800014edaf79ee712bc9af81dbf93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|