X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id AEA0811F6D56 for ; Fri, 14 Apr 2006 11:37:38 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 1.508 X-Spam-Level: * X-Spam-Status: No, score=1.508 required=5 tests=[BAYES_00=-2.599, FROM_HAS_ULINE_NUMS=0.291, SPF_HELO_SOFTFAIL=2.432, SPF_SOFTFAIL=1.384] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id MkiQwVyhgCnB for ; Fri, 14 Apr 2006 11:37:23 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web52512.mail.yahoo.com (web52512.mail.yahoo.com [206.190.48.195]) by postgresql.org (Postfix) with SMTP id 7F2EB11F7209 for ; Fri, 14 Apr 2006 11:37:20 -0300 (ADT) Received: (qmail 5344 invoked by uid 60001); 14 Apr 2006 14:37:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mxWig6un3J51CxQno9XmZ/8WTYvMMOzchHPQtLwzGL23RbgZ8bxyd1Ot1+dWJKgNxiK1ik4fKttXVkGHIl7J2e5nIK8eYR8cgEbWLLSNwPn75PovrdbFAUyA6wBHg9akmzGgHab5hvJrxzb40iCSV8Tnvp+FoNYQrdS3LbfzOU4= ; Message-ID: <20060414143720.5342.qmail@web52512.mail.yahoo.com> Received: from [141.157.126.150] by web52512.mail.yahoo.com via HTTP; Fri, 14 Apr 2006 07:37:20 PDT Date: Fri, 14 Apr 2006 07:37:20 -0700 (PDT) From: Ash Grove Subject: Re: stored function, multiple queries, best practices To: pgsql-jdbc@postgresql.org In-Reply-To: <443FAF52.901@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200604/105 X-Sequence-Number: 15039 >Why assemble a string and parse it? Why not just use >multiple parameters >directly? >-O So, Oliver, you're suggesting something like "call myfunction('query1','query2','query3')"? > I currently do this by building a delimited string > in > the application containing all data to be inserted > and > then sending it, via callablestatement, to a > stored > function. The function parses the string, does the > inserts and returns the primary key via a > registered > out parameter. > Why assemble a string and parse it? Why not just use multiple parameters directly? -O __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com