diff options
author | Barry Lind <barry@xythos.com> | 2002-01-05 22:26:23 +0000 |
---|---|---|
committer | Barry Lind <barry@xythos.com> | 2002-01-05 22:26:23 +0000 |
commit | 734e4212784d7baa3dc809e25f9cb6de8329211f (patch) | |
tree | 0c960badacc872108c8e0c630b5e1ef5efdc365e /src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | |
parent | f3efaf892ee14fa771d023e7b3b02c4af2b37d84 (diff) | |
download | postgresql-734e4212784d7baa3dc809e25f9cb6de8329211f.tar.gz |
Bugfix for bug reported by Marcus Better (marcus@dactylis.com). When preforming
a get on a bytea value the code was running the raw value from the server
through character set conversion, which if the character set was SQL_ASCII
would cause all 8bit characters to become ?'s.
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java index 565847db9f..58773b819b 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java @@ -331,7 +331,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu //Version 7.2 supports the bytea datatype for byte arrays if (fields[columnIndex - 1].getPGType().equals("bytea")) { - return PGbytea.toBytes(getString(columnIndex)); + return PGbytea.toBytes(this_row[columnIndex - 1]); } else { |