Skip to content

Commit

Permalink
update method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreampie committed Aug 20, 2018
1 parent a11a5cc commit cb2201b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public C3p0DataSourceProvider(String dsName) {
this.automaticTestTable = prop.get("c3p0." + dsName + ".testOnBorrow", C3P0Defaults.automaticTestTable());

this.preferredTestQuery = prop.get("c3p0." + dsName + ".preferredTestQuery", this.dialect.validQuery());
buidDataSource();
buildDataSource();
}

public C3p0DataSourceProvider(String url, String user, String password) {
Expand Down Expand Up @@ -130,10 +130,10 @@ public C3p0DataSourceProvider(String url, String user, String password, String d
this.dialect = DialectFactory.get(dbType);
this.driverClass = driverClass == null ? dialect.driverClass() : driverClass;
this.showSql = showSql;
buidDataSource();
buildDataSource();
}

private void buidDataSource() {
private void buildDataSource() {
//init druid
ds = new ComboPooledDataSource();
ds.setJdbcUrl(url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public DruidDataSourceProvider(String dsName) {
this.maxPoolPreparedStatementPerConnectionSize = prop.getInt("druid." + dsName + ".maxPoolPreparedStatementPerConnectionSize", 10);

this.validationQuery = prop.get("druid." + dsName + ".validationQuery", this.dialect.validQuery());
buidDataSource();
buildDataSource();
}

public DruidDataSourceProvider(String url, String user, String password) {
Expand All @@ -133,10 +133,10 @@ public DruidDataSourceProvider(String url, String user, String password, String
this.dialect = DialectFactory.get(dbType);
this.driverClass = driverClass == null ? dialect.driverClass() : driverClass;
this.showSql = showSql;
buidDataSource();
buildDataSource();
}

private void buidDataSource() {
private void buildDataSource() {
//init druid
ds = new DruidDataSource();
ds.setUrl(url);
Expand Down

0 comments on commit cb2201b

Please sign in to comment.