ZF2-574: Not prefixing columns with table name creates invalid query


The columns() method of Sql\Select has a second parameter $prefixColumnsWithTable. When that is set to false, an invalid query is created.

// in an AbstractTableGateway
$select = $this->select();
    ->columns(array('column1'), false);

Expected query: SELECT "column1" FROM "my_table"

Actual query: SELECT ."column1" FROM "my_table"

Using PDO_Mysql.


This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: