v1-0002-contrib-spi-refint.c-use-pg_ascii_tolower-instead.patch
text/x-patch
Filename: v1-0002-contrib-spi-refint.c-use-pg_ascii_tolower-instead.patch
Type: text/x-patch
Part: 1
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v1-0002
Subject: contrib/spi/refint.c: use pg_ascii_tolower() instead.
| File | + | − |
|---|---|---|
| contrib/spi/refint.c | 1 | 1 |
From 5b60fbc629f6466c435021b8d3997b5763268ed1 Mon Sep 17 00:00:00 2001 From: Jeff Davis <jeff@j-davis.com> Date: Fri, 6 Jun 2025 09:54:40 -0700 Subject: [PATCH v1 2/8] contrib/spi/refint.c: use pg_ascii_tolower() instead. --- contrib/spi/refint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/spi/refint.c b/contrib/spi/refint.c index d5e25e07ae9..89898cad7b0 100644 --- a/contrib/spi/refint.c +++ b/contrib/spi/refint.c @@ -321,7 +321,7 @@ check_foreign_key(PG_FUNCTION_ARGS) if (nrefs < 1) /* internal error */ elog(ERROR, "check_foreign_key: %d (< 1) number of references specified", nrefs); - action = tolower((unsigned char) *(args[1])); + action = pg_ascii_tolower((unsigned char) *(args[1])); if (action != 'r' && action != 'c' && action != 's') /* internal error */ elog(ERROR, "check_foreign_key: invalid action %s", args[1]); -- 2.43.0