From 6c5a6c857f414bb022c5e6575316727d94fcf447 Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Fri, 30 Nov 2001 20:20:14 +0000 Subject: The patch for using mx.DateTime instead of DateTime was incomplete. Update it. Submitted by: Allan Saddi --- databases/py-PyGreSQL/files/patch-pgdb.py | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'databases/py-PyGreSQL/files/patch-pgdb.py') diff --git a/databases/py-PyGreSQL/files/patch-pgdb.py b/databases/py-PyGreSQL/files/patch-pgdb.py index 6f22a42e8474..8877fefcfcff 100644 --- a/databases/py-PyGreSQL/files/patch-pgdb.py +++ b/databases/py-PyGreSQL/files/patch-pgdb.py @@ -1,5 +1,5 @@ ---- pgdb.py.orig Thu Oct 11 12:14:35 2001 -+++ pgdb.py Thu Oct 11 12:14:42 2001 +--- pgdb.py.orig Sun Nov 5 20:15:26 2000 ++++ pgdb.py Thu Nov 29 17:38:24 2001 @@ -58,7 +58,7 @@ import string import exceptions @@ -10,3 +10,20 @@ ### module constants +@@ -384,13 +384,13 @@ + + # mandatory type helpers + def Date(year, month, day): +- return DateTime.DateTime(year, month, day) ++ return mx.DateTime.DateTime(year, month, day) + + def Time(hour, minute, second): +- return DateTime.TimeDelta(hour, minute, second) ++ return mx.DateTime.TimeDelta(hour, minute, second) + + def Timestamp(year, month, day, hour, minute, second): +- return DateTime.DateTime(year, month, day, hour, minute, second) ++ return mx.DateTime.DateTime(year, month, day, hour, minute, second) + + def DateFromTicks(ticks): + return apply(Date, time.localtime(ticks)[:3]) -- cgit v1.2.3