X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5D273D70F5 for ; Tue, 11 Oct 2005 11:40:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 49989-09 for ; Tue, 11 Oct 2005 14:40:31 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 01D33D70C2 for ; Tue, 11 Oct 2005 11:40:34 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 6AEEE421C5E; Tue, 11 Oct 2005 15:40:27 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id C2E7B15ED9; Tue, 11 Oct 2005 15:37:52 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20342-10; Tue, 11 Oct 2005 15:37:49 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 646F215ED5; Tue, 11 Oct 2005 15:37:49 +0100 (BST) Message-ID: <434BCE3D.2070006@archonet.com> Date: Tue, 11 Oct 2005 15:37:49 +0100 From: Richard Huxton User-Agent: Thunderbird 1.4.1 (X11/20051006) MIME-Version: 1.0 To: Judith Altamirano Figueroa Cc: pgsql-sql@postgresql.org Subject: Re: ichar References: <1129040522.3426.103.camel@Desarrollo> In-Reply-To: <1129040522.3426.103.camel@Desarrollo> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.059 required=5 tests=[AWL=0.009, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/93 X-Sequence-Number: 22946 Judith Altamirano Figueroa wrote: > I moved from postgres 7.0.2 to 8.0.1, If you only have one compatability problem, I'd be surprised. > in the 7.0.2 version I process the next query, and it succeed: > > select ichar(letra_ascii) || '-' || substr('00000' ||num_factura,length > (num_factura)+1,5) as factura from facturas > > but in 8.0.1 it outputs the next error: > > ERROR: not exist the function ichar(integer) > HINT: any function match with the arguments types. > Add explicit cast of types I'll point you to Tom Lane's thoughts on this back in 2000: http://archives.postgresql.org/pgsql-hackers/2000-09/msg00418.php HTH -- Richard Huxton Archonet Ltd