Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 26093 invoked from network); 20 Sep 2008 13:33:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2008 13:33:05 -0000 Received: (qmail 35484 invoked by uid 500); 20 Sep 2008 13:32:56 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 35467 invoked by uid 500); 20 Sep 2008 13:32:55 -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 35456 invoked by uid 99); 20 Sep 2008 13:32:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Sep 2008 06:32:55 -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 209.85.128.184 as permitted sender) Received: from [209.85.128.184] (HELO fk-out-0910.google.com) (209.85.128.184) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Sep 2008 13:31:53 +0000 Received: by fk-out-0910.google.com with SMTP id b27so1147137fka.0 for ; Sat, 20 Sep 2008 06:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tUZBOefZT+OmTPWbxOClD5isrwsIC6q0yk/+u/zhM1o=; b=NTsq5VmTfMz0jE+XcKLkGQGsuTimIMXIMqN5bRMF05dVcQ5F6eP3teZ0fJf/s4qQX/ thwYx0gdOMzXKtnosL0Nsej6yE5EZzAk+MnGvfalhr4k5/DWS/qioQGnGaH8WRmPryf+ bdWPCupikw04Z8RWZG6XYp2Vnmwqm/1UgXAOc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EerZjOOgL43CPj+GMp/Eu/sQImGej+wUpKNwougBC8VzlEXFEM0lqGrjAvxdbpNlen u5F1CMrM5MN+fRZsmQmzaFXgdXmdfb+EUbMUklVBldzZSXe8ytoEXVjaWV8CEMWvy4Jw INYO9k7OX8p05as6kBdo6tsplOfuSWZZs4la8= Received: by 10.180.205.9 with SMTP id c9mr1000822bkg.6.1221917545282; Sat, 20 Sep 2008 06:32:25 -0700 (PDT) Received: by 10.180.239.20 with HTTP; Sat, 20 Sep 2008 06:32:25 -0700 (PDT) Message-ID: Date: Sat, 20 Sep 2008 07:32:25 -0600 From: "Larry Meadors" Reply-To: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: iBATIS : Exponential value issue In-Reply-To: <48D4C940.6060009@kinokai.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48D4C940.6060009@kinokai.de> X-Virus-Checked: Checked by ClamAV on apache.org I'd like to see the SQL statement, too...how do you jam a number like that (0.0000000000030000) into a field with 8 decimal places (number 22,8)? I'd also be curious as to the "Why?", but that's a secondary question. ;-) Larry On Sat, Sep 20, 2008 at 3:58 AM, Kai Grabfelder wrote: > Hi, > > which (exact) version of iBATIS are you using? Which (exact) version of the > Oracle driver are you using? Which java version are you using? Were you > using exactly the same driver and java version when you did your comparison > between ibatis and plain jdbc? > > I'm asking all this stuff because I had a lot of troubles with oracle > drivers depending on the java version. > > Regards > > Kai > > > --- Original Nachricht --- > Absender: girish.korkod@wipro.com > Datum: 20.09.2008 06:37 >> >> Hello, >> We have an issue when we store expontential value in oracle database >> using iBATIS. When we store a value of 0E-16(which could be >> 0.0000000000030000) using iBATIS it is stored as 16 in database instead of >> 0(zero). When we store the same value using sql insert directly it is >> storing the value correctly(zero). >> Precision of big decimal in application is 16. >> Precision in database for this column is 8(column type is number 22,8). >> JDBC mapping for this column in iBATIS SQL MAP is DECIMAL. >> iBATIS version : 2.3 >> Oracle 10G >> Please advise on what could be the possible issue and solution. Thank >> you in advance. >> Regards, >> Girish >> >> >> Please do not print this email unless it is absolutely necessary. >> The information contained in this electronic message and any attachments >> to this message are intended for the exclusive use of the addressee(s) and >> may contain proprietary, confidential or privileged information. If you are >> not the intended recipient, you should not disseminate, distribute or copy >> this e-mail. Please notify the sender immediately and destroy all copies of >> this message and any attachments. >> WARNING: Computer viruses can be transmitted via email. The recipient >> should check this email and any attachments for the presence of viruses. The >> company accepts no liability for any damage caused by any virus transmitted >> by this email. >> www.wipro.com > >