@@ -1566,7 +1566,8 @@ str_tolower(const char *buff, size_t nbytes, Oid collid)
15661566 */
15671567 ereport (ERROR ,
15681568 (errcode (ERRCODE_INDETERMINATE_COLLATION ),
1569- errmsg ("could not determine which collation to use for lower() function" ),
1569+ errmsg ("could not determine which collation to use for %s function" ,
1570+ "lower()" ),
15701571 errhint ("Use the COLLATE clause to set the collation explicitly." )));
15711572 }
15721573 mylocale = pg_newlocale_from_collation (collid );
@@ -1688,7 +1689,8 @@ str_toupper(const char *buff, size_t nbytes, Oid collid)
16881689 */
16891690 ereport (ERROR ,
16901691 (errcode (ERRCODE_INDETERMINATE_COLLATION ),
1691- errmsg ("could not determine which collation to use for upper() function" ),
1692+ errmsg ("could not determine which collation to use for %s function" ,
1693+ "upper()" ),
16921694 errhint ("Use the COLLATE clause to set the collation explicitly." )));
16931695 }
16941696 mylocale = pg_newlocale_from_collation (collid );
@@ -1811,7 +1813,8 @@ str_initcap(const char *buff, size_t nbytes, Oid collid)
18111813 */
18121814 ereport (ERROR ,
18131815 (errcode (ERRCODE_INDETERMINATE_COLLATION ),
1814- errmsg ("could not determine which collation to use for initcap() function" ),
1816+ errmsg ("could not determine which collation to use for %s function" ,
1817+ "initcap()" ),
18151818 errhint ("Use the COLLATE clause to set the collation explicitly." )));
18161819 }
18171820 mylocale = pg_newlocale_from_collation (collid );
0 commit comments