diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-03-19 20:04:55 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2022-03-19 20:04:55 +0200 |
commit | 2789fba407433200df7aaed2282799a7585e8728 (patch) | |
tree | 6097283c78d622712386355a502dacfa26ee9125 | |
parent | af33efc048918c816d6ecef6a4d17acbc580334d (diff) | |
download | mariadb-git-2789fba407433200df7aaed2282799a7585e8728.tar.gz |
Silly centos7 old compiler
-rw-r--r-- | sql/sql_acl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index c82a25b2522..83a00e4bae9 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -148,12 +148,12 @@ public: Priv_spec(privilege_t access, bool revoke, bool deny=false): revoke{revoke}, deny{deny}, access{access}, spec_type{PRIV_TYPE::GLOBAL_PRIV}, - db({.str= nullptr, .length= 0}) + db({.str=nullptr, .length= 0}) {} Priv_spec(privilege_t access, bool revoke, const LEX_CSTRING &db, bool deny=false): revoke{revoke}, deny{deny}, access{access}, - spec_type{PRIV_TYPE::DATABASE_PRIV}, db{db} + spec_type{PRIV_TYPE::DATABASE_PRIV}, db({db.str, db.length}) { /* TODO(cvicentiu) hack */ if (!db.str) spec_type= PRIV_TYPE::GLOBAL_PRIV; |