Changeset 816 for pg8000/trunk/pg8000-test.py
- Timestamp:
- 03/08/07 23:12:42 (2 years ago)
- Files:
-
- pg8000/trunk/pg8000-test.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pg8000/trunk/pg8000-test.py
r815 r816 12 12 13 13 db.execute("DROP TABLE t1") 14 db.execute("CREATE TABLE t1 (f1 int primary key, f2 int not null, f3 varchar(50) n ot null)")14 db.execute("CREATE TABLE t1 (f1 int primary key, f2 int not null, f3 varchar(50) null)") 15 15 16 16 s1 = pg8000.PreparedStatement(db, "INSERT INTO t1 (f1, f2, f3) VALUES ($1, $2, $3)", int, int, str) … … 18 18 s1.execute(2, 10, "he\u0173llo") 19 19 s1.execute(3, 100, "hello") 20 s1.execute(4, 1000, "hello")20 s1.execute(4, 1000, None) 21 21 s1.execute(5, 10000, "hello") 22 22 s1.execute(6, 100000, "hello")
