pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Salvador Mainé <salvamaine@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: date_part bug?
Date: Wed, 28 Mar 2001 12:52:45 +0200
Message-ID: <3AC1C27D.4D64E67E@yahoo.com> (raw)

Hello:

I'm using postgres 7.0.2. When I use date_part('day', date) sometimes I
get wrong values. Ie: 
and date_part('day', '1999-3-28')=27

and date_part('day', '2000-3-26')=25

Is it a bug? Is there any SQL equivalent function?

-- 
Salvador Mainé



view thread (2+ messages)  latest in thread

Message-ID: <3AC1C27D.4D64E67E@yahoo.com>
Permalink:  ../3AC1C27D.4D64E67E@yahoo.com/
Also on:    postgresql.org/message-id/3AC1C27D.4D64E67E@yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: salvamaine@yahoo.com
  Subject: Re: date_part bug?
  In-Reply-To: <3AC1C27D.4D64E67E@yahoo.com>
  References: <3AC1C27D.4D64E67E@yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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