picodb: Table::buildSelectQuery() should default columns to current table
This commit is contained in:
parent
e3b9b2ce8f
commit
64f589f759
|
|
@ -686,7 +686,7 @@ class Table
|
|||
public function buildSelectQuery()
|
||||
{
|
||||
if (empty($this->sqlSelect)) {
|
||||
$this->columns = $this->db->escapeIdentifierList($this->columns);
|
||||
$this->columns = $this->db->escapeIdentifierList($this->columns, $this->name);
|
||||
$this->sqlSelect = ($this->distinct ? 'DISTINCT ' : '').(empty($this->columns) ? '*' : implode(', ', $this->columns));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue