|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group |
|
|
|
|
* |
|
|
|
|
* IDENTIFICATION |
|
|
|
|
* $PostgreSQL: pgsql/src/backend/snowball/dict_snowball.c,v 1.6 2008/01/01 19:45:51 momjian Exp $ |
|
|
|
|
* $PostgreSQL: pgsql/src/backend/snowball/dict_snowball.c,v 1.7 2008/11/10 15:18:40 tgl Exp $ |
|
|
|
|
* |
|
|
|
|
*------------------------------------------------------------------------- |
|
|
|
|
*/ |
|
|
|
|
@ -262,9 +262,6 @@ dsnowball_lexize(PG_FUNCTION_ARGS) |
|
|
|
|
strlen(txt), |
|
|
|
|
GetDatabaseEncoding(), |
|
|
|
|
PG_UTF8); |
|
|
|
|
if (recoded == NULL) |
|
|
|
|
elog(ERROR, "encoding conversion failed"); |
|
|
|
|
|
|
|
|
|
if (recoded != txt) |
|
|
|
|
{ |
|
|
|
|
pfree(txt); |
|
|
|
|
@ -294,9 +291,6 @@ dsnowball_lexize(PG_FUNCTION_ARGS) |
|
|
|
|
strlen(txt), |
|
|
|
|
PG_UTF8, |
|
|
|
|
GetDatabaseEncoding()); |
|
|
|
|
if (recoded == NULL) |
|
|
|
|
elog(ERROR, "encoding conversion failed"); |
|
|
|
|
|
|
|
|
|
if (recoded != txt) |
|
|
|
|
{ |
|
|
|
|
pfree(txt); |
|
|
|
|
|