* 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. */
| 309 | * and typmod, not the syscache entry. |
| 310 | */ |
| 311 | void |
| 312 | typenameTypeIdAndMod(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 |
no test coverage detected