X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3BA91D1D544 for ; Wed, 14 Jan 2004 08:25:02 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 47254-06 for ; Wed, 14 Jan 2004 04:24:32 -0400 (AST) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by svr1.postgresql.org (Postfix) with ESMTP id 5DCC6D1D27F for ; Wed, 14 Jan 2004 04:24:30 -0400 (AST) Received: from [10.10.14.130] glaesema@smtp-send.myrealbox.com [61.115.206.98] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.47 $ on Novell NetWare; Wed, 14 Jan 2004 01:24:14 -0700 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <08D26BD2-466B-11D8-8BB3-000A95C88220@myrealbox.com> Content-Transfer-Encoding: 7bit Cc: pgsql-sql@postgresql.org From: Michael Glaesemann Subject: Re: Insert into:Bad date external representation Date: Wed, 14 Jan 2004 17:24:13 +0900 To: azwa@nc.com.my X-Mailer: Apple Mail (2.609) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/122 X-Sequence-Number: 16515 On Jan 14, 2004, at 4:39 PM, azwa@nc.com.my wrote: > got an error as below : > > dwnc=> insert into biosadm.custdo_dim > dwnc-> (do_key,do_no,do_date,attnto,custlo) > dwnc-> select nextval('cdo_seq'),c.dono::varchar,c.dodate::date, > dwnc-> c.attnto, c.custlo from custdo_temp c; > ERROR: Bad date external representation '' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Here's your clue right here: It means the dodate text field in custdo_temp contains data that does not represent a valid date. Check to make sure custdo_temp.dodate is all properly formatted. HTH Michael Glaesemann grzm myrealbox com