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

Issue Type: Bug Created: 2010-03-17T19:35:05.000+0000 Last Updated: 2012-11-20T21:38:06.000+0000 Status: Open Fix version(s): Reporter: Ilia (iliavlad) Assignee: None Tags: - Zend_Db_Select

Related issues: Attachments:


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

<pre class="highlight">
$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().


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.