Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 57735632BD6 for ; Sat, 22 May 2010 06:43:21 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 78399-01 for ; Sat, 22 May 2010 09:43:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id 42642632BA3 for ; Sat, 22 May 2010 06:43:14 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 538D79F68; Sat, 22 May 2010 17:43:07 +0800 (WST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id A3725AF802; Sat, 22 May 2010 17:42:25 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9+lQrU5azyAV; Sat, 22 May 2010 17:42:20 +0800 (WST) Received: from [10.1.1.7] (124-148-217-247.dyn.iinet.net.au [124.148.217.247]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 3CF06AF800; Sat, 22 May 2010 17:42:20 +0800 (WST) Message-ID: <4BF7A718.50607@postnewspapers.com.au> Date: Sat, 22 May 2010 17:42:48 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Kris Jurka CC: =?UTF-8?B?0JLRltGC0LDQu9GW0Lkg0KLQuNC80YfQuNGI0LjQvQ==?= , PG-JDBC Mailing List Subject: Re: Using java.lang.Character for "char" data type References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/62 X-Sequence-Number: 20546 On 22/05/2010 6:16 AM, Kris Jurka wrote: > It would be possible to support setObject for a Character, but be aware > that "char" is not a character long, it's a byte long, so it will fail > on multibyte characters. So really the appropriate SQL type for Java 'Character' is varchar(1) ? And a PostgreSQL 'char' (bpchar, not character(1)) maps best to a Java 'Byte' ? -- Craig Ringer