summaryrefslogtreecommitdiff
path: root/src/include/utils/builtins.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-03-12 21:28:14 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-03-12 21:28:14 +0000
commit071484c5d8406feeed7305d6a764257feba6bca2 (patch)
tree2791f2eb53cc36193f194859539596fbe0c6f1d0 /src/include/utils/builtins.h
parent3a7c93e7f32b555defdc2ea0b0554f6dd0a34c41 (diff)
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] timestamp type OK, last one. This patch adds an ANSI SQL 'timestamp' type.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r--src/include/utils/builtins.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h
index 0e28192a216..a9f1572a3e1 100644
--- a/src/include/utils/builtins.h
+++ b/src/include/utils/builtins.h
@@ -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);