mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +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:
@@ -536,7 +536,7 @@ BuildDescForRelation(List *schema)
|
||||
attnum++;
|
||||
|
||||
attname = entry->colname;
|
||||
atttypid = typenameTypeId(NULL, entry->typeName, &atttypmod);
|
||||
typenameTypeIdAndMod(NULL, entry->typeName, &atttypid, &atttypmod);
|
||||
attdim = list_length(entry->typeName->arrayBounds);
|
||||
|
||||
if (entry->typeName->setof)
|
||||
|
Reference in New Issue
Block a user