Message-ID: From: "vlsi (@vlsi)" To: "pgjdbc/pgjdbc" Date: Tue, 12 Aug 2025 13:05:28 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3757: PreparedStatement.toString() fails for bytea parameters with at least 42.7.7 In-Reply-To: References: List-Id: X-GitHub-Author-Login: vlsi X-GitHub-Comment-Id: 3179255773 X-GitHub-Comment-Type: issue_comment X-GitHub-Edited-At: 2025-08-12T13:06:14Z X-GitHub-Issue: 3757 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3757#issuecomment-3179255773 Content-Type: text/plain; charset=utf-8 >but didn't see how we might handle a prepared statement parameter that's an array of bytea values without "bytea" PGobjects, offhand. @rlbdv , have you tried `conn.createArrayOf("bytea", byte[][])`? See * https://github.com/pgjdbc/pgjdbc/blob/3f1e7c51ac1bb43c206afaf82a4a1df52268037a/pgjdbc/src/test/java/org/postgresql/test/jdbc4/ArrayTest.java#L130-L131 * https://github.com/pgjdbc/pgjdbc/blob/3f1e7c51ac1bb43c206afaf82a4a1df52268037a/pgjdbc/src/test/java/org/postgresql/test/jdbc4/ArrayTest.java#L143