]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix two comments in numeric.c
authorMichael Paquier <michael@paquier.xyz>
Mon, 6 Oct 2025 02:18:30 +0000 (11:18 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 6 Oct 2025 02:18:30 +0000 (11:18 +0900)
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

src/backend/utils/adt/numeric.c

index 76269918593d74d604fbdd81f87b6a070c28d89f..2501007d981d5e2651ba9c8def8262d4f02942d8 100644 (file)
@@ -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)