mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
case-insensitivity for SessionPool
This commit is contained in:
@@ -108,16 +108,8 @@ private:
|
||||
Poco::SharedPtr<Connector> ptrSI;
|
||||
SessionInfo(Connector* pSI);
|
||||
};
|
||||
|
||||
struct ILT
|
||||
{
|
||||
bool operator() (const std::string& s1, const std::string& s2) const
|
||||
{
|
||||
return Poco::icompare(s1, s2) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
typedef std::map<std::string, SessionInfo, ILT> Connectors;
|
||||
typedef std::map<std::string, SessionInfo, Poco::CILess> Connectors;
|
||||
Connectors _connectors;
|
||||
Poco::FastMutex _mutex;
|
||||
};
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "Poco/Data/Data.h"
|
||||
#include "Poco/Data/Session.h"
|
||||
#include "Poco/Data/SessionPool.h"
|
||||
#include "Poco/HashMap.h"
|
||||
#include "Poco/String.h"
|
||||
#include "Poco/Mutex.h"
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
/// Shuts down all the held pools.
|
||||
|
||||
private:
|
||||
typedef HashMap<std::string, AutoPtr<SessionPool> > SessionPoolMap;
|
||||
typedef std::map<std::string, AutoPtr<SessionPool>, Poco::CILess> SessionPoolMap;
|
||||
|
||||
SessionPoolContainer(const SessionPoolContainer&);
|
||||
SessionPoolContainer& operator = (const SessionPoolContainer&);
|
||||
|
||||
Reference in New Issue
Block a user