diff --git a/src/AbstractQuery.php b/src/AbstractQuery.php index f404b95..a229ca9 100644 --- a/src/AbstractQuery.php +++ b/src/AbstractQuery.php @@ -8,7 +8,7 @@ */ namespace Aura\SqlQuery; -use Aura\SqlQuery\Common\SubselectInterface; +use Aura\SqlQuery\Common\SelectInterface; use Aura\SqlQuery\Common\QuoterInterface; /** @@ -350,7 +350,7 @@ protected function rebuildCondAndBindValues($cond, array $bind_values) } $bind_value = array_shift($bind_values); - if ($bind_value instanceof SubselectInterface) { + if ($bind_value instanceof SelectInterface) { $parts[$key] = $bind_value->getStatement(); $this->bind_values = array_merge( $this->bind_values, diff --git a/src/Common/Select.php b/src/Common/Select.php index 4734f36..2341bc9 100644 --- a/src/Common/Select.php +++ b/src/Common/Select.php @@ -18,7 +18,7 @@ * @package Aura.SqlQuery * */ -class Select extends AbstractQuery implements SelectInterface, SubselectInterface +class Select extends AbstractQuery implements SelectInterface { use WhereTrait; use LimitOffsetTrait { limit as setLimit; offset as setOffset; } diff --git a/src/Common/SubselectInterface.php b/src/Common/SubselectInterface.php deleted file mode 100644 index e12ec0f..0000000 --- a/src/Common/SubselectInterface.php +++ /dev/null @@ -1,39 +0,0 @@ -