Message-ID: From: "svendiedrichsen (@svendiedrichsen)" To: "pgjdbc/pgjdbc" Date: Tue, 15 Apr 2025 18:48:06 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3606: fix: add support for multiple schemas via PgConnection.setSchema In-Reply-To: References: List-Id: X-GitHub-Author-Login: svendiedrichsen X-GitHub-Comment-Id: 2045252686 X-GitHub-Comment-Type: review_comment X-GitHub-Commit: 713f0335fa9ef65c4f1193834680216ba01f6dab X-GitHub-Issue: 3606 X-GitHub-Line: 1706 X-GitHub-Path: pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: review_comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3606#discussion_r2045252686 Content-Type: text/plain; charset=utf-8 (on pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java:1706) Wouldn't it be easier to use streams for this? i.e. `Arrays.stream(str.split(",")).map(s -> "'" + s + "'").collect(Collectors.joining(","))`