Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 63DE09FBCD0 for ; Fri, 16 Feb 2007 10:35:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 53999-01 for ; Fri, 16 Feb 2007 10:34:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 98EA89FBD3B for ; Fri, 16 Feb 2007 10:35:01 -0400 (AST) Received: from perhan.alvh.no-ip.org (216-155-79-222.bk1-dsl.surnet.cl [216.155.79.222]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l1GEYouG028603; Fri, 16 Feb 2007 06:34:50 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BB4557DCA; Fri, 16 Feb 2007 11:34:47 -0300 (CLST) Date: Fri, 16 Feb 2007 11:34:47 -0300 From: Alvaro Herrera To: Ezequias Rodrigues da Rocha Cc: pgsql-sql@postgresql.org Subject: Re: There is a different cast than ::MyOtherType() ? Message-ID: <20070216143447.GB13241@alvh.no-ip.org> Mail-Followup-To: Ezequias Rodrigues da Rocha , pgsql-sql@postgresql.org References: <55c095e90702160430r202573dcy2a7733420824ea96@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55c095e90702160430r202573dcy2a7733420824ea96@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 16 Feb 2007 06:34:51 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.219 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200702/177 X-Sequence-Number: 27511 Ezequias Rodrigues da Rocha escribió: > Hi list, > > My Delphi app does not suport this kind of cast: > > Select id, desc::Varchar(50) from myTable Try select id, cast(desc as varchar(50)) from yourTable -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support