mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
overload that can be used to retrieve an existing connection pool. Modified ResetConnectionPool () to skip free slots in the pool and to close pooled connections that are not in use. Pooled connections that are in use are now marked as non-pooled so that they are no longer returned to the pool when they are closed. Fixes bug #443131. * SqlConnection.cs: In Close, also remove reference to pool. In Open, set TdsConnection.Pooling to false for a non-pooled connection. Fixed ClearAllPools to no longer create a new connection for each pool. In ClearPool, perform a lookup of the pool to clear using the connectionstring as the pool field may refer to another pool (as the connectionstring may have changed). * SqlConnectionTest.cs: Added tests for ClearPool and ClearAllPools. svn path=/trunk/mcs/; revision=118308