Changeset 804
- Timestamp:
- 03/07/07 21:58:15 (2 years ago)
- Files:
-
- pg8000/trunk/pg8000.py (modified) (2 diffs)
- pg8000/trunk/pg8000-test.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pg8000/trunk/pg8000.py
r803 r804 194 194 # parameter is provided and the database does not request password 195 195 # authentication, then the password will not be used. 196 class Connection( object):196 class Connection(Cursor): 197 197 198 198 ## … … 213 213 except socket.error, e: 214 214 raise InterfaceError("communication error", e) 215 Cursor.__init__(self, self, name='') 215 216 216 217 def begin(self): pg8000/trunk/pg8000-test.py
r802 r804 23 23 i = i + 1 24 24 print i, repr(row1) 25 cur2.execute("SELECT * FROM t1 WHERE f1 > $1", row1['f1'])26 for row2 in cur2:25 db.execute("SELECT * FROM t1 WHERE f1 > $1", row1['f1']) 26 for row2 in db: 27 27 print "\t", repr(row2) 28 28 print "end query..."
