Skip to content

Commit

Permalink
JDBDT: fix - #47
Browse files Browse the repository at this point in the history
  • Loading branch information
edrdo committed Dec 9, 2018
1 parent 694d816 commit b35f005
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/org/jdbdt/JDBDT.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@ public static DB database(String url) throws SQLException {
*
* <p>Calling this method is shorthand for:<br>
* &nbsp;&nbsp;&nbsp;&nbsp;
* <code>database( DriverManager.getConnection(url, user, pass) )</code>.
* <code>database( DriverManager.getConnection(url, user, password) )</code>.
* </p>
*
* @param url Database URL.
* @param user Database user.
* @param pass Database password.
* @param password Database password.
* @return A new database handle for the given connection.
* @throws SQLException If the connection cannot be created.
* @see #database(Connection)
* @see DriverManager#getConnection(String, String, String)
*/
public static DB database(String url, String user, String pass) throws SQLException {
return database(DriverManager.getConnection(url, user, pass));
public static DB database(String url, String user, String password) throws SQLException {
return database(DriverManager.getConnection(url, user, password));
}

/**
Expand Down Expand Up @@ -141,15 +141,15 @@ public static DB database(javax.sql.DataSource xds) throws SQLException {
* </p>
*
* @param xds {@link javax.sql.DataSource} instance.
* @param user User.
* @param password Password.
* @param user Database user.
* @param password Database password.
* @return A new database handle for the connection.
* @throws SQLException If the connection cannot be created.
* @see #database(Connection)
* @see javax.sql.DataSource#getConnection(String, String)
*/
public static DB database(javax.sql.DataSource xds, String user, String password) throws SQLException {
return database(xds.getConnection());
return database(xds.getConnection(user, password));
}

/**
Expand Down

0 comments on commit b35f005

Please sign in to comment.