Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id F32251BFF91D for ; Fri, 6 Apr 2012 18:08:21 -0300 (ADT) Received: from outbound.vnet-inc.com ([216.146.104.103]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SGGOK-0000xo-Iq for pgsql-jdbc@postgresql.org; Fri, 06 Apr 2012 21:08:21 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id 0559E5A60; Fri, 6 Apr 2012 15:08:04 -0600 (MDT) Message-ID: <4F7F5A9F.1020002@ttc-cmc.net> Date: Fri, 06 Apr 2012 15:05:35 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: =?UTF-8?B?IkJDSCnlp5zkuqbmlY8i?= , pgsql-jdbc@postgresql.org Subject: Re: JDBC DatabaseMetaData problem References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/17 X-Sequence-Number: 22817 BCH)=E5=A7=9C=E4=BA=A6=E6=95=8F wrote: > Hello, > I have the following problem working with DatabaseMetaData. There is a > database with table and the attribute of 'cont' is character. Database > cluster was > initialized with appropriate ru_RU.KOI8-R locale. All the databases wer= e > created with utf-8 encoding. > I use PostgreSQL-8.2compiled from source, JDBC driver from > on Linux, J2SDK 1.4.2_12. > update scheduleconttbl set cont =3D'\xf0\x9f\x99\x8f' > where logindaytime =3D '20120406142138813'; > ~ > ~ > ~ > I will appreciate any help with this. > > Thank you. > > > Sincerely yours, > Jiang Hello, I just tried this same update on a table with char type with the input indicated and it works fine on PostgreSQL 9.0.1 with jdbc-9.0-901.jdbc3. Perhaps you need to update to a newer version of the database if you are used the recommended supported version and correlated jdbc has indicated at http://jdbc.postgresql.org/download.html Version 8.2 Build 512 and JDBC2 8.2-512 JDBC2 which I think supports JRE 1.4. danap.