Files

14 lines
396 B
C++
Raw Permalink Normal View History

2024-07-31 10:05:50 +02:00
--- sql/auth/sql_authorization.cc.orig 2024-07-12 19:15:25 UTC
+++ sql/auth/sql_authorization.cc
2024-07-31 10:05:50 +02:00
@@ -7445,6 +7445,10 @@ bool operator==(const Role_id &a, const std::string &b
return tmp == b;
}
+bool operator==(const Role_id &a, const LEX_CSTRING &b) {
+ return a == to_string(b);
+}
+
bool operator==(const std::pair<Role_id, bool> &a, const std::string &b) {
return a.first == b;
}