mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +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:
@ -90,7 +90,7 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString)
|
||||
foreach(l, stmt->argtypes)
|
||||
{
|
||||
TypeName *tn = lfirst(l);
|
||||
Oid toid = typenameTypeId(pstate, tn, NULL);
|
||||
Oid toid = typenameTypeId(pstate, tn);
|
||||
|
||||
argtypes[i++] = toid;
|
||||
}
|
||||
|
Reference in New Issue
Block a user