summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2001-10-09 04:15:38 +0000
committerTom Lane2001-10-09 04:15:38 +0000
commit0b3bca6c6f92722c9c4dc8ae69703b8a5cff363f (patch)
treebb12f562257b28dcfc3e89ada2e4eab0fc0893c1 /src/include
parent7ecc40c2df27d9fe63f6e149f5daa5d11c06d984 (diff)
Change plpgsql to depend on main parser's type-declaration grammar,
rather than having its own somewhat half-baked notion of what a type declaration looks like. This is necessary now to ensure that plpgsql will think a 'timestamp' variable has the same semantics as 'timestamp' does in the main SQL grammar; and it should avoid divergences in future.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/parser/parse_type.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/parser/parse_type.h b/src/include/parser/parse_type.h
index dee44cfe10..baa31c972b 100644
--- a/src/include/parser/parse_type.h
+++ b/src/include/parser/parse_type.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parse_type.h,v 1.16 2001/01/24 19:43:27 momjian Exp $
+ * $Id: parse_type.h,v 1.17 2001/10/09 04:15:38 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -34,6 +34,8 @@ extern char *typeidTypeName(Oid id);
extern Oid typeidTypeRelid(Oid type_id);
extern Oid typenameTypeId(char *s);
+extern void parseTypeString(const char *str, Oid *type_id, int32 *typmod);
+
#define ISCOMPLEX(typeid) (typeidTypeRelid(typeid) != InvalidOid)
#endif /* PARSE_TYPE_H */