patch for datetime.c - Mailing list pgsql-patches

From Joseph Shraibman
Subject patch for datetime.c
Date
Msg-id 3AF20542.209EBA3E@selectacast.net
Whole thread Raw
Responses Re: patch for datetime.c  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-patches
[root@d1 ~/postgresql-7.1/src/backend/utils/adt] diff -C 3
datetime.c.orig datetime.c
*** datetime.c.orig     Thu May  3 21:16:37 2001
--- datetime.c  Thu May  3 21:19:51 2001
***************
*** 2087,2092 ****
--- 2087,2096 ----

        sec = (tm->tm_sec + fsec);

+       if (sec >= 59.995)
+               sec = 59.99; /* Round down to avoid times like
2001-05-03 21:18:60.00-04 */
+
+
        switch (style)
        {
                        /* compatible with ISO date formats */

--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: dbf2pg improvements (password, charset convertions,etc.)
Next
From: Tom Lane
Date:
Subject: Re: patch for datetime.c