Re: Another python patch -- minor

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Greg Copeland <greg(at)CopelandConsulting(dot)Net>
Cc: PostgresSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Another python patch -- minor
Date: 2002-08-15 03:33:46
Message-ID: 200208150333.g7F3XkJ21812@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Patch applied. Thanks.

---------------------------------------------------------------------------

Greg Copeland wrote:

Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> This fixes some text as well as enforces the use of "drop table cascade"
> since we moved from an implicate to explicate implementation.
>
> Please find attached the func.py patch.
>
> Sorry these are not all one single patch. I really hadn't planned on
> doing all this...especially not tonight. ;)
>
> Greg Copeland
>
>
>

[ text/x-patch is unsupported, treating like TEXT/PLAIN ]

> Index: func.py
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/src/interfaces/python/tutorial/func.py,v
> retrieving revision 1.5
> diff -u -r1.5 func.py
> --- func.py 2000/10/02 03:46:24 1.5
> +++ func.py 2002/08/08 03:47:04
> @@ -9,7 +9,7 @@
> 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 @@
> 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):
-- End of PGP section, PGP failed!

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-08-15 03:34:25 Re: python patch
Previous Message Bruce Momjian 2002-08-15 03:32:42 Re: python patch