We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fbbc50 commit 9d37fdaCopy full SHA for 9d37fda
1 file changed
src/main/java/com/databricks/jdbc/api/impl/DatabricksConnection.java
@@ -421,7 +421,7 @@ public boolean isValid(int timeout) throws SQLException {
421
try (Statement stmt = createStatement()) {
422
stmt.setQueryTimeout(timeout);
423
// This is a lightweight query to check if the connection is valid
424
- stmt.execute("SELECT V");
+ stmt.execute("SELECT VERSION()");
425
return true;
426
} catch (Exception e) {
427
LOGGER.debug("Validation failed for isValid(): {}", e.getMessage());
0 commit comments