ports/databases/mysql81-server/files/patch-sql_auth_sql__authorization.cc
Jochen Neumeister 7e5dafecce add databases/mysql81-server and databases/mysql81-client
Welcome MySQL81 to the Port Tree

Special thanks for help: fluffy, both
Sponsored by:	Netzkommune GmbH
2023-12-18 07:54:41 +01:00

13 lines
396 B
C++

--- sql/auth/sql_authorization.cc.orig 2023-06-21 07:52:10 UTC
+++ sql/auth/sql_authorization.cc
@@ -7437,6 +7437,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;
}