diff options
Diffstat (limited to 'examples/fetch.py')
-rw-r--r-- | examples/fetch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/fetch.py b/examples/fetch.py index 67818d2..dab0a41 100644 --- a/examples/fetch.py +++ b/examples/fetch.py @@ -54,8 +54,9 @@ conn.commit() # (remember to always commit or rollback before a DECLARE) # # we don't need to DECLARE ourselves, psycopg now support named -# cursor (but we leave the code here, comments, as an example of +# cursors (but we leave the code here, comments, as an example of # what psycopg is doing under the hood) +# #curs.execute("DECLARE crs CURSOR FOR SELECT * FROM test_fetch") #curs.execute("FETCH 10 FROM crs") #print "First 10 rows:", flatten(curs.fetchall()) |