Skip to content

Commit

Permalink
fix datasource bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki authored and kiki committed Nov 26, 2013
1 parent 95b7631 commit dee9308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>

<packaging>jar</packaging>
<name>druid</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/alibaba/druid/pool/DruidDataSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ private DruidPooledConnection getConnectionInternal(long maxWait) throws SQLExce

String errorMessage = buf.toString();

if (this.createError == null) {
if (this.createError != null) {
throw new GetConnectionTimeoutException(errorMessage, createError);
} else {
throw new GetConnectionTimeoutException(errorMessage);
Expand Down

0 comments on commit dee9308

Please sign in to comment.