mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Add errhint_plural() function and make use of it
Similar to existing errmsg_plural() and errdetail_plural(). Some errhint() calls hadn't received the proper plural treatment yet.
This commit is contained in:
@@ -188,6 +188,9 @@ extern int errdetail_plural(const char *fmt_singular, const char *fmt_plural,
|
||||
|
||||
extern int errhint(const char *fmt,...) pg_attribute_printf(1, 2);
|
||||
|
||||
extern int errhint_plural(const char *fmt_singular, const char *fmt_plural,
|
||||
unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4);
|
||||
|
||||
/*
|
||||
* errcontext() is typically called in error context callback functions, not
|
||||
* within an ereport() invocation. The callback function can be in a different
|
||||
|
||||
Reference in New Issue
Block a user