summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
diff options
context:
space:
mode:
authorBarry Lind <barry@xythos.com>2002-01-05 22:26:23 +0000
committerBarry Lind <barry@xythos.com>2002-01-05 22:26:23 +0000
commit734e4212784d7baa3dc809e25f9cb6de8329211f (patch)
tree0c960badacc872108c8e0c630b5e1ef5efdc365e /src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
parentf3efaf892ee14fa771d023e7b3b02c4af2b37d84 (diff)
downloadpostgresql-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.java2
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
{