Home | History | Annotate | Download | only in test

Lines Matching refs:con

44         self.con = sqlite.connect(":memory:", factory=MyConnection)
47 self.con.close()
50 self.assertTrue(isinstance(self.con,
56 self.con = sqlite.connect(":memory:")
59 self.con.close()
62 cur = self.con.cursor(factory=MyCursor)
69 self.con = sqlite.connect(":memory:")
72 cur = self.con.cursor(factory=MyCursor)
81 self.con.close()
85 self.con = sqlite.connect(":memory:")
88 self.con.row_factory = lambda cur, row: list(row)
89 row = self.con.execute("select 1, 2").fetchone()
95 self.con.row_factory = sqlite.Row
96 row = self.con.execute("select 1 as a, 2 as b").fetchone()
115 self.con.row_factory = sqlite.Row
116 row = self.con.execute("select 1 as a, 2 as b").fetchone()
122 self.con.row_factory = sqlite.Row
123 row = self.con.execute("select 1 as a, 2 as b").fetchone()
128 self.con.row_factory = sqlite.Row
129 row = self.con.execute("select 1 as a, 2 as b").fetchone()
136 self.con.row_factory = sqlite.Row
137 row_1 = self.con.execute("select 1 as a, 2 as b").fetchone()
138 row_2 = self.con.execute("select 1 as a, 2 as b").fetchone()
139 row_3 = self.con.execute("select 1 as a, 3 as b").fetchone()
155 self.con.close()
159 self.con = sqlite.connect(":memory:")
163 row = self.con.execute("select ?", (austria,)).fetchone()
167 self.con.text_factory = str
169 row = self.con.execute("select ?", (austria,)).fetchone()
174 self.con.text_factory = lambda x: unicode(x, "utf-8", "ignore")
176 row = self.con.execute("select ?", (austria.encode("latin1"),)).fetchone()
181 self.con.text_factory = sqlite.OptimizedUnicode
184 a_row = self.con.execute("select ?", (austria,)).fetchone()
185 d_row = self.con.execute("select ?", (germany,)).fetchone()
190 self.con.close()
194 self.con = sqlite.connect(":memory:")
195 self.con.execute("create table test (value text)")
196 self.con.execute("insert into test (value) values (?)", ("a\x00b",))
200 row = self.con.execute("select value from test").fetchone()
206 self.con.text_factory = lambda x: x
207 row = self.con.execute("select value from test").fetchone()
213 self.con.text_factory = sqlite.OptimizedUnicode
214 row = self.con.execute("select value from test").fetchone()
220 self.con.text_factory = sqlite.OptimizedUnicode
221 self.con.execute("delete from test")
222 self.con.execute("insert into test (value) values (?)", (u'?\0?',))
223 row = self.con.execute("select value from test").fetchone()
228 self.con.close()