Message-ID: From: "davecramer (@davecramer)" To: "pgjdbc/pgjdbc" Date: Wed, 23 Apr 2025 19:35:11 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3526: Set column name explicitely when using `current_database()` in queries In-Reply-To: References: List-Id: X-GitHub-Author-Login: davecramer X-GitHub-Comment-Id: 2056763507 X-GitHub-Comment-Type: review_comment X-GitHub-Commit: 532c217a5c7d5ee4b136873a9ad822330a761091 X-GitHub-Issue: 3526 X-GitHub-Path: pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: review_comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3526#discussion_r2056763507 Content-Type: text/plain; charset=utf-8 (on pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java) From what I can tell we check to see if the catalog is null before calling this function. Moot point: If we get a SQLException we should just throw it.