mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-04 08:54:20 +01:00
Fix the logic on determining whether connection is closed
This commit is contained in:
@@ -31,7 +31,6 @@ public abstract class LimboConnection implements Connection {
|
||||
public LimboConnection(String url, String filePath, Properties properties) throws SQLException {
|
||||
this.database = open(url, filePath, properties);
|
||||
this.connectionPtr = this.database.connect();
|
||||
this.closed = true;
|
||||
}
|
||||
|
||||
private static AbstractDB open(String url, String filePath, Properties properties)
|
||||
|
||||
@@ -88,8 +88,7 @@ public class JDBC4Connection extends LimboConnection {
|
||||
|
||||
@Override
|
||||
public boolean isClosed() throws SQLException {
|
||||
// TODO
|
||||
return false;
|
||||
return super.isClosed();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user