Skip to content
Permalink
Browse files

Update MariaDbPoolDataSource.java

(cherry picked from commit eac3d31)
  • Loading branch information...
rbhawsar authored and rusher committed Jun 15, 2018
1 parent 9f91ca4 commit f519f0751bb8026f2b9a945d12c7bf66d220441c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/mariadb/jdbc/MariaDbPoolDataSource.java
@@ -150,7 +150,7 @@ public void setPassword(String password) throws SQLException {
* @return the port number
*/
public int getPort() {
if (port != 0) return port;
if (port != null && port != 0) return port;
return urlParser != null ? urlParser.getHostAddresses().get(0).port : 3306;
}

0 comments on commit f519f07

Please sign in to comment.
You can’t perform that action at this time.