Skip to content

Commit

Permalink
fix(MySQL): Fixed MySQL constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 committed Jul 2, 2022
1 parent 009061c commit fd7a981
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ public class MySQL extends Database {

@Deprecated(forRemoval = true)
public MySQL(String hostname, int port, String username, String password) {
this(hostname, port, password, username, Optional.empty());
this(hostname, port, username, password, Optional.empty());
}

/**
* @param hostname MySQL hostname.
* @param port MySQL port.
* @param username MySQL username.
* @param password MySQL password.
* @param database MySQL database name.
*/
public MySQL(String hostname, int port, String username, String password, @NotNull Optional<String> database) {
this.hostname = hostname;
this.port = port;
Expand Down

0 comments on commit fd7a981

Please sign in to comment.