Skip to content

Commit 8de1894

Browse files
committed
Query bug fix
1 parent 50391fd commit 8de1894

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/databricks/jdbc/api/impl/DatabricksConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public boolean isValid(int timeout) throws SQLException {
421421
try (Statement stmt = createStatement()) {
422422
stmt.setQueryTimeout(timeout);
423423
// This is a lightweight query to check if the connection is valid
424-
stmt.execute("SELECT V");
424+
stmt.execute("SELECT VERSION()");
425425
return true;
426426
} catch (Exception e) {
427427
LOGGER.debug("Validation failed for isValid(): {}", e.getMessage());

0 commit comments

Comments
 (0)