X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7C339D1B1CE for ; Fri, 30 Jul 2004 13:10:46 -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 03241-02 for ; Fri, 30 Jul 2004 16:10:42 +0000 (GMT) Received: from web90002.mail.scd.yahoo.com (web90002.mail.scd.yahoo.com [66.218.94.60]) by svr1.postgresql.org (Postfix) with SMTP id 0730AD1B1B8 for ; Fri, 30 Jul 2004 13:10:40 -0300 (ADT) Message-ID: <20040730161035.70049.qmail@web90002.mail.scd.yahoo.com> Received: from [218.208.236.112] by web90002.mail.scd.yahoo.com via HTTP; Fri, 30 Jul 2004 09:10:35 PDT Date: Fri, 30 Jul 2004 09:10:35 -0700 (PDT) From: Nick Selva Subject: Re: Calling PGSQL Stored function thru JDBC To: Kris Jurka Cc: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.5 tagged_above=0.0 required=5.0 tests=FORGED_YAHOO_RCVD X-Spam-Level: X-Archive-Number: 200407/337 X-Sequence-Number: 10721 Actually I changed the cs.setString(2, "P") from 1st to 2nd parameter becoz i was thinking that could hv been the problem. but looks like i've introduced one more bug into my program. I've changed it back and added the equal sign to "{ ? = call get_state(?) }". Now the program works FINE. It's really great to have JDBC leverage stored function in pgsql!!!! Thanks alot Kris. Since I'm new here, I would love to get to know what are the type of applications that have been developed so far that are using postgresql. This is because I want to convince my friends and customers to adopt pgsql for their businesses rather than wasting their money on databases like mssql, oracle, informix. PGSQL is greater my all means. So Kris may I know what sort of application that you are using pgsql, jdbc for? If its too personal a question, i apologize and you can reserve your answer. I hope others too will share their information on the type of software application that pgsql is being used. Hope I'm not troubling anyone. Just a wana quench my immense thirst for pgsql knowledge..:) Will wait for reply. Regards, Selvam --- Kris Jurka wrote: > > > On Thu, 29 Jul 2004, Nick Selva wrote: > > > [my CallableStatement doesn't work.] > > You have misnumbered your parameters. You want to > do cs.setString(2, "P") > because that matches with the second "?", and > cs.registerOutParameter(1, > Types.VARCHAR) because that is the out parameter. > You also may need to > say "{ ? = call get_state(?) }", note the equal > sign. > > Kris Jurka > > > ---------------------------(end of > broadcast)--------------------------- > TIP 7: don't forget to increase your free space map > settings > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail