Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 1143 invoked from network); 27 Jun 2009 19:30:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jun 2009 19:30:17 -0000 Received: (qmail 67177 invoked by uid 500); 27 Jun 2009 19:30:26 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 67133 invoked by uid 500); 27 Jun 2009 19:30:26 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 67125 invoked by uid 99); 27 Jun 2009 19:30:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Jun 2009 19:30:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of slayer81@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 27 Jun 2009 19:30:16 +0000 Received: (qmail 8155 invoked by uid 0); 27 Jun 2009 19:29:54 -0000 Received: from 91.14.243.96 by www181.gmx.net with HTTP; Sat, 27 Jun 2009 21:29:54 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-1" Date: Sat, 27 Jun 2009 21:29:53 +0200 From: "Matthias Paul" In-Reply-To: <16178eb10906251711q380feaabj4b564b077944c5b0@mail.gmail.com> Message-ID: <20090627192953.186040@gmx.net> MIME-Version: 1.0 References: <20090625184709.148300@gmx.net> <16178eb10906251711q380feaabj4b564b077944c5b0@mail.gmail.com> Subject: Re: ScriptRunner question To: user-java@ibatis.apache.org X-Authenticated: #4703925 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/WxkYcOVLWJuAthvM3b7BivNSlN252ixRoI25n+k cJWRL8XZEUC3qhMKBqH4SoXSRKYUKqvUSO4g== Content-Transfer-Encoding: 8bit X-GMX-UID: A0Vze9kgbUk7IoP1dWgnkcpsZ2hlN0q+ X-FuHaFi: 0.47 X-Virus-Checked: Checked by ClamAV on apache.org Thank you for your reply, Clinton :) Is there another supported way to transfer scripts to database yet? Or isnt iBatis meant to do such tasks? Paule -------- Original-Nachricht -------- > Datum: Thu, 25 Jun 2009 18:11:16 -0600 > Von: Clinton Begin > An: user-java@ibatis.apache.org > Betreff: Re: ScriptRunner question > ScriptRunner isn't really a supported feature of iBATIS. It's meant for > utilities and unit tests only. > Its API may change significantly in the future without warning. > > Clinton > > On Thu, Jun 25, 2009 at 12:47 PM, wrote: > > > Hello! > > > > Using iBatis 2.3.4.726. > > Had some problems with transfering a SQL script (a Oracle package) to > > Oracle database with iBatis' ScriptRunner. > > The SQL script file looked smth like this: > > > > > > > > -- MYPACKAGE package specification > > create or replace package MYPACKAGE as > > > > -- commentary here > > procedure PROCEDURE1 ( > > PARAMETER1 in number > > ); > > > > -- insert GVC rule > > procedure PROCEDURE2 ( > > PARAMETER1 in number > > ); > > > > > > end MYPACKAGE; > > / > > > > > > > > > > > > I called ScriptRunner method "setDelimiter("/", true)" to set single > line > > delimiter to "/". The script was tranfered to database, but on a single > line > > with over 20k length, which isnt easy to read or decipher. > > > > Mot sure about that, but shouldnt there be a NEWLINE character appended > > after each line read from the script by > ScriptRunner.runScript(Connection > > conn, Reader reader) ? > > > > Another thing is: The if-then-else block starting at line 147 looks > weird. > > I dont understand why some comments are left out (or: written to log > writer) > > while others are not. Are "//" and "--" comment types database > > system-dependent? And isnt the LineNumberReader supposed to return the > > current line number on errors? > > > > > > Thank you for your time! > > Paule > > -- > > GRATIS f�r alle GMX-Mitglieder: Die maxdome Movie-FLAT! > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org > > For additional commands, e-mail: user-java-help@ibatis.apache.org > > > > -- GRATIS f�r alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org