99
99
self.con = sqlite.connect(":memory:", detect_types=sqlite.PARSE_DECLTYPES)
100
100
self.cur = self.con.cursor()
101
self.cur.execute("create table test(i int, s str, f float, b bool, u unicode, foo foo, bin blob)")
101
self.cur.execute("create table test(i int, s str, f float, b bool, u unicode, foo foo, bin blob, n1 number, n2 number(5))")
103
103
# override float, make them always return the same number
104
104
sqlite.converters["FLOAT"] = lambda x: 47.2