summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-02-14 11:58:23 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2010-02-14 13:23:05 +0000
commita1fa06e6d8a8ef457b97886afe9e95e92152afc4 (patch)
tree99859689ec5372feee426dd6315a8134b45d6835
parentf134bceb009dc5eaa18fc52cd36951ca1e696992 (diff)
downloadpsycopg2-a1fa06e6d8a8ef457b97886afe9e95e92152afc4.tar.gz
Drop table moved off the example.
-rw-r--r--doc/connection.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/connection.rst b/doc/connection.rst
index f285a6a..c7da5f1 100644
--- a/doc/connection.rst
+++ b/doc/connection.rst
@@ -8,6 +8,8 @@ The ``connection`` class
from pprint import pprint
import psycopg2.extensions
+ drop_test_table('foo')
+
.. class:: connection
Handles the connection to a PostgreSQL database instance. It encapsulates
@@ -169,7 +171,6 @@ The ``connection`` class
>>> pprint(conn.notices)
['NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "foo_pkey" for table "foo"\n',
'NOTICE: CREATE TABLE will create implicit sequence "foo_id_seq" for serial column "foo.id"\n']
- >>> cur.execute("DROP TABLE foo;")
To avoid a leak in case excessive notices are generated, only the last
50 messages are kept.