From: | Anders Bengtsson <ndrsbngtssn(at)yahoo(dot)se> |
---|---|
To: | <pgsql-jdbc(at)postgresql(dot)org>, <pgsql-patches(at)postgresql(dot)org> |
Subject: | [PATCH] Cleanup of JDBC character encoding |
Date: | 2001-07-08 15:26:57 |
Message-ID: | Pine.LNX.4.33.0107081710420.3235-400000@sensenet.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc pgsql-patches |
Hello,
With this patch I've done an attempt to make the handling of character
encoding in the JDBC driver a little clearer.
* Cleans up the logic to select a JVM encoding for a backend encoding.
* Makes the connection setup code easier to read.
* Gathers character encoding and decoding in a single place.
* Adds unit tests for encoding.
* Introduces a new class, org.postgresql.core.Encoding, and the
corresponding unit test class, org.postgresql.test.jdbc2.EncodingTest.
It shouldn't change the external behavior of the driver.
/Anders
_____________________________________________________________________
A n d e r s B e n g t s s o n ndrsbngtssn(at)yahoo(dot)se
Stockholm, Sweden
Attachment | Content-Type | Size |
---|---|---|
EncodingTest.java | text/plain | 1.2 KB |
Encoding.java | text/plain | 4.1 KB |
encoding.patch | text/plain | 13.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | jason | 2001-07-08 16:42:54 | Re: DatabaseMetaData.getCatalogs() |
Previous Message | Lamar Owen | 2001-07-07 14:33:40 | Re: [HACKERS] 2 gig file size limit |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-07-08 15:38:50 | Re: [PATCH] Patch to make pg_hba.conf handle virtualhost access control and samehost keyword |
Previous Message | Bruce Momjian | 2001-07-08 14:44:27 | Re: [PATCH] Patch to make pg_hba.conf handle virtualhost access control and samehost keyword |