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
17d63245
Commit
17d63245
authored
Nov 11, 2000
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define conversions to and from text for date, time, and timetz.
parent
89a99cb6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
src/include/catalog/catversion.h
src/include/catalog/catversion.h
+2
-2
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc.h
+14
-1
src/include/utils/date.h
src/include/utils/date.h
+7
-1
No files found.
src/include/catalog/catversion.h
View file @
17d63245
...
...
@@ -37,7 +37,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: catversion.h,v 1.5
7 2000/11/10 20:13:26 tgl
Exp $
* $Id: catversion.h,v 1.5
8 2000/11/11 19:55:33 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -53,6 +53,6 @@
*/
/* yyyymmddN */
#define CATALOG_VERSION_NO 2000111
01
#define CATALOG_VERSION_NO 2000111
10
#endif
src/include/catalog/pg_proc.h
View file @
17d63245
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pg_proc.h,v 1.17
3 2000/11/10 20:13:26 tgl
Exp $
* $Id: pg_proc.h,v 1.17
4 2000/11/11 19:55:33 thomas
Exp $
*
* NOTES
* The script catalog/genbki.sh reads this file and generates .bki
...
...
@@ -1256,6 +1256,19 @@ DESCR("horizontal?");
DATA
(
insert
OID
=
999
(
lseg_eq
PGUID
12
f
t
t
t
2
f
16
"601 601"
100
0
0
100
lseg_eq
-
));
DESCR
(
"equal"
);
DATA
(
insert
OID
=
748
(
date
PGUID
12
f
t
t
t
1
f
1082
"25"
100
0
0
100
text_date
-
));
DESCR
(
"convert text to date"
);
DATA
(
insert
OID
=
749
(
text
PGUID
12
f
t
t
t
1
f
25
"1082"
100
0
0
100
date_text
-
));
DESCR
(
"convert date to text"
);
DATA
(
insert
OID
=
837
(
time
PGUID
12
f
t
t
t
1
f
1083
"25"
100
0
0
100
text_time
-
));
DESCR
(
"convert text to date"
);
DATA
(
insert
OID
=
948
(
text
PGUID
12
f
t
t
t
1
f
25
"1083"
100
0
0
100
time_text
-
));
DESCR
(
"convert time to text"
);
DATA
(
insert
OID
=
938
(
timetz
PGUID
12
f
t
t
t
1
f
1266
"25"
100
0
0
100
text_timetz
-
));
DESCR
(
"convert text to date"
);
DATA
(
insert
OID
=
939
(
text
PGUID
12
f
t
t
t
1
f
25
"1266"
100
0
0
100
timetz_text
-
));
DESCR
(
"convert timetz to text"
);
/* OIDS 1000 - 1999 */
DATA
(
insert
OID
=
1026
(
timezone
PGUID
12
f
t
f
t
2
f
25
"1186 1184"
100
0
0
100
timestamp_izone
-
));
...
...
src/include/utils/date.h
View file @
17d63245
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: date.h,v 1.
5 2000/06/19 03:54:48 tgl
Exp $
* $Id: date.h,v 1.
6 2000/11/11 19:55:39 thomas
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -70,6 +70,8 @@ extern Datum date_timestamp(PG_FUNCTION_ARGS);
extern
Datum
timestamp_date
(
PG_FUNCTION_ARGS
);
extern
Datum
datetime_timestamp
(
PG_FUNCTION_ARGS
);
extern
Datum
abstime_date
(
PG_FUNCTION_ARGS
);
extern
Datum
text_date
(
PG_FUNCTION_ARGS
);
extern
Datum
date_text
(
PG_FUNCTION_ARGS
);
extern
Datum
time_in
(
PG_FUNCTION_ARGS
);
extern
Datum
time_out
(
PG_FUNCTION_ARGS
);
...
...
@@ -85,6 +87,8 @@ extern Datum time_larger(PG_FUNCTION_ARGS);
extern
Datum
time_smaller
(
PG_FUNCTION_ARGS
);
extern
Datum
timestamp_time
(
PG_FUNCTION_ARGS
);
extern
Datum
time_interval
(
PG_FUNCTION_ARGS
);
extern
Datum
text_time
(
PG_FUNCTION_ARGS
);
extern
Datum
time_text
(
PG_FUNCTION_ARGS
);
extern
Datum
timetz_in
(
PG_FUNCTION_ARGS
);
extern
Datum
timetz_out
(
PG_FUNCTION_ARGS
);
...
...
@@ -101,5 +105,7 @@ extern Datum timetz_larger(PG_FUNCTION_ARGS);
extern
Datum
timetz_smaller
(
PG_FUNCTION_ARGS
);
extern
Datum
timestamp_timetz
(
PG_FUNCTION_ARGS
);
extern
Datum
datetimetz_timestamp
(
PG_FUNCTION_ARGS
);
extern
Datum
text_timetz
(
PG_FUNCTION_ARGS
);
extern
Datum
timetz_text
(
PG_FUNCTION_ARGS
);
#endif
/* DATE_H */
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