X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id DCF1D11F73BE for ; Fri, 14 Apr 2006 11:18:49 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 required=5 tests=[none] Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 9cGk8coZnzf0 for ; Fri, 14 Apr 2006 11:18:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 3B02C11F7372 for ; Fri, 14 Apr 2006 11:18:45 -0300 (ADT) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.60]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FUP8G-0006A6-Dt; Sat, 15 Apr 2006 02:18:44 +1200 Message-ID: <443FAF52.901@opencloud.com> Date: Fri, 14 Apr 2006 23:18:58 +0900 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ash Grove CC: pgsql-jdbc@postgresql.org Subject: Re: stored function, multiple queries, best practices References: <20060414124834.63095.qmail@web52501.mail.yahoo.com> In-Reply-To: <20060414124834.63095.qmail@web52501.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200604/104 X-Sequence-Number: 15038 Ash Grove wrote: > 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