Skip to content

Commit 1570ac6

Browse files
authored
Fall back to 'SQLite' when /version endpoint is unavailable (#53)
1 parent c106280 commit 1570ac6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

com.dbeaver.jdbc.driver.libsql/src/main/java/com/dbeaver/jdbc/driver/libsql/LibSqlDatabaseMetaData.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ private void readServerVersion() throws SQLException {
5252
serverVersion = IOUtils.readLine(is);
5353
}
5454
} catch (IOException e) {
55-
throw new SQLException(e);
55+
// Some libSQL providers (e.g. Turso's managed service) don't
56+
// expose a /version endpoint. Fall back to a static product
57+
// name so JDBC clients can still classify the database as
58+
// SQLite-compatible and pick a sensible dialect.
59+
serverVersion = "SQLite";
5660
}
5761
}
5862

0 commit comments

Comments
 (0)