Received: from srvlnx02.pup.ch (zg-d-184.agrinet.ch [212.28.131.184]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0VEDoq40698 for ; Wed, 31 Jan 2001 09:13:51 -0500 (EST) (envelope-from juerg.rietmann@pup.ch) Subject: no value for numeric filed in SQL statement causes an error To: pgsql-sql@postgresql.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: juerg.rietmann@pup.ch Date: Wed, 31 Jan 2001 15:16:28 +0100 X-MIMETrack: Serialize by Router on srvlnx02/Pup/ch(Release 5.0.5 |September 22, 2000) at 01/31/2001 03:16:30 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Archive-Number: 200101/474 X-Sequence-Number: 1150 Hi there I have a table with char and int fields. From my form I get no values back for int fields when they are left blank. This causes the SQL insert to fail. field type name char id int2 city char insert into table (name,id,city) values ('roger rabbit',,'carrot city') The default for int/float fields is 0. Since I reuse the code of the referring page I don't like to have all fields assigned 0 at the beginning. Who can help ??? Thanks ... jr ============================================ PFISTER + PARTNER, SYSTEM - ENGINEERING AG Juerg Rietmann Grundstrasse 22a 6343 Rotkreuz Switzerland phone: +4141 790 4040 fax: +4141 790 2545 mobile: +4179 211 0315 ============================================