diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2010-10-25 21:40:46 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2010-10-25 21:44:49 +0300 |
commit | 35670340f57d78d6ab023b1fb42fd81339f85d4c (patch) | |
tree | 353a103641ea21787ace05801ebc9f2a42e61137 /src/backend/access/common/tupdesc.c | |
parent | c6873eac4c33720140240cdbd1a663fecc922c57 (diff) | |
download | postgresql-35670340f57d78d6ab023b1fb42fd81339f85d4c.tar.gz postgresql-35670340f57d78d6ab023b1fb42fd81339f85d4c.zip |
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.
Diffstat (limited to 'src/backend/access/common/tupdesc.c')
-rw-r--r-- | src/backend/access/common/tupdesc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/common/tupdesc.c b/src/backend/access/common/tupdesc.c index 33e5b192fc0..eae34618d87 100644 --- a/src/backend/access/common/tupdesc.c +++ b/src/backend/access/common/tupdesc.c @@ -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) |