X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 63F953A5D2E for ; Wed, 12 Jan 2005 16:53:01 +0000 (GMT) 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 43369-01 for ; Wed, 12 Jan 2005 16:52:59 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by svr1.postgresql.org (Postfix) with ESMTP id 402153A5D28 for ; Wed, 12 Jan 2005 16:52:58 +0000 (GMT) Received: by rproxy.gmail.com with SMTP id y7so89183rne for ; Wed, 12 Jan 2005 08:52:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=KuDTx6pRBOKqaM0AUc/BcBF/fG03zMlyC04bcIO5akHxBB9/chTxbl2398UY4w071WORikydTjyhSFiRgdG/L7LUQXHD1m/cEN299mz0FgJQ445WCi1VONNV03P0EmSMMN8mnfEm1XTdgeUUSrMhFFUSORNA4ZkdYfQs7jTSbVs= Received: by 10.38.88.7 with SMTP id l7mr206756rnb; Wed, 12 Jan 2005 08:52:57 -0800 (PST) Received: from ?192.168.3.4? ([81.182.248.121]) by smtp.gmail.com with ESMTP id 70sm1165968rnb.2005.01.12.08.52.56; Wed, 12 Jan 2005 08:52:57 -0800 (PST) Message-ID: <41E555DA.1060707@gmail.com> Date: Wed, 12 Jan 2005 17:52:42 +0100 From: =?ISO-8859-2?Q?Sz=FBcs_G=E1bor?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-sql@postgresql.org" Subject: failed to find conversion function from "unknown" to text Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.318 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200501/55 X-Sequence-Number: 19843 Dear Gurus, Version: 8.0.0rc4 The scene below might look funny but it's essential for our project: [local]:tir=# select 'a' as asdf; asdf ------ a (1 row) [local]:tir=# select case 'a' when 'a' then 1 else 2 end as asdf; ERROR: failed to find conversion function from "unknown" to text This worked up to v7.4.6, and couldn't see it in the "Migration" part of the HISTORY file. Question: is there a way to tell the server to convert unknown to something (text or varchar, don't really care), or to write such a "conversion function"? A similar conversion for name to varchar conversion would also be highly desirable for easier migration. Right now I'm writing wrapper functions for all our functions where params might be names. If it's written in the doc, could you please tell me the page? TIA, -- G.