is NULL), so remove some useless tests for the case.
* 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 $
*
*-------------------------------------------------------------------------
*/
strlen(txt),
GetDatabaseEncoding(),
PG_UTF8);
- if (recoded == NULL)
- elog(ERROR, "encoding conversion failed");
-
if (recoded != txt)
{
pfree(txt);
strlen(txt),
PG_UTF8,
GetDatabaseEncoding());
- if (recoded == NULL)
- elog(ERROR, "encoding conversion failed");
-
if (recoded != txt)
{
pfree(txt);
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tsearch/ts_locale.c,v 1.10 2008/06/18 20:55:42 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/tsearch/ts_locale.c,v 1.11 2008/11/10 15:18:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
len,
PG_UTF8,
GetDatabaseEncoding());
-
- if (recoded == NULL) /* should not happen */
- elog(ERROR, "encoding conversion failed");
-
if (recoded == buf)
{
/*
* (currently mule internal code (mic) is used)
* Tatsuo Ishii
*
- * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.73 2008/06/18 23:08:47 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.74 2008/11/10 15:18:40 tgl Exp $
*/
#include "postgres.h"
*(str + len) = '\0';
result = pg_do_encoding_conversion(str, len, src_encoding, dest_encoding);
- if (result == NULL)
- elog(ERROR, "encoding conversion failed");
/*
* build bytea data type structure.