fix bug: when use a subquery

This commit is contained in:
Soul11201
2018-05-14 18:04:53 +08:00
committed by GitHub
parent 0fbec30bbc
commit e47ac0c4a4

View File

@ -748,7 +748,7 @@ PATTERN;
*/ */
public function from($tables) public function from($tables)
{ {
if ($tables instanceof Expression) { if ($tables instanceof ExpressionInterface) {
$tables = [$tables]; $tables = [$tables];
} }
if (is_string($tables)) { if (is_string($tables)) {