X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1866CD1B90C for ; Sat, 28 Feb 2004 07:17:03 +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 66832-06 for ; Sat, 28 Feb 2004 03:16:47 -0400 (AST) Received: from pop.sanbrunocable.com (pop.sanbrunocable.com [65.172.230.120]) by svr1.postgresql.org (Postfix) with ESMTP id 7EFB9D1D31D for ; Sat, 28 Feb 2004 03:16:45 -0400 (AST) Received: from oss4u.com (qmailr@cpe-65-172-234-54.sanbrunocable.com [65.172.234.54]) by pop.sanbrunocable.com (8.11.6/8.11.6) with SMTP id i1S7GSj14398 for ; Fri, 27 Feb 2004 23:16:28 -0800 Received: (qmail 23197 invoked from network); 28 Feb 2004 07:15:29 -0000 Received: from tiburon.oss4u.com (192.168.1.4) by gw.oss4u.com (192.168.1.1) with ESMTP; 28 Feb 2004 07:15:29 -0000 From: "Uwe C. Schroeder" Organization: OSS4U, LLC To: "Rajat Katyal" , Subject: Re: value too long error Date: Fri, 27 Feb 2004 23:16:42 -0800 User-Agent: KMail/1.5.3 References: <000a01c3fdc8$8adf1c70$2105a8c0@coffee> In-Reply-To: <000a01c3fdc8$8adf1c70$2105a8c0@coffee> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200402272316.45130.uwe@oss4u.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/1242 X-Sequence-Number: 57953 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Just don't try to save anything into a field that is too short to store the= =20 value. Doesn't make too much sense, since what doesn't fit into the field= =20 would be cut off anyways. If you need this, have your application either=20 restrict the input field length or cut the extensive part off before you=20 store it to the database. On Friday 27 February 2004 11:00 pm, Rajat Katyal wrote: > Hi: > > Whenever i try to insert the data, size of which is greater than that of > column datatype size, I got the exception value too long for..... > > However this was not in postgresql7.2. > > Can anyone please tell me, is there any way so that i wont get this > exception. Please help me as soon as possible > > Thanks in advance. > > Rajat. - --=20 UC - -- Open Source Solutions 4U, LLC 2570 Fleetwood Drive Phone: +1 650 872 2425 San Bruno, CA 94066 Cell: +1 650 302 2405 United States Fax: +1 650 872 2417 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAQEBcjqGXBvRToM4RAv2TAKC8CmB4/pJWSk7H3/RDjn38RxBM4QCeKl/O CIf6DMxms1Y81DBd/9lHBwY=3D =3Db4bg -----END PGP SIGNATURE-----