]> granicus.if.org Git - postgresql/commit
here is a patch fixing today's bug report:
authorBruce Momjian <bruce@momjian.us>
Fri, 15 Dec 2000 19:15:09 +0000 (19:15 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 15 Dec 2000 19:15:09 +0000 (19:15 +0000)
commitff783fbae0b76cf409b4391fe4be5524353304e0
tree367154a3a6a55e575e107f017248de39353708b3
parent0cf37659c44a3d2cc88239132f4dc8b646805d9a
here is a patch fixing today's bug report:

> Date: Thu, 14 Dec 2000 12:44:47 +0100 (CET)
> From: Kovacs Zoltan Sandor <tip@pc10.radnoti-szeged.sulinet.hu>
> To: pgsql-bugs@postgresql.org
> Subject: [BUGS] to_char() causes backend to close connection
>
> Hi, this query gives different strange results:
>
> select to_char(now()::abstime,'YYMMDDHH24MI');
>
> I get e.g. a "backend closed the channel unexpectedly..." error with
> successful or failed resetting attempt (indeterministic)

 Again thanks Kovacs, you found really designing bug, that appear
if anyone write bad format template to "number" version of to_char()
(as you with 'DD').

                                        Karel
src/backend/utils/adt/formatting.c