In a parse tree with a SELECT without FROM (something like
SELECT function(foo, bar);
), a FROM is added in php-sql-creator.
Solution:
split the FROM clause off in processSelectStatement() as is the
case with the other clauses (WHERE, GROUP, ORDER...)
Code:
protected function processSelectStatement($parsed) {
$sql = $this->processSELECT($parsed['SELECT']);
if (isset($parsed['FROM'])) {
$sql .= " " . $this->processFROM($parsed['FROM']);
}
Original issue reported on code.google.com by adrian.p...@googlemail.com on 14 Dec 2012 at 3:07
Original issue reported on code.google.com by
adrian.p...@googlemail.com
on 14 Dec 2012 at 3:07