Skip to content

Commit 2cfa440

Browse files
committed
改进
1 parent ce10ff9 commit 2cfa440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ protected function getJoinTable($join, &$alias = null)
701701
}
702702
}
703703

704-
if (isset($alias)) {
704+
if (isset($alias) && $table != $alias) {
705705
if (isset($this->options['alias'][$table])) {
706706
$table = $table . '@think' . uniqid();
707707
}

0 commit comments

Comments
 (0)