Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EBE446324F6 for ; Thu, 8 Jul 2010 19:08:55 -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 97527-01 for ; Thu, 8 Jul 2010 22:08:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 411BE630861 for ; Thu, 8 Jul 2010 19:08:47 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OWzGu-0000I2-F9 for pgsql-sql@postgresql.org; Fri, 09 Jul 2010 00:08:44 +0200 Received: from ppp-188-174-2-198.dynamic.mnet-online.de ([188.174.2.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jul 2010 00:08:44 +0200 Received: from spam_eater by ppp-188-174-2-198.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Jul 2010 00:08:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: Thomas Kellerer Subject: Re: Cant execute the query Date: Fri, 09 Jul 2010 00:08:37 +0200 Lines: 37 Message-ID: References: <29055726.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp-188-174-2-198.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <29055726.post@talk.nabble.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.51 tagged_above=-5 required=5 tests=BAYES_05=-0.5, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/53 X-Sequence-Number: 34366 Srikanth Kata wrote on 02.07.2010 14:24: > > 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 What about the answers you got here? http://www.dbforums.com/postgresql/1658082-cant-execute-query.html http://old.nabble.com/Unable-to-run-this-query-td29073430.html#a29073430