Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 837 invoked from network); 22 Mar 2004 10:57:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Mar 2004 10:57:52 -0000 Received: (qmail 97578 invoked by uid 500); 22 Mar 2004 10:57:24 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 97562 invoked by uid 500); 22 Mar 2004 10:57:24 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 97545 invoked from network); 22 Mar 2004 10:57:24 -0000 Received: from unknown (HELO msx.drei.com) (213.94.78.66) by daedalus.apache.org with SMTP; 22 Mar 2004 10:57:24 -0000 Received: from msx.drei.com ([10.249.20.17]) by msx.drei.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 22 Mar 2004 11:57:37 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Village Date: Mon, 22 Mar 2004 11:57:36 +0100 Message-ID: <90B3A0967470D44CB8FDE74907512328F1BA4D@av1s008.at-work.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Village Thread-Index: AcQP+LCPe3xruv5JRnSypNF/pVJ8dgAA0Hgw From: =?iso-8859-1?Q?=22G=F6schl=2CSiegfried=22?= To: "Apache Torque Developers List" X-OriginalArrivalTime: 22 Mar 2004 10:57:37.0344 (UTC) FILETIME=[7CD0A400:01C40FFC] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Xavier, don't know who is maintaining Village but your patch breaks existing = code A US localization might send '50,000' which is in the US locale = fiftythousand without trailing zeros. You would correct it "50.000", i.e = fifty ... :-) Thanks in advance Siegfried Goeschl -----Original Message----- From: Xavier Maysonnave [mailto:xavier@omondo.com] Sent: Monday, March 22, 2004 11:30 AM To: Apache Torque Developers List Subject: Village Hi All, is there someone who maintain the village distribution ? While working on data export I've got some problems and fixed two = issues. For example : 1 - In Value.java while exporting a database with a decimal column I got a = value like '0,50'. As you can notice the database send me a localized decimal value (I am = working on a french=20 windows) with a ',' rather a value like '0.50'. As a consequence the instruction : valueObject =3D new BigDecimal (number); crashed. I just modified the code with the following : number =3D number.replace(',', '.'); //EclipseDatabase added valueObject =3D new BigDecimal (number); 2 - Concerning blob retrieval, here is the following : case Types.BLOB: Blob blob =3D rs.getBlob(columnNumber); valueObject =3D blob.getBytes(1, (int) blob.length()); break; If the retrieved blob is null, it causes an exception. This could be = fixed with the=20 following : case Types.BLOB: Blob blob =3D rs.getBlob(columnNumber); if (blob !=3D null) { valueObject =3D blob.getBytes(1, (int) blob.length()); } else { valueObject =3D null; } break; Regards. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org