mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +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:
@@ -4,7 +4,7 @@
|
||||
* (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"
|
||||
|
||||
@@ -381,8 +381,6 @@ pg_convert(PG_FUNCTION_ARGS)
|
||||
*(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.
|
||||
|
||||
Reference in New Issue
Block a user