Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 53832 invoked by uid 500); 17 Mar 2003 19:19:27 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 53821 invoked by uid 500); 17 Mar 2003 19:19:27 -0000 Delivered-To: apmail-cocoon-2.1-cvs@apache.org Received: (qmail 53818 invoked from network); 17 Mar 2003 19:19:27 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 17 Mar 2003 19:19:27 -0000 Received: (qmail 91964 invoked by uid 1544); 17 Mar 2003 19:19:26 -0000 Date: 17 Mar 2003 19:19:26 -0000 Message-ID: <20030317191926.91962.qmail@icarus.apache.org> From: coliver@apache.org To: cocoon-2.1-cvs@apache.org Subject: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript ScriptableConnection.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N coliver 2003/03/17 11:19:25 Modified: src/java/org/apache/cocoon/components/flow/javascript ScriptableConnection.java Log: remove tabs Revision Changes Path 1.5 +32 -32 cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/ScriptableConnection.java Index: ScriptableConnection.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/ScriptableConnection.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ScriptableConnection.java 17 Mar 2003 18:53:16 -0000 1.4 +++ ScriptableConnection.java 17 Mar 2003 19:19:25 -0000 1.5 @@ -1,4 +1,4 @@ -/* +/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- ============================================================================ The Apache Software License, Version 1.1 @@ -210,21 +210,21 @@ throws JavaScriptException { try { PreparedStatement stmt = connection.prepareStatement(sql); - Scriptable array = (Scriptable)params; - if (array != Undefined.instance) { - int len = (int) - Context.toNumber(ScriptableObject.getProperty(array, "length")); - for (int i = 0; i < len; i++) { - Object val = ScriptableObject.getProperty(array, i); - if (val instanceof Wrapper) { - val = ((Wrapper)val).unwrap(); - } - if (val == Scriptable.NOT_FOUND) { - val = null; - } - stmt.setObject(i + 1, val); - } - } + Scriptable array = (Scriptable)params; + if (array != Undefined.instance) { + int len = (int) + Context.toNumber(ScriptableObject.getProperty(array, "length")); + for (int i = 0; i < len; i++) { + Object val = ScriptableObject.getProperty(array, i); + if (val instanceof Wrapper) { + val = ((Wrapper)val).unwrap(); + } + if (val == Scriptable.NOT_FOUND) { + val = null; + } + stmt.setObject(i + 1, val); + } + } ResultSet rs = stmt.executeQuery(); if (maxRows == 0) { maxRows = -1; @@ -243,21 +243,21 @@ throws JavaScriptException { try { PreparedStatement stmt = connection.prepareStatement(sql); - Scriptable array = (Scriptable)params; - if (array != Undefined.instance) { - int len = (int) - Context.toNumber(ScriptableObject.getProperty(array, "length")); - for (int i = 0; i < len; i++) { - Object val = ScriptableObject.getProperty(array, i); - if (val instanceof Wrapper) { - val = ((Wrapper)val).unwrap(); - } - if (val == Scriptable.NOT_FOUND) { - val = null; - } - stmt.setObject(i + 1, val); - } - } + Scriptable array = (Scriptable)params; + if (array != Undefined.instance) { + int len = (int) + Context.toNumber(ScriptableObject.getProperty(array, "length")); + for (int i = 0; i < len; i++) { + Object val = ScriptableObject.getProperty(array, i); + if (val instanceof Wrapper) { + val = ((Wrapper)val).unwrap(); + } + if (val == Scriptable.NOT_FOUND) { + val = null; + } + stmt.setObject(i + 1, val); + } + } stmt.execute(); return stmt.getUpdateCount(); } catch (Exception e) {