Message-ID: From: "davecramer (@davecramer)" To: "pgjdbc/pgjdbc" Date: Thu, 20 Feb 2025 19:22:11 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #2694: the url is invalid In-Reply-To: References: List-Id: X-GitHub-Author-Login: davecramer X-GitHub-Comment-Id: 2672463983 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 2694 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/2694#issuecomment-2672463983 Content-Type: text/plain; charset=utf-8 I just tried ``` public class TestDBNameWithSlash { public static void main(String[] args) { try (Connection con = DriverManager.getConnection("jdbc:postgresql://localhost:5432/abc%2fdef", "test", "test")) { System.out.println(con.getCatalog()); } catch (SQLException e) { e.printStackTrace(); } } } ``` and it worked fine.