aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/operatorcmds.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2010-10-25 21:40:46 +0300
committerPeter Eisentraut <peter_e@gmx.net>2010-10-25 21:44:49 +0300
commit35670340f57d78d6ab023b1fb42fd81339f85d4c (patch)
tree353a103641ea21787ace05801ebc9f2a42e61137 /src/backend/commands/operatorcmds.c
parentc6873eac4c33720140240cdbd1a663fecc922c57 (diff)
downloadpostgresql-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/commands/operatorcmds.c')
-rw-r--r--src/backend/commands/operatorcmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/operatorcmds.c b/src/backend/commands/operatorcmds.c
index 36bedf4f48e..503cf0f23db 100644
--- a/src/backend/commands/operatorcmds.c
+++ b/src/backend/commands/operatorcmds.c
@@ -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,