]> granicus.if.org Git - postgresql/commitdiff
Fix creation of ICU comments for keyword variants
authorPeter Eisentraut <peter_e@gmx.net>
Sat, 19 Aug 2017 03:02:28 +0000 (23:02 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sat, 19 Aug 2017 03:04:28 +0000 (23:04 -0400)
It would create the comment referring to the keyword-less parent
locale.  This was broken in ddb5fdc068635d003a0d1c303cb109d1cb3ebeb1.

src/backend/commands/collationcmds.c

index 96a6bc9bf08ba0d54b8a76f86ad59386d17f914b..8572b2dedc485cacc1d052a56c9c5ade2ec8edde 100644 (file)
@@ -775,7 +775,7 @@ pg_import_system_collations(PG_FUNCTION_ARGS)
 
                                        CommandCounterIncrement();
 
-                                       icucomment = get_icu_locale_comment(name);
+                                       icucomment = get_icu_locale_comment(localeid);
                                        if (icucomment)
                                                CreateComments(collid, CollationRelationId, 0,
                                                                           icucomment);