Re: Problem with error handling
От | Daniele Varrazzo |
---|---|
Тема | Re: Problem with error handling |
Дата | |
Msg-id | BANLkTik29KFA-ZGARTDJGeYbBCA_Mj5=Dw@mail.gmail.com обсуждение исходный текст |
Ответ на | Problem with error handling ("Eric Snow" <esnow@verio.net>) |
Ответы |
Re: Problem with error handling
|
Список | psycopg |
On Sat, Apr 23, 2011 at 2:56 AM, Eric Snow <esnow@verio.net> wrote: > I am guessing that the solution is one of the following: > > * PQresultErrorField should not have returned NULL This is from the libpq, I guess we can do little about it, if not keeping it in consideration. > * "exc" should have been calculated another way (like an else after the > "if (code != NULL)") Definitely there should have been an else here: We check for the state not null but then don't do anything as an alternative. I don't think passing a NULL to psyco_set_error was ever intentional. Fixing in my repos. > Regardless of the solution, thanks for your time. Thank you for yours! -- Daniele
В списке psycopg по дате отправления: