summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-10-06 11:18:30 +0900
committerMichael Paquier <michael@paquier.xyz>2025-10-06 11:18:30 +0900
commit0c7f103028202cec94e12cbe45cebdb5c8fbc392 (patch)
treebc6e3a965d926cb0105c8daefdece47d826e85dd /src
parentea78bd6d5d0f18c09db1e3ec6fd19be38d706030 (diff)
Fix two comments in numeric.c
The comments at the top of numeric_int4_safe() and numeric_int8_safe() mentioned respectively int4_numeric() and int8_numeric(). The intention is to refer to numeric_int4() and numeric_int8(). Oversights in 4246a977bad6. Reported-by: jian he <jian.universality@gmail.com> Discussion: https://postgr.es/m/CACJufxFfVt7Jx9_j=juxXyP-6tznN8OcvS9E-QSgp0BrD8KUgA@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/numeric.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c
index 76269918593..2501007d981 100644
--- a/src/backend/utils/adt/numeric.c
+++ b/src/backend/utils/adt/numeric.c
@@ -4359,7 +4359,7 @@ int4_numeric(PG_FUNCTION_ARGS)
}
/*
- * Internal version of int4_numeric() with support for soft error reporting.
+ * Internal version of numeric_int4() with support for soft error reporting.
*/
int32
numeric_int4_safe(Numeric num, Node *escontext)
@@ -4429,7 +4429,7 @@ int8_numeric(PG_FUNCTION_ARGS)
}
/*
- * Internal version of int8_numeric() with support for soft error reporting.
+ * Internal version of numeric_int8() with support for soft error reporting.
*/
int64
numeric_int8_safe(Numeric num, Node *escontext)