pgsql: Fix multibyte issue in ltree_strncasecmp().

2025-12-16 Thread Jeff Davis
Fix multibyte issue in ltree_strncasecmp(). Previously, the API for ltree_strncasecmp() took two inputs but only one length (that of the smaller input). It truncated the larger input to that length, but that could break a multibyte sequence. Change the API to be a check for prefix equality (possi

pgsql: Fix multibyte issue in ltree_strncasecmp().

2025-12-16 Thread Jeff Davis
Fix multibyte issue in ltree_strncasecmp(). Previously, the API for ltree_strncasecmp() took two inputs but only one length (that of the smaller input). It truncated the larger input to that length, but that could break a multibyte sequence. Change the API to be a check for prefix equality (possi

pgsql: Fix multibyte issue in ltree_strncasecmp().

2025-12-16 Thread Jeff Davis
Fix multibyte issue in ltree_strncasecmp(). Previously, the API for ltree_strncasecmp() took two inputs but only one length (that of the smaller input). It truncated the larger input to that length, but that could break a multibyte sequence. Change the API to be a check for prefix equality (possi

pgsql: Fix multibyte issue in ltree_strncasecmp().

2025-12-16 Thread Jeff Davis
Fix multibyte issue in ltree_strncasecmp(). Previously, the API for ltree_strncasecmp() took two inputs but only one length (that of the smaller input). It truncated the larger input to that length, but that could break a multibyte sequence. Change the API to be a check for prefix equality (possi

pgsql: Fix multibyte issue in ltree_strncasecmp().

2025-12-16 Thread Jeff Davis
Fix multibyte issue in ltree_strncasecmp(). Previously, the API for ltree_strncasecmp() took two inputs but only one length (that of the smaller input). It truncated the larger input to that length, but that could break a multibyte sequence. Change the API to be a check for prefix equality (possi

pgsql: Fix multibyte issue in ltree_strncasecmp().

2025-12-16 Thread Jeff Davis
Fix multibyte issue in ltree_strncasecmp(). Previously, the API for ltree_strncasecmp() took two inputs but only one length (that of the smaller input). It truncated the larger input to that length, but that could break a multibyte sequence. Change the API to be a check for prefix equality (possi