Re: PATCH: Fix wrong size argument to pg_strncasecmp

2020-01-31 Thread Tom Lane
Dominik Czarnota writes: > This patch fixes a size parameter of `pg_strncasecmp` which compared a > "string" literal with a variable by passing a size of 5 while the "string" > literal has 6 bytes. Pushed, thanks for the report! > By the way, the `strncasecmp` usages around the fixed line could

PATCH: Fix wrong size argument to pg_strncasecmp

2020-01-31 Thread Dominik Czarnota
Hello, Please find a one-liner patch in the attachment. This patch fixes a size parameter of `pg_strncasecmp` which compared a "string" literal with a variable by passing a size of 5 while the "string" literal has 6 bytes. This issue can be observed with the following query (where 'X' is any cha