Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Zend_Db_Table
-
Labels:None
Description
Zend_Db_Table_Select should include its own table name in the FROM section, as it's its goal ![]()
Actually it does not add the actual table to the from clause.
actual code :
public function setTable(Zend_Db_Table_Abstract $table) { $this->_adapter = $table->getAdapter(); $this->_info = $table->info(); return $this; }
patch could be :
public function setTable(Zend_Db_Table_Abstract $table) { $this->_adapter = $table->getAdapter(); $this->_info = $table->info(); $this->from($this->_info[Zend_Db_Table_Abstract::NAME]); return $this; }
Patch attached