* [error] add backtick.

This commit is contained in:
sunguangming
2025-01-16 16:28:02 +08:00
committed by 刘刚
parent a284a277b6
commit a030a3eadf
+1 -1
View File
@@ -887,7 +887,7 @@ class dbh
foreach($privList as $privSQL)
{
if(strpos($privSQL, '*.*') === false && strpos($privSQL, "$dbName.*") === false) continue; // 如果权限不是全局或者当前数据库的,跳过
if(strpos($privSQL, '*.*') === false && strpos($privSQL, "`$dbName`.*") === false) continue; // 如果权限不是全局或者当前数据库的,跳过
if(!preg_match('/GRANT (.*) ON (.+) TO/', $privSQL, $matches)) continue;
$privs = explode(',', $matches[1]);