*** pgsql/src/backend/utils/adt/tsginidx.c 2009/06/11 14:49:04 1.16 --- pgsql/src/backend/utils/adt/tsginidx.c 2009/07/16 06:33:44 1.17 *************** *** 7,13 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.15 2009/03/25 22:19:01 tgl Exp $ * *------------------------------------------------------------------------- */ --- 7,13 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/utils/adt/tsginidx.c,v 1.16 2009/06/11 14:49:04 momjian Exp $ * *------------------------------------------------------------------------- */ *************** gin_extract_tsquery(PG_FUNCTION_ARGS) *** 142,148 **** if (item[i].type == QI_VAL) { text *txt; ! QueryOperand *val = &item[i].operand; txt = cstring_to_text_with_len(GETOPERAND(query) + val->distance, val->length); --- 142,148 ---- if (item[i].type == QI_VAL) { text *txt; ! QueryOperand *val = &item[i].qoperand; txt = cstring_to_text_with_len(GETOPERAND(query) + val->distance, val->length);