Avoid dependence on setlocale(). No behavior change.
Discussion: https://postgr.es/m/
9875f7f9-50f1-4b5d-86fc-
ee8b03e8c162@eisentraut.org
Reviewed-by: Peter Eisentraut
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]);