Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1991fe7

Browse files
committed
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
1 parent4f1ac05 commit1991fe7

File tree

1 file changed

+3
-3
lines changed
  • src/interfaces/python/tutorial

1 file changed

+3
-3
lines changed

‎src/interfaces/python/tutorial/func.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
This module is designed for being imported from python prompt
1010
1111
In order to run the samples included here, first create a connection
12-
using : cnx =advanced.DB(...)
12+
using : cnx =func.DB(...)
1313
1414
The "..." should be replaced with whatever arguments you need to open an
1515
existing database. Usually all you need is the name of the database and,
@@ -189,13 +189,13 @@ def demo_cleanup(pgcnx):
189189
print"DROP FUNCTION add_em(int4, int4)"
190190
print"DROP FUNCTION one()"
191191
print
192-
print"DROP TABLE EMP"
192+
print"DROP TABLE EMP CASCADE"
193193
pgcnx.query("DROP FUNCTION clean_EMP()")
194194
pgcnx.query("DROP FUNCTION high_pay()")
195195
pgcnx.query("DROP FUNCTION new_emp()")
196196
pgcnx.query("DROP FUNCTION add_em(int4, int4)")
197197
pgcnx.query("DROP FUNCTION one()")
198-
pgcnx.query("DROP TABLE EMP")
198+
pgcnx.query("DROP TABLE EMP CASCADE")
199199

200200
# main demo function
201201
defdemo(pgcnx):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp