1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-21 05:21:08 +03:00
Subject: [HACKERS] timestamp type

OK, last one.  This patch adds an ANSI SQL 'timestamp' type.
This commit is contained in:
Marc G. Fournier
1997-03-12 21:28:14 +00:00
parent 3a7c93e7f3
commit 071484c5d8
5 changed files with 36 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: builtins.h,v 1.10 1997/03/09 20:41:02 momjian Exp $
* $Id: builtins.h,v 1.11 1997/03/12 21:28:14 scrappy Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
@@ -403,6 +403,18 @@ extern float64 gistnpage(Oid operatorObjectId, Oid indrelid, AttrNumber attribut
/* tid.c */
extern ItemPointer tidin(char *str);
extern char *tidout(ItemPointer itemPtr);
/* timestamp.c */
extern int4 timestamp_in(char *timestamp_str);
extern char *timestamp_out(int4 timestamp);
extern int4 now(void);
int4 timestampeq(int4 t1, int4 t2);
int4 timestampne(int4 t1, int4 t2);
int4 timestamplt(int4 t1, int4 t2);
int4 timestampgt(int4 t1, int4 t2);
int4 timestample(int4 t1, int4 t2);
int4 timestampge(int4 t1, int4 t2);
/* varchar.c */
extern char *bpcharin(char *s, int dummy, int typlen);
extern char *bpcharout(char *s);