trgm_bugfix_v1.patch

application/octet-stream

Filename: trgm_bugfix_v1.patch
Type: application/octet-stream
Part: 0
Message: bug of pg_trgm?

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
Series: patch v1
File+
contrib/pg_trgm/trgm_op.c 1 0
*** a/contrib/pg_trgm/trgm_op.c
--- b/contrib/pg_trgm/trgm_op.c
***************
*** 284,293 **** get_wildcard_part(const char *str, int lenstr,
  	{
  		if (in_escape)
  		{
- 			in_escape = false;
- 			in_wildcard_meta = false;
  			if (iswordchr(beginword))
  				break;
  		}
  		else
  		{
--- 284,292 ----
  	{
  		if (in_escape)
  		{
  			if (iswordchr(beginword))
  				break;
+ 			in_escape = false;
  		}
  		else
  		{
***************
*** 334,340 **** get_wildcard_part(const char *str, int lenstr,
  	 */
  	endword = beginword;
  	in_wildcard_meta = false;
- 	in_escape = false;
  	while (endword - str < lenstr)
  	{
  		clen = pg_mblen(endword);
--- 333,338 ----