Commit 8709f50c authored by Daniel Kim's avatar Daniel Kim
Browse files

final changes

parent 42388771
......@@ -800,10 +800,10 @@ public class ClientApplication {
public static boolean authDatabase() {
String server, pwd, db;
// System.out.print("Enter the SQL server to connect to: ");
// server = input.nextLine();
System.out.print("Enter the SQL server to connect to: ");
server = input.nextLine();
// server = "127.0.0.1:3306";
server = "marmoset03.shoshin.uwaterloo.ca";
// server = "marmoset03.shoshin.uwaterloo.ca";
System.out.print("Enter username for the SQL server: ");
User = input.nextLine();
pwd = new String(System.console().readPassword("Enter password for the SQL server: "));
......@@ -1387,7 +1387,7 @@ public class ClientApplication {
int height = rs.getInt(4);
String biography = rs.getString(5);
String birthDetails = rs.getString(6);
String dateOfBirth = rs.getTimestamp(7).toString() != "" ? rs.getTimestamp(7).toString().split(" ")[0].replace('-', '/') : "";
String dateOfBirth = rs.getTimestamp(7) != null ? rs.getTimestamp(7).toString().split(" ")[0].replace('-', '/') : "";
String deadPersonID = "";
String dateOfDeath = "";
String placeOfDeath = "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment