No description provided.
'from' method in Select class can accept instance of Select object
Your current patch is incomplete.
What exactly is a use case you have, and what would the expected output look like?
Using this kind of test:
$selectsubselect = new Select;
$select = new Select;
Will produce SQL that looks like this (which is clearly wrong):
SELECT (SELECT "bar".* FROM "bar" WHERE "y" LIKE ?).* FROM (SELECT "bar".* FROM "bar" WHERE "y" LIKE ?)
This is because there is no alias. If you do this:
$select->from(array('x' => $selectsubselect));
on the other hand, you get this:
SELECT "x".* FROM (SELECT "bar".* FROM "bar" WHERE "y" LIKE ?) AS "x"
which works. That said, can you give me a good use case for not providing an alias with a subselect in from()?