Issues

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

Description

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();
$select->from('my_table')
    ->columns(array('column1'), false);

Expected query: SELECT "column1" FROM "my_table"

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

Using PDO_Mysql.

Comments

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2599