mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Refactor typenameTypeId()
Split the old typenameTypeId() into two functions: A new typenameTypeId() that returns only a type OID, and typenameTypeIdAndMod() that returns type OID and typmod. This isolates call sites better that actually care about the typmod.
This commit is contained in:
@ -167,9 +167,9 @@ DefineOperator(List *names, List *parameters)
|
||||
|
||||
/* Transform type names to type OIDs */
|
||||
if (typeName1)
|
||||
typeId1 = typenameTypeId(NULL, typeName1, NULL);
|
||||
typeId1 = typenameTypeId(NULL, typeName1);
|
||||
if (typeName2)
|
||||
typeId2 = typenameTypeId(NULL, typeName2, NULL);
|
||||
typeId2 = typenameTypeId(NULL, typeName2);
|
||||
|
||||
if (!OidIsValid(typeId1) && !OidIsValid(typeId2))
|
||||
ereport(ERROR,
|
||||
|
Reference in New Issue
Block a user