|
9 | 9 | This module is designed for being imported from python prompt |
10 | 10 |
|
11 | 11 | In order to run the samples included here, first create a connection |
12 | | -using : cnx =advanced.DB(...) |
| 12 | +using : cnx =func.DB(...) |
13 | 13 |
|
14 | 14 | The "..." should be replaced with whatever arguments you need to open an |
15 | 15 | existing database. Usually all you need is the name of the database and, |
@@ -189,13 +189,13 @@ def demo_cleanup(pgcnx): |
189 | 189 | print"DROP FUNCTION add_em(int4, int4)" |
190 | 190 | print"DROP FUNCTION one()" |
191 | 191 | print |
192 | | -print"DROP TABLE EMP" |
| 192 | +print"DROP TABLE EMP CASCADE" |
193 | 193 | pgcnx.query("DROP FUNCTION clean_EMP()") |
194 | 194 | pgcnx.query("DROP FUNCTION high_pay()") |
195 | 195 | pgcnx.query("DROP FUNCTION new_emp()") |
196 | 196 | pgcnx.query("DROP FUNCTION add_em(int4, int4)") |
197 | 197 | pgcnx.query("DROP FUNCTION one()") |
198 | | -pgcnx.query("DROP TABLE EMP") |
| 198 | +pgcnx.query("DROP TABLE EMP CASCADE") |
199 | 199 |
|
200 | 200 | # main demo function |
201 | 201 | defdemo(pgcnx): |
|