We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6994afc commit 64b24e8Copy full SHA for 64b24e8
src/main/java/com/github/cshubhamrao/AUtDv2/db/DatabaseTasks.java
@@ -44,6 +44,14 @@ public class DatabaseTasks {
44
45
private static final java.util.logging.Logger logger = Log.logger;
46
47
+ static {
48
+ try {
49
+ Class.forName("org.sqlite.JDBC");
50
+ } catch (ClassNotFoundException ex) {
51
+ logger.log(Level.SEVERE, "Unable to Initialize SQLite Driver", ex);
52
+ }
53
54
+
55
public static Classwork fetchCW(int cwNo) {
56
String query = "SELECT * FROM " + Classwork.TABLE_NAME
57
+ " WHERE cw_no = " + cwNo + " ORDER BY rowid DESC;";
0 commit comments