From 1b94adfb2be6f51115aa23fcf3e4d489c2f865ff Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 7 Dec 2017 14:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 7f70b736..9eef65cb 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -727,7 +727,7 @@ class Query } } } - if (isset($alias)) { + if (isset($alias) && $table != $alias) { if (isset($this->options['alias'][$table])) { $table = $table . '@think' . uniqid(); }