Oops, proper initialization for domainTypMod was none at all, not 0.

This commit is contained in:
Bruce Momjian 2002-07-09 13:52:14 +00:00
parent 81e7e71941
commit 92a77cb870

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.76 2002/07/09 05:21:35 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_coerce.c,v 2.77 2002/07/09 13:52:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -290,7 +290,7 @@ coerce_type_typmod(ParseState *pstate, Node *node,
{
Oid baseTypeId;
Oid funcId;
int32 domainTypMod = 0;
int32 domainTypMod;
/* If given type is a domain, use base type instead */
baseTypeId = getBaseTypeTypeMod(targetTypeId, &domainTypMod);