Add some multi-character strings to test sorting of German umlauts

This commit is contained in:
Peter J. Holzer 2021-02-18 15:12:24 +01:00 committed by Peter J. Holzer
parent 7ddbb84dec
commit de9cf8fb8a
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ for c in range(1, 0xD800):
csr.execute("insert into t_pgcollate(t) values(%s)", (chr(c),)) csr.execute("insert into t_pgcollate(t) values(%s)", (chr(c),))
for c in range(0xE000, 0x110000): for c in range(0xE000, 0x110000):
csr.execute("insert into t_pgcollate(t) values(%s)", (chr(c),)) csr.execute("insert into t_pgcollate(t) values(%s)", (chr(c),))
for s in ('asa', 'asb', 'assa', 'aßa', 'ata', 'bab', 'bäb', 'bac', ):
csr.execute("insert into t_pgcollate(t) values(%s)", (s,))
db.commit() db.commit()
csr.execute("select * from t_pgcollate order by t") csr.execute("select * from t_pgcollate order by t")
for r in csr: for r in csr: