Lines Matching refs:mycoll
60 mycoll = lambda x, y: -((x > y) - (x < y))
61 con.create_collation(BadUpperStr("mycoll"), mycoll)
67 ) order by x collate mycoll
75 def mycoll(x, y):
80 con.create_collation("mycoll", mycoll)
88 ) order by x collate mycoll
94 con.create_collation("mycoll", None)
99 self.assertEqual(e.args[0].lower(), "no such collation sequence: mycoll")
102 def mycoll(x, y):
106 con.create_collation("mycoll", mycoll)
114 ) order by x collate mycoll
126 con.create_collation("mycoll", cmp)
127 con.create_collation("mycoll", lambda x, y: -cmp(x, y))
129 select x from (select 'a' as x union select 'b' as x) order by x collate mycoll
140 con.create_collation("mycoll", cmp)
141 con.create_collation("mycoll", None)
143 con.execute("select 'a' as x union select 'b' as x order by x collate mycoll")