pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedupdate NOT NULL via LIBPQ
2+ messages / 1 participants
[nested] [flat]
* update NOT NULL via LIBPQ
@ 1998-03-25 08:27 Sergey S. Kosyakov <ks@itp.ac.ru>
0 siblings, 0 replies; 2+ messages in thread
From: Sergey S. Kosyakov @ 1998-03-25 08:27 UTC (permalink / raw)
To: pgsql-interfaces
Hi!
Why PQexec(conn,query) returns FATAL_ERROR when query is update on
NOT NULL column with NULL value? The same error is produced when
backend core dumps, etc - that is, in the cases of TRUE fatal error.
I think that error status should not be equal for illegal query and
backend crashes.
Regards,
Sergey.
---
----------------------------------
Sergey Kosyakov
Laboratory of Distributed Computing
Department of High-Performance Computing and Applied Network Research
Landau Institute for Theoretical Physics
E-Mail: ks@itp.ac.ru
Date: 25-Mar-98
Time: 11:16:12
----------------------------------
---
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [QUESTIONS] update NOT NULL via LIBPQ
@ 1998-03-25 09:04 Sergey S. Kosyakov <ks@itp.ac.ru>
0 siblings, 0 replies; 2+ messages in thread
From: Sergey S. Kosyakov @ 1998-03-25 09:04 UTC (permalink / raw)
To: Vadim B. Mikheev <vadim@sable.krasnoyarsk.su>; +Cc: pgsql-questions@postgreSQL.org; pgsql-interfaces
Yes. But I talk about LIBPQ. There should be some additional error code
like PGRES_QUERY_FAIL to distinguish from backend crash.
Sergey.
On 25-Mar-98 Vadim B. Mikheev wrote:
>Sergey S. Kosyakov wrote:
>>
>> Hi!
>>
>> Why PQexec(conn,query) returns FATAL_ERROR when query is update on
>> NOT NULL column with NULL value? The same error is produced when
>> backend core dumps, etc - that is, in the cases of TRUE fatal error.
>> I think that error status should not be equal for illegal query and
>> backend crashes.
>
>vac=> create table test (x int not null);
>CREATE
>vac=> insert into test values (1);
>INSERT 18473 1
>vac=> update test set x = null;
>ERROR: ExecReplace: Fail to add null value in not null attribute x
>
>Vadim
---
----------------------------------
Sergey Kosyakov
Laboratory of Distributed Computing
Department of High-Performance Computing and Applied Network Research
Landau Institute for Theoretical Physics
E-Mail: ks@itp.ac.ru
Date: 25-Mar-98
Time: 12:04:47
----------------------------------
---
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1998-03-25 09:04 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-03-25 08:27 update NOT NULL via LIBPQ Sergey S. Kosyakov <ks@itp.ac.ru>
1998-03-25 09:04 Re: [QUESTIONS] update NOT NULL via LIBPQ Sergey S. Kosyakov <ks@itp.ac.ru>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox