Bug when dealing with date and datetime columns
MySQL database connector for Python programming
Brought to you by:
adustman
====================
RCS file: /cvsroot/mysql-python/MySQLdb/MySQLdb/pytimes.py,
v
retrieving revision 1.1
diff -u -r1.1 pytimes.py
--- pytimes.py 11 Jul 2003 00:07:06 -0000 1.1
+++ pytimes.py 4 Nov 2003 08:55:23 -0000
@@ -38,7 +38,7 @@
try:
d, t = s.split(sep, 1)
@@ -53,5 +53,5 @@
return None
def Date_or_None(s):
- try: return apply(date, tuple(s.split('-',2)))
+ try: return apply(date, map(int, tuple(s.split('-',2))))
except: return None
Logged In: YES
user_id=71372
Fixed in CVS