This commit is contained in:
2021-07-06 17:57:03 +08:00
parent d528e4d603
commit 40a2331626
3 changed files with 3 additions and 80 deletions
+1 -2
View File
@@ -16,7 +16,6 @@ use Database\ActiveRecord;
use Database\Condition\MathematicsCondition;
use Database\Query;
use Exception;
use JetBrains\PhpStorm\Pure;
use ReflectionException;
use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake;
@@ -138,7 +137,7 @@ trait QueryTrait
*/
public function getTable(): string
{
return $this->modelClass::getTable();
return '`' . $this->modelClass::getDbName() . '`' . $this->modelClass::getTable();
}