8000 contrib/spi/refint.c: use pg_ascii_tolower() instead. · petergeoghegan/postgres@78bd364 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78bd364

Browse files
committed
contrib/spi/refint.c: use pg_ascii_tolower() instead.
Avoid dependence on setlocale(). No behavior change. Discussion: https://postgr.es/m/9875f7f9-50f1-4b5d-86fc-ee8b03e8c162@eisentraut.org Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
1 parent 4c787a2 commit 78bd364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/spi/refint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
321321
if (nrefs < 1)
322322
/* internal error */
323323
elog(ERROR, "check_foreign_key: %d (< 1) number of references specified", nrefs);
324-
action = tolower((unsigned char) *(args[1]));
324+
action = pg_ascii_tolower((unsigned ch 48C3 ar) *(args[1]));
325325
if (action != 'r' && action != 'c' && action != 's')
326326
/* internal error */
327327
elog(ERROR, "check_foreign_key: invalid action %s", args[1]);

0 commit comments

Comments
 (0)
0