Lines Matching defs:mycoll
54 mycoll = lambda x, y: -((x > y) - (x < y))
55 con.create_collation(BadUpperStr("mycoll"), mycoll)
61 ) order by x collate mycoll
67 def mycoll(x, y):
72 con.create_collation("mycoll", mycoll)
80 ) order by x collate mycoll
86 con.create_collation("mycoll", None)
89 self.assertEqual(str(cm.exception), 'no such collation sequence: mycoll')
92 def mycoll(x, y):
96 con.create_collation("mycoll", mycoll)
104 ) order by x collate mycoll
116 con.create_collation("mycoll", lambda x, y: (x > y) - (x < y))
117 con.create_collation("mycoll", lambda x, y: -((x > y) - (x < y)))
119 select x from (select 'a' as x union select 'b' as x) order by x collate mycoll
130 con.create_collation("mycoll", lambda x, y: (x > y) - (x < y))
131 con.create_collation("mycoll", None)
133 con.execute("select 'a' as x union select 'b' as x order by x collate mycoll")
134 self.assertEqual(str(cm.exception), 'no such collation sequence: mycoll')