Re: crash: SET DateStyle TO DEFAULT - Mailing list pgsql-hackers

From Tom Lane
Subject Re: crash: SET DateStyle TO DEFAULT
Date
Msg-id 26717.969635460@sss.pgh.pa.us
Whole thread Raw
In response to crash: SET DateStyle TO DEFAULT  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-hackers
Karel Zak <zakkr@zf.jcu.cz> writes:
>  In the current CVS:
> test=# SET DateStyle TO DEFAULT;
> pqReadData() -- backend closed the channel unexpectedly.

Confirmed here.  It looks like SetPGVariable() has failed to account
for the possibility that its "value" argument will be NULL.

This bug has evidently been in there for a while, which indicates
that we don't have any regression tests that exercise SET var TO
DEFAULT.  Probably time to add one --- I see from the CVS log that
I was burnt on this same point back in February, and now Peter has
re-introduced the problem.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Patch for Bug in RI
Next
From: Michael Meskes
Date:
Subject: Re: PQsetdbLogin