From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | Fernando San Martín W(dot) <snmartin(at)galilea(dot)cl> |
Cc: | pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx |
Subject: | Re: [Pgsql-ayuda] postgresql python |
Date: | 2003-11-25 17:50:19 |
Message-ID: | 20031125175019.GB2834@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On Mon, Nov 24, 2003 at 11:15:40AM +0100, Fernando San Martín W. wrote:
> alguien sabe como capturar en python un mensaje generado con un raise
> notice?
Que biblioteca de conexión estás usando? Le eché un vistazo a un par
(psycopg y PyGreSQL) y me parece que una de ellas tira los notices a la
salida estandar. Lo que puedes hacer es reemplazar esa función en la
biblioteca; pero creo que también podrías definir un "notice processor".
El código es bastante legible.
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
You liked Linux a lot when he was just the gawky kid from down the block
mowing your lawn or shoveling the snow. But now that he wants to date
your daughter, you're not so sure he measures up. (Larry Greenemeier)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2003-11-25 18:18:44 | Re: [Pgsql-ayuda] Duda sobre select tardio en tablas pequeñas |
Previous Message | Enrique Herrera Noya | 2003-11-25 16:55:56 | [Pgsql-ayuda] Poleras postgresql (solo Chile) |