Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f7a51b7a
Commit
f7a51b7a
authored
Feb 17, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of to_char() patch.
Brendan Jurd
parent
c6ed4ead
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
src/backend/utils/adt/formatting.c
src/backend/utils/adt/formatting.c
+4
-3
src/test/regress/expected/timestamptz.out
src/test/regress/expected/timestamptz.out
+2
-2
src/test/regress/sql/timestamptz.sql
src/test/regress/sql/timestamptz.sql
+1
-1
No files found.
src/backend/utils/adt/formatting.c
View file @
f7a51b7a
/* -----------------------------------------------------------------------
* formatting.c
*
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.12
6 2007/02/16 10:55:47 petere
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.12
7 2007/02/17 01:51:42 momjian
Exp $
*
*
* Portions Copyright (c) 1999-2007, PostgreSQL Global Development Group
...
...
@@ -16,8 +16,9 @@
* Cache & Memory:
* Routines use (itself) internal cache for format pictures.
*
* The cache uses a static buffers and is persistent across transactions.
* If format-picture is bigger than cache buffer, parser is called always.
* The cache uses a static buffer and is persistent across transactions. If
* the format-picture is bigger than the cache buffer, the parser is called
* always.
*
* NOTE for Number version:
* All in this version is implemented as keywords ( => not used
...
...
src/test/regress/expected/timestamptz.out
View file @
f7a51b7a
...
...
@@ -720,11 +720,11 @@ SELECT '' AS "54", d1 as timestamptz,
| Mon Jan 01 17:32:01 2001 PST | 1 | 1000 | 1000000
(56 rows)
SELECT '' AS "54", d1 as
"timestamp"
,
SELECT '' AS "54", d1 as
timestamptz
,
date_part( 'isoyear', d1) AS isoyear, date_part( 'week', d1) AS week,
date_part( 'dow', d1) AS dow
FROM TIMESTAMPTZ_TBL WHERE d1 BETWEEN '1902-01-01' AND '2038-01-01';
54 | timestamp
| isoyear | week | dow
54 | timestamp
tz
| isoyear | week | dow
----+---------------------------------+---------+------+-----
| Wed Dec 31 16:00:00 1969 PST | 1970 | 1 | 3
| Mon Feb 10 17:32:01 1997 PST | 1997 | 7 | 1
...
...
src/test/regress/sql/timestamptz.sql
View file @
f7a51b7a
...
...
@@ -169,7 +169,7 @@ SELECT '' AS "54", d1 as timestamptz,
date_part
(
'usec'
,
d1
)
AS
usec
FROM
TIMESTAMPTZ_TBL
WHERE
d1
BETWEEN
'1902-01-01'
AND
'2038-01-01'
;
SELECT
''
AS
"54"
,
d1
as
"timestamp"
,
SELECT
''
AS
"54"
,
d1
as
timestamptz
,
date_part
(
'isoyear'
,
d1
)
AS
isoyear
,
date_part
(
'week'
,
d1
)
AS
week
,
date_part
(
'dow'
,
d1
)
AS
dow
FROM
TIMESTAMPTZ_TBL
WHERE
d1
BETWEEN
'1902-01-01'
AND
'2038-01-01'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment