MCPcopy Create free account
hub / github.com/apache/cloudberry / typenameTypeIdAndMod

Function typenameTypeIdAndMod

src/backend/parser/parse_type.c:311–320  ·  view source on GitHub ↗

* typenameTypeIdAndMod - given a TypeName, return the type's OID and typmod * * This is equivalent to typenameType, but we only hand back the type OID * and typmod, not the syscache entry. */

Source from the content-addressed store, hash-verified

309 * and typmod, not the syscache entry.
310 */
311void
312typenameTypeIdAndMod(ParseState *pstate, const TypeName *typeName,
313 Oid *typeid_p, int32 *typmod_p)
314{
315 Type tup;
316
317 tup = typenameType(pstate, typeName, typmod_p);
318 *typeid_p = ((Form_pg_type) GETSTRUCT(tup))->oid;
319 ReleaseSysCache(tup);
320}
321
322/*
323 * typenameTypeMod - given a TypeName, return the internal typmod value

Callers 10

revalidate_rectypeidFunction · 0.85
MergeAttributesFunction · 0.85
ATExecAddColumnFunction · 0.85
ATPrepAlterColumnTypeFunction · 0.85
transformXmlSerializeFunction · 0.85
transformTypeCastFunction · 0.85
transformRangeTableFuncFunction · 0.85
BuildDescForRelationFunction · 0.85

Calls 2

typenameTypeFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected