Skip site navigation (1) Skip section navigation (2)

BUG #6424: Possible error in time to seconds conversion

From: o(dot)bousche(at)krohne(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6424: Possible error in time to seconds conversion
Date: 2012-02-01 14:15:02
Message-ID: E1Rsaxi-0008Aq-V3@wrigleys.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      6424
Logged by:          Olaf
Email address:      o(dot)bousche(at)krohne(dot)com
PostgreSQL version: 9.1.2
Operating system:   Windows 7 - 64bits
Description:        

Should the query

select
  extract(epoch
    from cast('2012-01-01 14:30:1' as
             timestamp) -
         cast('1970-01-01 0:0:0' as
              timestamp))) - 
  extract(epoch
    from (cast('2012-01-01 14:30:1' as
              timestamp)))

return 0 instead of 3600?


Responses

pgsql-bugs by date

Next:From: postgresDate: 2012-02-01 14:28:30
Subject: BUG #6425: Bus error in slot_deform_tuple
Previous:From: Tom LaneDate: 2012-02-01 04:47:11
Subject: Re: Fw: Re: [SQL] pg_dump not correctly saving schema with partitioned tables?

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group