Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXtRL-0003Qr-LC for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 14:25:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXtRL-00038J-3W for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 14:25:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXq1L-0004Vs-Ip for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 10:46:19 +0000 Received: from mail.lohn24.de ([217.89.95.50]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXq1I-00031u-R7 for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 10:46:19 +0000 Received: from intranet.lohn24.local (ns2.servernet.local [192.168.100.3]) by mail.lohn24.de (Postfix) with ESMTP id CBC07B00FDD; Wed, 9 Apr 2014 12:46:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lohn24.de; s=mail; t=1397040371; bh=7cMfavCjtqtQsIMg1bHDa5PlRkGiVl4Q0Y6pbd8Hfp4=; h=Date:To:From:Cc:Subject:In-Reply-To:From; b=s/nY5hal2k2q2DvKQtXqYniJSnzydKqfziPuD6rFaSFw5gxPNOsSjLI/xlX8NhAx8 fhmckpylGfkusgbXisnXAawft66pNC0aE9psqI3Acdjz6+SKnoBbVDqYOPa1Wzh44/ J4Falkwql1ItC3wBVTLK5L6Zb8ga/Zj+vr2uHx0c= Date: Wed, 9 Apr 2014 12:46:11 +0200 To: Bruce Momjian From: "Georg Klimm Lohn24.de ila GmbH" Cc: "pgsql-bugs postgresql.org" Subject: Re: BUG #9897: Wrong Julian Date through ODBC Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net) X-Mailer: FeLaMiMail In-Reply-To: <20140409100222.GM8685@momjian.us> Organization: Lohn24.de ila GmbH MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Pg-Spam-Score: -2.3 (--) 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 I just found the problem: The returned data was converted from 8859-1 to cp850 without caring about t= he data types :( ----------------urspr=C3=BCngliche Nachricht----------------- Von: Bruce Momjian [bruce@momjian.us ] An: klimm@lohn24.de Kopie: pgsql-bugs@postgresql.org Datum: Wed, 9 Apr 2014 06:02:22 -0400 ------------------------------------------------- > On Mon, Apr 7, 2014 at 06:09:53PM +0000, klimm@lohn24.de wrote: >> The following bug has been logged on the website: >> >> Bug reference: 9897 >> Logged by: Georg Klimm >> Email address: klimm@lohn24.de >> PostgreSQL version: 8.4.20 >> Operating system: Server @ LINUX, Client @ WIndows >> Description: >> >> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2 >> >> returns 2456597 2456743 > > I don't understand these return values. > >> first is 2013-10-31 and second the correct 2014-03-26 >> >> same with 2014-03-27 or all other dates is working > > I cannot reproduce that failure here: > > test=3D> SELECT '2014-03-26'::DATE AS date1, '2014-03-26'::DATE AS date2; > date1 | date2 > ------------+------------ > 2014-03-26 | 2014-03-26 > (1 row) > > -- > Bruce Momjian http://momjian.us > EnterpriseDB http://enterprisedb.com > > + Everyone has their own god. + > > > -- > Diese Nachricht wurde auf Viren und andere gefaehrliche Inhalte untersuch= t. > > --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs