PyGreSQL pg.error Exception

Поиск
Список
Период
Сортировка
От Denis Gasparin
Тема PyGreSQL pg.error Exception
Дата
Msg-id 5.1.0.14.0.20010703102711.00ad9d10@10.1.1.2
обсуждение исходный текст
Ответы Re: PyGreSQL pg.error Exception  (Jason Earl <jdearl@yahoo.com>)
Список pgsql-interfaces
Hi to all!        In the documentation of the PyGreSQL module it is said that a 
pg.error exception is thrown when pg.connect or other pg functions cause an 
error. How can i get the value of the error? I have tried print pg.error in 
the except clause but i get only a _pg.error value...

For example:
try:        db = pg.connect( connection parameters);
except pg.error:        print pg.error;

This prints "_pg.error"...

Thanks in advance for your replies,

Denis




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Christian Ullrich
Дата:
Сообщение: Re: libpq++ on Windows
Следующее
От: Sudheer Palapparambil
Дата:
Сообщение: PROCEDURE EXECUTION