修复checkValid问题

This commit is contained in:
redkale
2023-04-18 08:38:20 +08:00
parent 021bf8ce51
commit d56af6043d

View File

@@ -2858,7 +2858,11 @@ public class DataJdbcSource extends AbstractDataSqlSource {
if (semaphore.tryAcquire()) {
try {
conn = driver.connect(url, connectAttrs);
conn.setClientInfo(clientInfo);
if (conn.getClientInfo() != null) {
conn.getClientInfo().put("version", clientInfo.getProperty("version"));
} else {
conn.setClientInfo(clientInfo);
}
} catch (SQLException ex) {
throw new SourceException(ex);
}