mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
pg_do_encoding_conversion cannot return NULL (at least not unless the input
is NULL), so remove some useless tests for the case.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* 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 $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -204,10 +204,6 @@ t_readline(FILE *fp)
|
||||
len,
|
||||
PG_UTF8,
|
||||
GetDatabaseEncoding());
|
||||
|
||||
if (recoded == NULL) /* should not happen */
|
||||
elog(ERROR, "encoding conversion failed");
|
||||
|
||||
if (recoded == buf)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user