We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e7d73 commit a33b7bbCopy full SHA for a33b7bb
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/SingleConnectionDataSource.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2017 the original author or authors.
+ * Copyright 2002-2020 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -322,7 +322,7 @@ else if (method.getName().equals("close")) {
322
return null;
323
}
324
else if (method.getName().equals("isClosed")) {
325
- return false;
+ return this.target.isClosed();
326
327
else if (method.getName().equals("getTargetConnection")) {
328
// Handle getTargetConnection method: return underlying Connection.
0 commit comments