diff options
Diffstat (limited to 'examples/lastrowid.py')
| -rw-r--r-- | examples/lastrowid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/lastrowid.py b/examples/lastrowid.py index 4b01c85..205ef6c 100644 --- a/examples/lastrowid.py +++ b/examples/lastrowid.py @@ -18,13 +18,13 @@ DSN = 'dbname=test' ## don't modify anything below tis line (except for experimenting) -import sys, psycopg +import sys, psycopg2 if len(sys.argv) > 1: DSN = sys.argv[1] print "Opening connection using dns:", DSN -conn = psycopg.connect(DSN) +conn = psycopg2.connect(DSN) curs = conn.cursor() try: |
