Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 1FCE09FBE13 for ; Thu, 26 Jul 2007 04:43:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 45048-10 for ; Thu, 26 Jul 2007 04:42:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by postgresql.org (Postfix) with ESMTP id 789E99FBE10 for ; Thu, 26 Jul 2007 04:42:57 -0300 (ADT) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1IDxzr3Hl7-0005NJ; Thu, 26 Jul 2007 09:42:56 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1IDxzq-0005z3-00 for pgsql-sql@postgresql.org; Thu, 26 Jul 2007 09:42:54 +0200 Date: Thu, 26 Jul 2007 09:42:53 +0200 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: How to cast, if type has spaces in the name Message-ID: <20070726074253.GC18616@a-kretschmer.de> References: <46A84E35.7000609@obviously.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46A84E35.7000609@obviously.com> 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: V01U2FsdGVkX1/cp+6eUvMRW0rhny3oR6dcGodDmUUtOnlIHlN ldlvWXKCUkVd+9yTIHtnmV2DfXvhp9tdtSVFhlSwdt1DFXSh+k BQSJuImAj8S/FYFaMYpzEOxK43kDPXo X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/154 X-Sequence-Number: 28889 am Thu, dem 26.07.2007, um 0:33:09 -0700 mailte Bryce Nesbitt folgendes: > How do I specify a cast, if the type name has spaces? foo::integer is > easy, > but foo::'timestamp without time zone' is more murky. Hehe, it works without the ', see: test=# select '2007-01-01'::timestamp without time zone; timestamp --------------------- 2007-01-01 00:00:00 (1 row) test=*# select '2007-01-01'::timestamp with time zone; timestamptz ------------------------ 2007-01-01 00:00:00+01 (1 row) ndreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net