GUACAMOLE-641: Ensure MyBatis "expectedConnectionTypeCode" is generated and matches valid database connections.
This commit is contained in:
1 parent
6ef951cd61
commit
eab80688cc
1 file changed
+7
+7
@@ -80,6 +80,13 @@ public class DynamicallyAuthenticatedDataSource extends PooledDataSource {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Force recalculation of expectedConnectionTypeCode. The
|
||||||
|
// PooledDataSource constructor accepting a single UnpooledDataSource
|
||||||
|
// will otherwise leave this value uninitialized, resulting in all
|
||||||
|
// connections failing to pass sanity checks and never being returned
|
||||||
|
// to the pool.
|
||||||
|
super.forceCloseAll();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in new issue
Block a user