diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-01-14 10:46:49 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-01-14 11:26:08 +0100 |
commit | c4cc2850f4d16092c2b7b39964c097260935a72c (patch) | |
tree | b4fe8e12dcf959b0df61ff55d57d44562a315ae0 /src/backend/utils/adt/oid.c | |
parent | 93415a3b5ac8d8a2951ca0db887d8a173b8630a0 (diff) | |
download | postgresql-c4cc2850f4d16092c2b7b39964c097260935a72c.tar.gz postgresql-c4cc2850f4d16092c2b7b39964c097260935a72c.zip |
Rename value node fields
For the formerly-Value node types, rename the "val" field to a name
specific to the node type, namely "ival", "fval", "sval", and "bsval".
This makes some code clearer and catches mixups better.
Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/8c1a2e37-c68d-703c-5a83-7a6077f4f997@enterprisedb.com
Diffstat (limited to 'src/backend/utils/adt/oid.c')
-rw-r--r-- | src/backend/utils/adt/oid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/oid.c b/src/backend/utils/adt/oid.c index 4ec16b14a7f..b5af4223412 100644 --- a/src/backend/utils/adt/oid.c +++ b/src/backend/utils/adt/oid.c @@ -324,7 +324,7 @@ oidparse(Node *node) * constants by the lexer. Accept these if they are valid OID * strings. */ - return oidin_subr(castNode(Float, node)->val, NULL); + return oidin_subr(castNode(Float, node)->fval, NULL); default: elog(ERROR, "unrecognized node type: %d", (int) nodeTag(node)); } |