X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0E48F9DC9DA for ; Mon, 9 Jan 2006 03:17:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99354-03 for ; Mon, 9 Jan 2006 03:17:21 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 77B849DC834 for ; Mon, 9 Jan 2006 03:17:18 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k097HJLW026728; Mon, 9 Jan 2006 02:17:19 -0500 (EST) To: "Minal A. Aryamane" cc: pgsql-odbc@postgresql.org Subject: Re: Difference In-reply-to: <002201c614e4$8e220110$1502010a@aarnbee.com> References: <002201c614e4$8e220110$1502010a@aarnbee.com> Comments: In-reply-to "Minal A. Aryamane" message dated "Mon, 09 Jan 2006 11:48:49 +0530" Date: Mon, 09 Jan 2006 02:17:19 -0500 Message-ID: <26727.1136791039@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.076 required=5 tests=[AWL=0.076] X-Spam-Score: 0.076 X-Spam-Level: X-Archive-Number: 200601/73 X-Sequence-Number: 6888 "Minal A. Aryamane" writes: > Can anyone tell me why the same function tried on POSTGRESQL 7.4 works = > but does nor work on POSTGRESQL 8.0. Is there any difference in the way = > POSTGRES handles functions in version 8.0 There are some ... but the code you show would not have worked in *any* release of PG. It's certainly missing a BEGIN, and "SET" is not the syntax for assigning to a local plpgsql variable, and quite a few semicolons are obviously missing, and you didn't bother to return any result value. Could we have an unedited transcription of both the function source code and the error message, please? regards, tom lane