mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-641: Ensure MyBatis "expectedConnectionTypeCode" is generated and matches valid database connections.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user