diff options
| author | Adam <Adam@anope.org> | 2016-10-17 18:33:55 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-10-17 18:33:55 -0400 |
| commit | 22d166fd4e98b67cac7103b48801fb95a0179f01 (patch) | |
| tree | 300b00bd52c5d3a26978bfe23bbdc2adc9c0fa26 /include | |
| parent | 1ba242179fee46583098f48421af39ce9a8985a1 (diff) | |
Address casemapping issues in sqlite/mysql
Diffstat (limited to 'include')
| -rw-r--r-- | include/anope.h | 2 | ||||
| -rw-r--r-- | include/hashcomp.h | 1 | ||||
| -rw-r--r-- | include/modules/sql.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h index 49e7c7ddc..dbaebd573 100644 --- a/include/anope.h +++ b/include/anope.h @@ -345,6 +345,8 @@ namespace Anope bool operator()(const string &s1, const string &s2) const; }; + extern Anope::string transform(const Anope::string &); + template<typename T> using map = std::map<string, T, ci::less>; template<typename T> using multimap = std::multimap<string, T, ci::less>; template<typename T> using hash_map = std::unordered_map<string, T, hash_ci, compare_ci>; diff --git a/include/hashcomp.h b/include/hashcomp.h index d246bfd2b..c9fa77f61 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -160,6 +160,7 @@ namespace locale { extern std::locale generate(const std::string &); extern int compare(const std::string &, const std::string &); extern long hash(const std::string &); +extern std::string transform(const std::string &); #endif diff --git a/include/modules/sql.h b/include/modules/sql.h index 6770f407e..263b99fd1 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -205,6 +205,7 @@ namespace SQL virtual std::vector<Query> CreateTable(const Anope::string &prefix, Serialize::TypeBase *) anope_abstract; virtual std::vector<Query> AlterTable(const Anope::string &, Serialize::TypeBase *, Serialize::FieldBase *) anope_abstract; virtual std::vector<Query> CreateIndex(const Anope::string &table, const Anope::string &field) anope_abstract; + virtual Query SelectFind(const Anope::string &table, const Anope::string &field) anope_abstract; virtual Query BeginTransaction() anope_abstract; virtual Query Commit() anope_abstract; |
