JDBC - Handle unknown encoding properly in AbstractJdbc2ResultSet

From: Kris Jurka <jurka(at)ejurka(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: JDBC - Handle unknown encoding properly in AbstractJdbc2ResultSet
Date: 2002-09-09 22:00:18
Message-ID: 3D7D19F2.6050808@ejurka.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


For the UNKNOWN encoding the JDBC driver has a default encoding name
that is null. Calling ((String)s).getBytes(null) is an error and the
apparent API is ((Encoding)e).encode((String)s) which handles the null case.

Kris Jurka

Attachment Content-Type Size
updateable_resultset-null_encoding.patch text/plain 1.2 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruno Wolff III 2002-09-09 23:15:32 Updated earthdistance/cube patches
Previous Message Kris Jurka 2002-09-09 21:12:04 JDBC Driver - Connection.getTransactionIsolationLevel