Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 24406632BF3 for ; Fri, 2 Jul 2010 09:24:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 17154-04 for ; Fri, 2 Jul 2010 12:24:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id ECDD16329BA for ; Fri, 2 Jul 2010 09:24:32 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OUfIE-0004mz-Cf for pgsql-sql@postgresql.org; Fri, 02 Jul 2010 05:24:30 -0700 Message-ID: <29055726.post@talk.nabble.com> Date: Fri, 2 Jul 2010 05:24:30 -0700 (PDT) From: Srikanth Kata To: pgsql-sql@postgresql.org Subject: Cant execute the query MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: srikanth@inventum.net X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-5 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/50 X-Sequence-Number: 34363 When i am executing this query, i am facing the select s.*,a.actid,a.phone,d.domid,d.domname,d.domno,a.actno,a.actname,p.descr as svcdescr from vwsubsmin s inner join packages p on s.svcno=p.pkgno inner join account a on a.actno=s.actno inner join ssgdom d on a.domno=d.domno inner join (select subsno from getexpiringsubs($1,cast($2 as integer),cast($3 as double precision),$4) as (subsno int,expirydt timestamp without time zone,balcpt double precision)) as e on s.subsno=e.subsno where s.status <=15 and d.domno=$5 order by d.domname,s.expirydt,a.actname Error is : ERROR: there is no parameter $1 LINE 5: inner join (select subsno from getexpiringsubs($1,cast($2 as... ^ ********** Error ********** ERROR: there is no parameter $1 SQL state: 42P02 Character: 295 Please suggest on this -- View this message in context: http://old.nabble.com/Cant-execute-the-query-tp29055726p29055726.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.