public function render() { $where = parent::render(); if ($where) { return ' WHERE ' . $where; } }
public function render() { if ($this->data) { return ' HAVING ' . parent::render(); } }
function testSql_LogicallistEmpty() { $element = array('foo', 'bar', 'baz'); $list = new A_Sql_Logicallist(); $this->assertEqual($list->render(), ''); }