mirror of
https://github.com/postgres/postgres.git
synced 2025-08-15 14:02:29 +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:
@@ -148,12 +148,12 @@ LookupOperNameTypeNames(ParseState *pstate, List *opername,
|
||||
if (oprleft == NULL)
|
||||
leftoid = InvalidOid;
|
||||
else
|
||||
leftoid = typenameTypeId(pstate, oprleft, NULL);
|
||||
leftoid = typenameTypeId(pstate, oprleft);
|
||||
|
||||
if (oprright == NULL)
|
||||
rightoid = InvalidOid;
|
||||
else
|
||||
rightoid = typenameTypeId(pstate, oprright, NULL);
|
||||
rightoid = typenameTypeId(pstate, oprright);
|
||||
|
||||
return LookupOperName(pstate, opername, leftoid, rightoid,
|
||||
noError, location);
|
||||
|
Reference in New Issue
Block a user