From cd25426a69a600f01d87be8f0798bfc68ad5eb80 Mon Sep 17 00:00:00 2001
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Date: Thu, 27 Nov 2025 07:42:28 +0000
Subject: [PATCH v1 5/5] collid not used in internal_citext_pattern_cmp()

Make use of it, oversight in commit f2464997644c.
---
 contrib/citext/citext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 100.0% contrib/citext/

diff --git a/contrib/citext/citext.c b/contrib/citext/citext.c
index a15ce5db829..d1d41b85ea7 100644
--- a/contrib/citext/citext.c
+++ b/contrib/citext/citext.c
@@ -77,8 +77,8 @@ internal_citext_pattern_cmp(text *left, text *right, Oid collid)
 				rlen;
 	int32		result;
 
-	lcstr = str_tolower(VARDATA_ANY(left), VARSIZE_ANY_EXHDR(left), DEFAULT_COLLATION_OID);
-	rcstr = str_tolower(VARDATA_ANY(right), VARSIZE_ANY_EXHDR(right), DEFAULT_COLLATION_OID);
+	lcstr = str_tolower(VARDATA_ANY(left), VARSIZE_ANY_EXHDR(left), collid);
+	rcstr = str_tolower(VARDATA_ANY(right), VARSIZE_ANY_EXHDR(right), collid);
 
 	llen = strlen(lcstr);
 	rlen = strlen(rcstr);
-- 
2.34.1

