Skip to content
Snippets Groups Projects
Commit 8417910b authored by Christoph Berg's avatar Christoph Berg :satellite:
Browse files

New upstream version 42.7.6.

parent 3e381e20
No related branches found
No related tags found
No related merge requests found
Pipeline #873454 passed
libpgjava (42.7.6-1) experimental; urgency=medium
* New upstream version 42.7.6.
-- Christoph Berg <myon@debian.org> Mon, 02 Jun 2025 17:05:52 +0200
libpgjava (42.7.5-2) unstable; urgency=medium
* Fix org.postgresql.util.PSQLException: Unable to convert bytea parameter
......
02-scram-optional.patch
tostring
Fix org.postgresql.util.PSQLException: Unable to convert bytea parameter at position 1 to literal
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098830
https://github.com/pgjdbc/pgjdbc/issues/3365
--- a/src/main/java/org/postgresql/core/v3/SimpleParameterList.java
+++ b/src/main/java/org/postgresql/core/v3/SimpleParameterList.java
@@ -250,21 +250,7 @@ class SimpleParameterList implements V3P
String textValue;
String type;
if (paramTypes[index] == Oid.BYTEA) {
- try {
- return PGbytea.toPGLiteral(paramValue);
- } catch (Throwable e) {
- Throwable cause = e;
- if (!(cause instanceof IOException)) {
- // This is for compatibilty with the similar handling in QueryExecutorImpl
- cause = new IOException("Error writing bytes to stream", e);
- }
- throw sneakyThrow(
- new PSQLException(
- GT.tr("Unable to convert bytea parameter at position {0} to literal",
- index),
- PSQLState.INVALID_PARAMETER_VALUE,
- cause));
- }
+ return "?";
}
if ((flags[index] & BINARY) == BINARY) {
// handle some of the numeric types
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment