ZF-9449: Column named 0 (zero) moved out from select request

Description

Make request to table with column named 0 (zero).


$cols = array('col', '0', '1', '2', );
$select = $table->select();
$select->from($table, $cols);
echo $select->__toString();

Expected: SELECT table_name.col, table_name.0, table_name.1, table_name.2 FROM table_name Actual: SELECT table_name.col, table_name.1, table_name.2 FROM table_name

There is no column named 0 in request, but should be.

Column filtered in class Zend_Db_Select, function _tableCols().

Comments

No comments to display