mirror of
https://github.com/postgres/postgres.git
synced 2025-12-09 02:08:45 +03:00
Hide internal error for pg_collation_actual_version(<bad OID>).
Instead of an unsightly internal "cache lookup failed" message, just return NULL for bad OIDs, as is the convention for other similar things. Reported-by: Justin Pryzby <pryzby@telsasoft.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/20210117215940.GE8560%40telsasoft.com
This commit is contained in:
@@ -103,7 +103,7 @@ typedef struct pg_locale_struct *pg_locale_t;
|
||||
|
||||
extern pg_locale_t pg_newlocale_from_collation(Oid collid);
|
||||
|
||||
extern char *get_collation_version_for_oid(Oid collid);
|
||||
extern char *get_collation_version_for_oid(Oid collid, bool missing_ok);
|
||||
|
||||
#ifdef USE_ICU
|
||||
extern int32_t icu_to_uchar(UChar **buff_uchar, const char *buff, size_t nbytes);
|
||||
|
||||
Reference in New Issue
Block a user