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)
{
if ($tables instanceof Expression) {
if ($tables instanceof ExpressionInterface) {
$tables = [$tables];
}
if (is_string($tables)) {