Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 57102 invoked from network); 31 May 2008 12:34:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 May 2008 12:34:23 -0000 Received: (qmail 69660 invoked by uid 500); 31 May 2008 12:34:26 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 69629 invoked by uid 500); 31 May 2008 12:34:26 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 69620 invoked by uid 99); 31 May 2008 12:34:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 May 2008 05:34:25 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 May 2008 12:33:46 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id B197BD2EA for ; Sat, 31 May 2008 12:34:02 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: derby-commits@db.apache.org Date: Sat, 31 May 2008 12:34:02 -0000 Message-ID: <20080531123402.5676.15252@eos.apache.org> Subject: [Db-derby Wiki] Update of "DerbySQLroutines" by KnutAndersHatlen X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification. The following page has been changed by KnutAndersHatlen: http://wiki.apache.org/db-derby/DerbySQLroutines The comment on the change is: Fixed typos in example code. ------------------------------------------------------------------------------ public static void selectRows(int p1, int p2, ResultSet[] data1, ResultSet[] data2) throws SQLException { - Curonnection conn = DriverManager.getConnection("jdbc:default:connection"); + Connection conn = DriverManager.getConnection("jdbc:default:connection"); PreparedStatement ps1 = conn.prepareStatement("select * from t1 where i = ?"); ps1.setInt(1, p1); data1[0] = ps1.executeQuery(); - PreparedStatament ps2 = conn.prepareStatement("select * from t1 where i >= ?"); + PreparedStatement ps2 = conn.prepareStatement("select * from t1 where i >= ?"); ps2.setInt(1, p2); data2[0] = ps2.executeQuery();