Files
ports/databases/xtrabackup84/files/patch-sql_auth_sql__authorization.cc
T
Oleksii Samorukov 65a2ef105c databases/xtrabackup84: fix build on FreeBSD-CURRENT
Fixes adopted from databases/mysql84-server

Reported by: Poudriere
2024-11-12 22:50:32 +01:00

14 lines
394 B
C++

--- sql/auth/sql_authorization.cc.orig 2024-08-08 10:30:27 UTC
+++ sql/auth/sql_authorization.cc
@@ -237,6 +237,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;
}