aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_node.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-02-13 19:46:22 +0000
committerBruce Momjian <bruce@momjian.us>1998-02-13 19:46:22 +0000
commitedd366889563fa7c68f2cadb2d64e76197523538 (patch)
tree5773726bcee4247ab064ca78a743922e2a1454b9 /src/backend/parser/parse_node.c
parentce88b9b40b7ecd6404c9315f70dbe8b1595a4925 (diff)
downloadpostgresql-edd366889563fa7c68f2cadb2d64e76197523538.tar.gz
postgresql-edd366889563fa7c68f2cadb2d64e76197523538.zip
Atttypmod cleanup.
Diffstat (limited to 'src/backend/parser/parse_node.c')
-rw-r--r--src/backend/parser/parse_node.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/backend/parser/parse_node.c b/src/backend/parser/parse_node.c
index b4ffeeb21a3..708bb54103c 100644
--- a/src/backend/parser/parse_node.c
+++ b/src/backend/parser/parse_node.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.12 1998/02/10 16:03:39 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.13 1998/02/13 19:45:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -79,7 +79,7 @@ make_operand(char *opname,
Assert(nodeTag(result) == T_Const);
val = (Datum) textout((struct varlena *)
con->constvalue);
- infunc = typeidRetinfunc(true_typeId);
+ infunc = typeidInfunc(true_typeId);
con = makeNode(Const);
con->consttype = true_typeId;
con->constlen = typeLen(true_type);
@@ -185,10 +185,10 @@ make_op(char *opname, Node *ltree, Node *rtree)
CONVERTABLE_TYPE(rtypeId) && nodeTag(rtree) == T_Const &&
!((Const *) rtree)->constiscast)
{
- outfunc = typeidRetoutfunc(rtypeId);
- infunc = typeidRetinfunc(ltypeId);
+ outfunc = typeidOutfunc(rtypeId);
+ infunc = typeidInfunc(ltypeId);
outstr = (char *) fmgr(outfunc, ((Const *) rtree)->constvalue);
- ((Const *) rtree)->constvalue = (Datum) fmgr(infunc, outstr);
+ ((Const *) rtree)->constvalue = (Datum) fmgr(infunc, outstr, -1);
pfree(outstr);
((Const *) rtree)->consttype = rtypeId = ltypeId;
newtype = typeidType(rtypeId);
@@ -200,10 +200,10 @@ make_op(char *opname, Node *ltree, Node *rtree)
CONVERTABLE_TYPE(ltypeId) && nodeTag(ltree) == T_Const &&
!((Const *) ltree)->constiscast)
{
- outfunc = typeidRetoutfunc(ltypeId);
- infunc = typeidRetinfunc(rtypeId);
+ outfunc = typeidOutfunc(ltypeId);
+ infunc = typeidInfunc(rtypeId);
outstr = (char *) fmgr(outfunc, ((Const *) ltree)->constvalue);
- ((Const *) ltree)->constvalue = (Datum) fmgr(infunc, outstr);
+ ((Const *) ltree)->constvalue = (Datum) fmgr(infunc, outstr, -1);
pfree(outstr);
((Const *) ltree)->consttype = ltypeId = rtypeId;
newtype = typeidType(ltypeId);