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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user