1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-21 16:02:15 +03:00

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.
This commit is contained in:
Barry Lind
2002-01-05 22:26:23 +00:00
parent f3efaf892e
commit 734e421278
3 changed files with 14 additions and 14 deletions

View File

@ -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
{