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 07C06329CF8 for ; Wed, 22 Sep 2004 20:50:54 +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 11314-03 for ; Wed, 22 Sep 2004 19:50:45 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1D9AD329C63 for ; Wed, 22 Sep 2004 20:50:46 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i8MJoiNH018348; Wed, 22 Sep 2004 15:50:44 -0400 (EDT) To: "Waldomiro" Cc: pgsql-jdbc@postgresql.org Subject: Re: Char(100) fields In-reply-to: <003401c4a0d1$c9ea48c0$1001a8c0@shx.com.br> References: <003401c4a0d1$c9ea48c0$1001a8c0@shx.com.br> Comments: In-reply-to "Waldomiro" message dated "Wed, 22 Sep 2004 15:27:15 -0300" Date: Wed, 22 Sep 2004 15:50:43 -0400 Message-ID: <18347.1095882643@sss.pgh.pa.us> From: Tom Lane 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/151 X-Sequence-Number: 11041 "Waldomiro" writes: > now I have an error "value too long for type character(100)" Perhaps you are using unicode but forgot to set up the database with the proper encoding? The DB is going to count bytes not characters if it's in SQL_ASCII encoding, for example. regards, tom lane