mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
4940 Fix SQLiteDBConnect
This commit is contained in:
parent
6e87cf2aec
commit
cde9c38080
@ -37,6 +37,7 @@ import java.util.logging.Level;
|
|||||||
public class SQLiteDBConnect implements AutoCloseable {
|
public class SQLiteDBConnect implements AutoCloseable {
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(SQLiteDBConnect.class.getName());
|
private static final Logger logger = Logger.getLogger(SQLiteDBConnect.class.getName());
|
||||||
|
private static final int STMT_EXEC_TIMEOUT_SECS = 30;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs an abstraction that loads a given SQLite driver, establishes a
|
* Constructs an abstraction that loads a given SQLite driver, establishes a
|
||||||
@ -60,7 +61,7 @@ public class SQLiteDBConnect implements AutoCloseable {
|
|||||||
}
|
}
|
||||||
conn = DriverManager.getConnection(sUrl);
|
conn = DriverManager.getConnection(sUrl);
|
||||||
statement = conn.createStatement();
|
statement = conn.createStatement();
|
||||||
statement.setQueryTimeout(iTimeout);
|
statement.setQueryTimeout(STMT_EXEC_TIMEOUT_SECS);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user