From 3499c4db38bf45f91728aeea74256cae38b7bd08 Mon Sep 17 00:00:00 2001 From: adustman Date: Wed, 23 May 2001 03:16:34 +0000 Subject: [PATCH] Fix the case where there is no mx.DateTime. --- MySQLdb/MySQLdb/times.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MySQLdb/MySQLdb/times.py b/MySQLdb/MySQLdb/times.py index 110b3dc..4431b4d 100644 --- a/MySQLdb/MySQLdb/times.py +++ b/MySQLdb/MySQLdb/times.py @@ -88,8 +88,8 @@ except ImportError: """Format a date as a date (does nothing, you don't have mx.DateTime).""" return d - format_TIME = format_TIMESTAMP = format_DATE = \ - TimeDelta_or_None = Date_or_None + format_TIME = format_TIMESTAMP = format_DATE + TimeDelta_or_None = Date_or_None = DateTime_or_None = format_DATE def DateTime2literal(d, c): """Format a DateTime object as an ISO timestamp."""