Home | History | Annotate | Download | only in test

Lines Matching refs:cur

406         cur = self.cx.cursor()
407 row = cur.fetchone()
463 cur = self.cx.cursor(f)
473 cur = sqlite.Cursor(foo)
482 self.cur = self.con.cursor()
483 self.cur.execute("create table test(id integer primary key, name text, bin binary, ratio number, ts timestamp)")
486 self.cur.close()
492 cur = con.cursor()
562 def run(cur, errors):
564 cur.execute("insert into test(name) values ('a')")
573 t = threading.Thread(target=run, kwargs={"cur": self.cur, "errors": errors})
580 def run(cur, errors):
582 cur.close()
591 t = threading.Thread(target=run, kwargs={"cur": self.cur, "errors": errors})
598 def run(cur, errors):
600 cur.execute("select name from test")
609 self.cur.execute("insert into test(name) values ('a')")
610 t = threading.Thread(target=run, kwargs={"cur": self.cur, "errors": errors})
617 def run(cur, errors):
619 row = cur.fetchone()
628 self.cur.execute("insert into test(name) values ('a')")
629 self.cur.execute("select name from test")
630 t = threading.Thread(target=run, kwargs={"cur": self.cur, "errors": errors})
661 cur = con.cursor()
662 cur.executescript("""
668 cur.execute("select i from a")
669 res = cur.fetchone()[0]
674 cur = con.cursor()
675 cur.executescript(u"""
682 cur.execute("select i from a")
683 res = cur.fetchone()[0]
688 cur = con.cursor()
691 cur.executescript("create table test(x); asdf; create table test2(x)")
698 cur = con.cursor()
701 cur.executescript("create table test(sadfsadfdsa); select foo from hurz;")
736 cur = con.cursor()
767 cur = con.cursor()
770 cur.execute("select 4")
852 cur = con.cursor()
853 cur.close()
864 method = getattr(cur, method_name)