aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/python/tutorial/func.py
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-08-15 03:33:36 +0000
committerBruce Momjian <bruce@momjian.us>2002-08-15 03:33:36 +0000
commit1991fe74e156837675d520b399f8d2032b44c4c8 (patch)
tree831a2364d04e8847295099eddd5d0d2ceb718d6c /src/interfaces/python/tutorial/func.py
parent4f1ac055f1a7111c2373d3b930a89f1dab57c7fe (diff)
downloadpostgresql-1991fe74e156837675d520b399f8d2032b44c4c8.tar.gz
postgresql-1991fe74e156837675d520b399f8d2032b44c4c8.zip
This fixes some text as well as enforces the use of "drop table cascade"
since we moved from an implicate to explicate implementation. Greg Copeland
Diffstat (limited to 'src/interfaces/python/tutorial/func.py')
-rwxr-xr-xsrc/interfaces/python/tutorial/func.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/python/tutorial/func.py b/src/interfaces/python/tutorial/func.py
index 4ae1876e044..af2b412bdfc 100755
--- a/src/interfaces/python/tutorial/func.py
+++ b/src/interfaces/python/tutorial/func.py
@@ -9,7 +9,7 @@ MODULE FUNC.PY : SQL FUNCTION DEFINITION TUTORIAL
This module is designed for being imported from python prompt
In order to run the samples included here, first create a connection
-using : cnx = advanced.DB(...)
+using : cnx = func.DB(...)
The "..." should be replaced with whatever arguments you need to open an
existing database. Usually all you need is the name of the database and,
@@ -189,13 +189,13 @@ def demo_cleanup(pgcnx):
print "DROP FUNCTION add_em(int4, int4)"
print "DROP FUNCTION one()"
print
- print "DROP TABLE EMP"
+ print "DROP TABLE EMP CASCADE"
pgcnx.query("DROP FUNCTION clean_EMP()")
pgcnx.query("DROP FUNCTION high_pay()")
pgcnx.query("DROP FUNCTION new_emp()")
pgcnx.query("DROP FUNCTION add_em(int4, int4)")
pgcnx.query("DROP FUNCTION one()")
- pgcnx.query("DROP TABLE EMP")
+ pgcnx.query("DROP TABLE EMP CASCADE")
# main demo function
def demo(pgcnx):