MINOR SQLQuery without a FROM table should return empty query

This commit is contained in:
Stig Lindqvist 2011-09-27 10:18:23 +13:00
parent 37d197c52f
commit 4171015df1

View File

@ -458,6 +458,10 @@ class SQLQuery {
// TODO: Don't require this internal-state manipulate-and-preserve - let sqlQueryToString() handle the new syntax
$origFrom = $this->from;
if(!$this->from) {
return '';
}
// Build from clauses
foreach($this->from as $alias => $join) {
// $join can be something like this array structure