From 6e04b4b20f73b2512fc29353ca706bdb635d7e47 Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Fri, 12 Sep 1997 02:42:40 +0000 Subject: [PATCH] Use strcasecmp in SPI_fnumber(TupleDesc tupdesc, char *fname). --- src/backend/executor/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/executor/spi.c b/src/backend/executor/spi.c index 0d16c13b9a..790b60ee85 100644 --- a/src/backend/executor/spi.c +++ b/src/backend/executor/spi.c @@ -288,7 +288,7 @@ SPI_fnumber(TupleDesc tupdesc, char *fname) for (res = 0; res < tupdesc->natts; res++) { - if (strcmp(tupdesc->attrs[res]->attname.data, fname) == 0) + if (strcasecmp(tupdesc->attrs[res]->attname.data, fname) == 0) return (res + 1); } -- 2.40.0