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 eb81337 commit f929109Copy full SHA for f929109
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.
@@ -316,7 +316,7 @@ else if (method.getName().equals("close")) {
316
return null;
317
}
318
else if (method.getName().equals("isClosed")) {
319
- return false;
+ return this.target.isClosed();
320
321
else if (method.getName().equals("getTargetConnection")) {
322
// Handle getTargetConnection method: return underlying Connection.
0 commit comments