Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E21B89F9C55 for ; Fri, 7 Sep 2007 14:41:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 45770-07 for ; Fri, 7 Sep 2007 14:41:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by postgresql.org (Postfix) with ESMTP id 7E1A19F958A for ; Fri, 7 Sep 2007 14:41:23 -0300 (ADT) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1IThpF1kRP-0006mw; Fri, 07 Sep 2007 19:41:22 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1IThpE-0007cR-00 for pgsql-sql@postgresql.org; Fri, 07 Sep 2007 19:41:00 +0200 Date: Fri, 7 Sep 2007 19:41:00 +0200 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: to_date function Message-ID: <20070907174100.GA29185@a-kretschmer.de> References: <9bb664980709062222n13f66543kf621094604a9944e@mail.gmail.com> <20070907063519.GC10560@a-kretschmer.de> <20904.1189175157@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20904.1189175157@sss.pgh.pa.us> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! User-Agent: Mutt/1.5.9i X-Provags-ID: V01U2FsdGVkX19TI4G1tLWD42obRxiJUYtVpIJsOHsg7Ml8Yvv 7nWm4UG+HFvK/Ie45k4cvgJlV05i1sXndSy2gUn0Hli0gmQ38a wTBY6IfyDSYXjrlTA5uiwGJmNactmm9 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/67 X-Sequence-Number: 29280 am Fri, dem 07.09.2007, um 10:25:57 -0400 mailte Tom Lane folgendes: > "A. Kretschmer" writes: > > am Fri, dem 07.09.2007, um 17:22:30 +1200 mailte anru chen folgendes: > >> seems like "to_date" function only work correctly for current month. > > > No, seems like to_char only work corrently if the length of the month > > correctly... > > You need to use FMMonth not Month if you want it to be lax about the > width of the month field. (I think we decided that's a bug and 8.3 Oh, cool, it works. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net