Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6a3717f

Browse files
author
Marina Polyakova
committed
ICU: pg_dump: fix the use of the encoding value to add the database collprovider
i_encoding is the index in the tuple.
1 parent 75f79d7 commit 6a3717f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2577,7 +2577,7 @@ dumpDatabase(Archive *fout)
25772577
dbcollate = addCollProvider(dbcollate,
25782578
fout->remoteVersion,
25792579
fout->remoteEdition,
2580-
i_encoding);
2580+
pg_char_to_encoding(encoding));
25812581
appendStringLiteralAH(creaQry, dbcollate, fout);
25822582
free(dbcollate);
25832583
}

0 commit comments

Comments
 (0)