Oid baseTypeId;
int32 baseTypeMod;
int32 inputTypeMod;
- Type targetType;
+ Type baseType;
ParseCallbackState pcbstate;
/*
else
inputTypeMod = -1;
- targetType = typeidType(baseTypeId);
+ baseType = typeidType(baseTypeId);
newcon->consttype = baseTypeId;
newcon->consttypmod = inputTypeMod;
- newcon->constcollid = typeTypeCollation(targetType);
- newcon->constlen = typeLen(targetType);
- newcon->constbyval = typeByVal(targetType);
+ newcon->constcollid = typeTypeCollation(baseType);
+ newcon->constlen = typeLen(baseType);
+ newcon->constbyval = typeByVal(baseType);
newcon->constisnull = con->constisnull;
/*
* as CSTRING.
*/
if (!con->constisnull)
- newcon->constvalue = stringTypeDatum(targetType,
+ newcon->constvalue = stringTypeDatum(baseType,
DatumGetCString(con->constvalue),
inputTypeMod);
else
- newcon->constvalue = stringTypeDatum(targetType,
+ newcon->constvalue = stringTypeDatum(baseType,
NULL,
inputTypeMod);
targetTypeId,
cformat, location, false, false);
- ReleaseSysCache(targetType);
+ ReleaseSysCache(baseType);
return result;
}