User:
Title: SQLITE BUG?
Content:
public static void preInit() {
String query = "SELECT * FROM currencies WHERE MANDT=" + Main.MANDT_S;
ResultSet result = SQLUtil.executeQuery(query);
try {
while (result.next()) {
String name = result.getString("name");
Currency c = getOrCreate(name);
c.id = result.getInt("symbol");
c.digits = result.getInt("digits");
c.name = name;
c.enabled = result.getBoolean("enabled");
if (c.enabled) {
c.enable();
}
}
} catch (SQLException e) {
e.printStackTrace();
}
System.out.println("Loaded Currencies for MANDT " + Main.MANDT_S);
}
Edit |
Back