Re: Is there a logical reason for 25P02?

Поиск
Список
Период
Сортировка
Искать
От
Craig Ringer
Тема
Re: Is there a logical reason for 25P02?
Дата
Msg-id
4CAB085C.5030106@postnewspapers.com.au
Ответ на
Список
Дерево обсуждения
Is there a logical reason for 25P02? Konstantin Izmailov <pgfizm@gmail.com>
Re: Is there a logical reason for 25P02? Craig Ringer <craig@postnewspapers.com.au>
Re: Is there a logical reason for 25P02? Konstantin Izmailov <pgfizm@gmail.com>
Re: Is there a logical reason for 25P02? Cédric Villemain <cedric.villemain.debian@gmail.com>
On 10/05/2010 12:39 PM, Konstantin Izmailov wrote:
> Howdy,
> I've noticed that there is a difference in result of execution of the
> following statement:
>    INSERT INTO testtable(col1) VALUES(NULL);
> depending on whether the command is prepared or not.
>
> If I call PQprepare/PQexecPrepared for the statement, the error
> "transaction aborted" is returned with SQL State = "25P02".

Specifically, I suspect the message should be:

ERROR:  current transaction is aborted, commands ignored until end of 
transaction block

If that's what you're getting, the problem was with an earlier command 
that returned an error you didn't notice, not with the command you just 
ran. I'm unsure if this could cause PQexecPrepared to return sqlstate 
25P02 if PQprepare fails, but would want to investigate the possibility.

--
Craig Ringer
В списке pgsql-general по дате отправления
От: Thom Brown
Дата:
От: Tim Uckun
Дата:
FAQ