*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.34 1998/09/01 04:27:49 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.35 1998/10/01 22:45:29 momjian Exp $
*
*-------------------------------------------------------------------------
*/
for (i = 0; i < constr->num_check; i++)
{
- Constraint *cdef = (Constraint *) makeNode(Constraint); /* palloc(sizeof(Constrai
- * nt)); */
+ Constraint *cdef = (Constraint *) makeNode(Constraint);
cdef->contype = CONSTR_CHECK;
if (check[i].ccname[0] == '$')
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.6 1998/09/01 04:30:28 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.7 1998/10/01 22:45:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
{
Const *con = (Const *) node;
- val = (Datum) textout((struct varlena *)
- con->constvalue);
+ val = (Datum) textout((struct varlena *)con->constvalue);
infunc = typeidInfunc(targetTypeId);
con = makeNode(Const);
con->consttype = targetTypeId;
/* use "-1" for varchar() type */
con->constvalue = (Datum) fmgr(infunc,
val,
- typeidTypElem(targetTypeId),
+ typeidTypElem(targetTypeId),
-1);
con->constisnull = false;
- con->constbyval = true;
+ con->constbyval = typeByVal(typeidType(targetTypeId));
con->constisset = false;
result = (Node *) con;
}
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.22 1998/09/25 13:36:05 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.23 1998/10/01 22:45:32 momjian Exp $
*
*-------------------------------------------------------------------------
*/
result = coerce_type(NULL, tree, orig_typeId, true_typeId);
}
}
-
/* otherwise, this is a NULL value */
else
{