Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 54568 invoked from network); 11 Jul 2006 10:32:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 10:32:46 -0000 Received: (qmail 29790 invoked by uid 500); 11 Jul 2006 10:32:44 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 29751 invoked by uid 500); 11 Jul 2006 10:32:44 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 29740 invoked by uid 99); 11 Jul 2006 10:32:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 03:32:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 03:32:41 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G0FXE-0007bJ-Nn for derby-user@db.apache.org; Tue, 11 Jul 2006 12:32:08 +0200 Received: from dslb-088-073-024-168.pools.arcor-ip.net ([88.73.24.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jul 2006 12:32:08 +0200 Received: from stepper by dslb-088-073-024-168.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jul 2006 12:32:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: Eike Stepper Subject: Re: 'VARCHAR' from a data value of type '0' Date: Tue, 11 Jul 2006 12:31:53 +0200 Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-088-073-024-168.pools.arcor-ip.net User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) In-Reply-To: X-Antivirus: avast! (VPS 0628-1, 10.07.2006), Outbound message X-Antivirus-Status: Clean Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Knut Anders Hatlen schrieb: > Eike Stepper writes: > >> Knut Anders Hatlen schrieb: >>> Eike Stepper writes: >>> >>> [...] >>> >>> It seems like setNull() is called with 0 as type id (second argument) >>> at line 95 in StatementCreatorUtils.java. It should work if you change >>> the type id to java.sql.Types.VARCHAR. >> Hi Knut, >> >> Thx for your quick reply. >> Unfortunately the call to setNull() is in the Spring Framework, >> which I can't change ;-( > > How do you supply the null to Spring? There should be a way to tell > Spring to use the correct type id. > > My guess after looking at your stack trace and the Spring code, is > that org.eclipse.emf.cdo.server.impl.MapperImpl.sql() invokes the > org.springframework.jdbc.core.JdbcTemplate.update() method with two > parameters (String sql, Object[] args). There is also an update method > with three parameters (String sql, Object args[], int[] argTypes). You > could try to use that one instead. Yeah, that works ;-) Many Thanks! Cheers /Eike