Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 99633 invoked from network); 8 Sep 2007 21:59:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2007 21:59:38 -0000 Received: (qmail 41162 invoked by uid 500); 8 Sep 2007 21:59:25 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 41150 invoked by uid 500); 8 Sep 2007 21:59:25 -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 41139 invoked by uid 99); 8 Sep 2007 21:59:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2007 14:59:25 -0700 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 larry.meadors@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2007 21:59:22 +0000 Received: by nf-out-0910.google.com with SMTP id b2so661752nfb for ; Sat, 08 Sep 2007 14:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=mWaw4vqkw61YtURHxnR2vo00r5sppSngGz8D5gfLR+w=; b=nuO3t2jkRKFcwJZByWanJ5RPS3P/woq6JLv716mHIq6iHHHjbos7ctzzy4vPp60BWq+M3ZuKst04nkBfRIJsoYAXWlPxhi2defNpgfPykwVZiR25VZ/ETBnWKlxZIBsV8vs1/ZlxawVYKlnR0nwwS5EVf6WyE3UHnvjuUZVhr5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mlraHhNozqFHhy+RK1ymb+b3XeT+ReGZwb9XPP2MPIdZHj6tdeWBqgfyfoE+iS3BDNIJyazM94G2Ru4gXSjTizmsfbsuthwsMkF+ovuaYawD6hGgD47Q1utEZNUgfTWGuCpmasZS/0x8PdwuPwjCmkNCMFRuzqcYFrnn4QRkpfQ= Received: by 10.78.166.7 with SMTP id o7mr1200583hue.1189288739737; Sat, 08 Sep 2007 14:58:59 -0700 (PDT) Received: by 10.78.143.9 with HTTP; Sat, 8 Sep 2007 14:58:59 -0700 (PDT) Message-ID: Date: Sat, 8 Sep 2007 15:58:59 -0600 From: "Larry Meadors" Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: Derby 10.3.1.4 not working with ibatis-2.3.0.677 Cc: "Derby Discussion" In-Reply-To: <20070908191346.87E75724974@athena.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070908191346.87E75724974@athena.apache.org> X-Google-Sender-Auth: 2ba229c6832392cf X-Virus-Checked: Checked by ClamAV on apache.org That's the best I can do for free - I can do the work for you if you want, but I'll have to bill you for that. ;-) Larry On 9/8/07, Zsolt Koppany wrote: > Larry, > > thank you but it means form me approx. 400 statements. > > Zsolt > > Zsolt > > -----Original Message----- > > From: larry.meadors@gmail.com [mailto:larry.meadors@gmail.com] On Behalf > > Of Larry Meadors > > Sent: Saturday, September 08, 2007 4:43 PM > > To: user-java@ibatis.apache.org > > Cc: Derby Discussion > > Subject: Re: Derby 10.3.1.4 not working with ibatis-2.3.0.677 > > > > Actually, you can tell iBATIS the type (see page 29 in the user guide) > > - in an insert or update, user the following notation: > > > > #property:JDBCTYPE# > > > > You can get a list of the valid JDBC types here: > > > > http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Types.html > > > > So if your property is named address, and the type is VARCHAR it would > > be #address:VARCHAR#. > > > > Larry > > > > > > On 9/8/07, Zsolt Koppany wrote: > > > Knut, > > > > > > thank you fort he info, but not my application but ibatis uses jdbc code > > and > > > I cannot do anything about. > > > > > > Our application does work with oracle-10, oracle-9, mysql-4, mysql-5 and > > > derby 10.2.2.0 and we have this problem only with derby 10.3.1.4. > > > > > > We cannot modify ibatis. Is that possible to get a derby-client that > > works > > > as before or we cannot use derby in the future? > > > > > > Zsolt > > > > -----Original Message----- > > > > From: Knut.Hatlen@Sun.COM [mailto:Knut.Hatlen@Sun.COM] > > > > Sent: Friday, September 07, 2007 9:16 AM > > > > To: Derby Discussion > > > > Subject: Re: Derby 10.3.1.4 not working with ibatis-2.3.0.677 > > > > > > > > Zsolt Koppany writes: > > > > > > > > > Hi, > > > > > > > > > > I tried to upgrade to derby 10.3.1.4 but I get strange error > > messages > > > > that I > > > > > didn't get with derby 10.2.2.0. > > > > > > > > > > I use 10.3.1.4 with ibatis-2.3.0.677. > > > > > > > > > > Any ideas? > > > > [...] > > > > > --- Cause: java.sql.SQLException: An attempt was made to get a data > > > > value of > > > > > type '' from a data value of type 'VARCHAR'. > > > > [...] > > > > > at org.apache.derby.client.am.PreparedStatement.setNull(Unknown > > > > Source) > > > > > > > > Hi, > > > > > > > > It seems like your application calls PreparedStatement.setNull() with > > an > > > > invalid type specification. If you change the type to > > > > java.sql.Types.VARCHAR, it will probably work. This was changed in > > > > 10.3.1.4 to make the network client driver and the embedded driver > > > > behave the same way. Please see this section in the release notes for > > > > details: > > > > > > > > http://db.apache.org/derby/releases/release-10.3.1.4.cgi#N10C87 > > > > > > > > -- > > > > Knut Anders > > > > > > > >