Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f7a51b7

Browse files
committed
Cleanup of to_char() patch.
Brendan Jurd
1 parent c6ed4ea commit f7a51b7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/backend/utils/adt/formatting.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.126 2007/02/16 10:55:47 petere Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.127 2007/02/17 01:51:42 momjian Exp $
55
*
66
*
77
* Portions Copyright (c) 1999-2007, PostgreSQL Global Development Group
@@ -16,8 +16,9 @@
1616
* Cache & Memory:
1717
* Routines use (itself) internal cache for format pictures.
1818
*
19-
* The cache uses a static buffers and is persistent across transactions.
20-
* If format-picture is bigger than cache buffer, parser is called always.
19+
* The cache uses a static buffer and is persistent across transactions. If
20+
* the format-picture is bigger than the cache buffer, the parser is called
21+
* always.
2122
*
2223
* NOTE for Number version:
2324
* All in this version is implemented as keywords ( => not used

src/test/regress/expected/timestamptz.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,11 +720,11 @@ SELECT '' AS "54", d1 as timestamptz,
720720
| Mon Jan 01 17:32:01 2001 PST | 1 | 1000 | 1000000
721721
(56 rows)
722722

723-
SELECT '' AS "54", d1 as "timestamp",
723+
SELECT '' AS "54", d1 as timestamptz,
724724
date_part( 'isoyear', d1) AS isoyear, date_part( 'week', d1) AS week,
725725
date_part( 'dow', d1) AS dow
726726
FROM TIMESTAMPTZ_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
727-
54 | timestamp | isoyear | week | dow
727+
54 | timestamptz | isoyear | week | dow
728728
----+---------------------------------+---------+------+-----
729729
| Wed Dec 31 16:00:00 1969 PST | 1970 | 1 | 3
730730
| Mon Feb 10 17:32:01 1997 PST | 1997 | 7 | 1

src/test/regress/sql/timestamptz.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ SELECT '' AS "54", d1 as timestamptz,
169169
date_part( 'usec', d1) AS usec
170170
FROM TIMESTAMPTZ_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
171171

172-
SELECT '' AS "54", d1 as "timestamp",
172+
SELECT '' AS "54", d1 as timestamptz,
173173
date_part( 'isoyear', d1) AS isoyear, date_part( 'week', d1) AS week,
174174
date_part( 'dow', d1) AS dow
175175
FROM TIMESTAMPTZ_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';

0 commit comments

Comments
 (0)