diff options
Diffstat (limited to 'sandbox/iter.py')
-rw-r--r-- | sandbox/iter.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sandbox/iter.py b/sandbox/iter.py index 74c8aba..bf245ba 100644 --- a/sandbox/iter.py +++ b/sandbox/iter.py @@ -7,8 +7,7 @@ curs = conn.cursor(cursor_factory=psycopg2.extras.DictCursor) curs.execute("SELECT '2005-2-12'::date AS foo, 'boo!' as bar") for x in curs.fetchall(): print type(x), x[0], x[1], x['foo'], x['bar'] - + curs.execute("SELECT '2005-2-12'::date AS foo, 'boo!' as bar") for x in curs: print type(x), x[0], x[1], x['foo'], x['bar'] - |