* [highgo] Fix table like 't1.id'

This commit is contained in:
朱金勇
2025-12-02 16:43:20 +08:00
committed by sunhao
parent 069ba765e2
commit 1da213fb3f
+1 -1
View File
@@ -2842,7 +2842,7 @@ class baseSQL
if((is_string($ids) && $ids === '') || (is_array($ids) && empty($ids)))
{
$pattern = '/\s+(?:`([^`]+)`|"([^"]+)"|(\w+))\s*$/i';
$pattern = '/\s+(?:(?:[a-zA-Z0-9]+\.)?|)(?:`([^`]+)`|"([^"]+)"|(\w+))\s*$/i';
$replacement = ' 1=1 ';
$this->sql = preg_replace($pattern, $replacement, $this->sql);