X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 90DF63A3E61 for ; Mon, 17 Jan 2005 19:41:24 +0000 (GMT) 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 47495-07 for ; Mon, 17 Jan 2005 19:41:12 +0000 (GMT) Received: from axiontech.com (unknown [216.52.172.78]) by svr1.postgresql.org (Postfix) with SMTP id DE98E3A3E53 for ; Mon, 17 Jan 2005 19:41:12 +0000 (GMT) Received: (qmail 25767 invoked from network); 17 Jan 2005 19:41:24 -0000 Received: from pc-00161 (HELO yudie) (192.168.1.161) by mail.axiontech.com (192.168.1.6) with SMTP; 17 Jan 2005 19:41:24 -0000 Message-ID: <008101c4fccc$16d8a040$a101a8c0@home.axiontech.com> From: "Yudie" To: "Tom Lane" Cc: References: <000d01c4fcc4$90fc9b40$a101a8c0@home.axiontech.com> <9227.1105989789@sss.pgh.pa.us> Subject: Re: query configuration for validate empty quote to zero Date: Mon, 17 Jan 2005 13:30:03 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.155 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/127 X-Sequence-Number: 19915 The problem is not stop there, I had a table that can't be updated since then with this simply command: update prdttable set webinclude = '0' where prdtnumber = '6002' Again, the errors (invalid input syntax for integer: "") apears. Then I found this temporary solution to make replica to this record to another table in sense of update the value in the new table. 1. Create table prdt_problem as select * form prdttable where prdtnumber = '6002'; 2. Update prdt_problem set webinclude = '0' where prdtnumber = '6002'; 3. Delete from prdttable where prdtnumber = '6002'; 4. Insert into prdttable select * from prdt_problem How to fix this bug? > None. That's an intentional change. The fact that it ever accepted > '' as meaning 0 was a bug. > > regards, tom lane >