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 4D5BE3A41E1 for ; Thu, 6 Jan 2005 18:18:04 +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 34043-06 for ; Thu, 6 Jan 2005 18:17:33 +0000 (GMT) Received: from web40625.mail.yahoo.com (web40625.mail.yahoo.com [66.218.92.54]) by svr1.postgresql.org (Postfix) with SMTP id 0A68D3A45C0 for ; Thu, 6 Jan 2005 18:17:33 +0000 (GMT) Received: (qmail 84479 invoked by uid 60001); 6 Jan 2005 18:17:29 -0000 Message-ID: <20050106181729.84477.qmail@web40625.mail.yahoo.com> Received: from [207.171.180.101] by web40625.mail.yahoo.com via HTTP; Thu, 06 Jan 2005 10:17:29 PST Date: Thu, 6 Jan 2005 10:17:29 -0800 (PST) From: Keith Hankin Subject: One byte integer support To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.89 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200501/25 X-Sequence-Number: 11905 Is there any way to support one byte integers? I am using JDBC and would like to use setByte() method to populate values of a single-byte integer valued column. I tried defining the column as character(1), but I get the error message: Exception in thread "main" org.postgresql.util.PSQLException: ERROR: value too long for type character(1) I don't see how a byte is too long for character(1). Is there any data type like MySQL's tinyint? __________________________________ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250