pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #12428: Incorrect Code
2+ messages / 2 participants
[nested] [flat]

* BUG #12428: Incorrect Code
@ 2015-01-05 12:47  honey@internot.info
  0 siblings, 1 reply; 2+ messages in thread

From: honey@internot.info @ 2015-01-05 12:47 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      12428
Logged by:          Joshua Rogers
Email address:      honey@internot.info
PostgreSQL version: 9.4.0
Operating system:   Ubuntu 14.04
Description:        

Hi,

In /src/timezone/zic.c:

2091        if (stringrule(result, stdrp, dstrp->r_stdoff, zp->z_gmtoff) !=
0)

Should it not be

2091        if (stringrule(result, stdrp, >>stdp->r_stdoff<<, zp->z_gmtoff)
!= 0)

(<< >> added to denote change)

Looks like a copy 'n paste error.


Thanks,


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #12428: Incorrect Code
@ 2015-01-05 17:45  Tom Lane <tgl@sss.pgh.pa.us>
  parent: honey@internot.info
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2015-01-05 17:45 UTC (permalink / raw)
  To: honey@internot.info; +Cc: pgsql-bugs

honey@internot.info writes:
> In /src/timezone/zic.c:
> 2091        if (stringrule(result, stdrp, dstrp->r_stdoff, zp->z_gmtoff) != 0)
> Should it not be
> 2091        if (stringrule(result, stdrp, >>stdp->r_stdoff<<, zp->z_gmtoff) != 0)

I wouldn't assume that ... it's still that way in tzcode2014j,
so if this is a bug you need to report it to upstream not us.  See
http://www.iana.org/time-zones

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-01-05 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-01-05 12:47 BUG #12428: Incorrect Code honey@internot.info
2015-01-05 17:45 ` Tom Lane <tgl@sss.pgh.pa.us>

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