1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Support of multibyte encoding for pg_trgm

This commit is contained in:
Teodor Sigaev
2008-11-12 13:43:54 +00:00
parent e4ffd143a3
commit b87b52bf04
3 changed files with 161 additions and 88 deletions

View File

@ -1,5 +1,5 @@
/*
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_gin.c,v 1.5 2008/07/11 11:56:48 teodor Exp $
* $PostgreSQL: pgsql/contrib/pg_trgm/trgm_gin.c,v 1.6 2008/11/12 13:43:54 teodor Exp $
*/
#include "trgm.h"
@ -42,7 +42,7 @@ gin_extract_trgm(PG_FUNCTION_ARGS)
ptr = GETARR(trg);
while (ptr - GETARR(trg) < ARRNELEM(trg))
{
item = TRGMINT(ptr);
item = trgm2int(ptr);
entries[i++] = Int32GetDatum(item);
ptr++;