Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YO7OI-0003xP-NZ for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 16:22:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YO7OI-0006RK-69 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Feb 2015 16:22:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YO6pC-0007pf-Gw for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 15:46:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YO6p9-0007zx-4x for pgsql-bugs@postgresql.org; Wed, 18 Feb 2015 15:46:05 +0000 MIME-Version: 1.0 Subject: BUG #12782: Some abnormal observation about the to_date() function in greenplum database To: pgsql-bugs@postgresql.org From: patl659in@rediffmail.com Date: Wed, 18 Feb 2015 15:45:51 +0000 Message-ID: <20150218154551.8730.30214@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12782 Logged by: Rahul Patil Email address: patl659in@rediffmail.com PostgreSQL version: Unsupported/Unknown Operating system: RHEL 6 64 bit Description: Grennplum 4.3 64 bit Incorrect output for to_date function TESTDB=# select to_date('22-09-1990', 'MM-DD-YYYY'); to_date ------------ 1991-10-11 (1 row) Different output for same current_date function but with different format TESTDB=# select to_date(current_date,'yyyy-mm-dd'); to_date ------------ 2015-02-12 (1 row) TESTDB=# select to_date(current_date,'dd-mm-yyyy'); to_date ------------ 0017-08-07 (1 row) Date without quote TESTDB=# select to_date(06-06-3338,'DD-MM-YYYY'); to_date --------------- 0011-11-10 BC (1 row) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs