X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6628C329CDD for ; Thu, 23 Sep 2004 19:51:04 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 35667-04 for ; Thu, 23 Sep 2004 18:51:00 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id D997D329CAE for ; Thu, 23 Sep 2004 19:50:59 +0100 (BST) Received: (qmail 6503 invoked by uid 1112); 23 Sep 2004 18:50:58 -0000 Date: Thu, 23 Sep 2004 13:50:58 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Waldomiro Cc: pgsql-jdbc@postgresql.org Subject: Re: Integer fields In-Reply-To: <001501c4a172$c629fa40$1001a8c0@shx.com.br> Message-ID: References: <001501c4a172$c629fa40$1001a8c0@shx.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/168 X-Sequence-Number: 11058 On Thu, 23 Sep 2004, Waldomiro wrote: > Hi, > > In my java application when an user leave some integers field empty, it > is saved without any digit like this --> '' > > In postgres 7.2 it is working, but in 7.4 it doesn't In 7.2 '' was treated as 0, but starting with the 7.3 release this is recognized as an invalid integer value. The bottom line is to fix your code. Kris Jurka