#6017: Can't select all rows in a oracle DB
---------------------------------------------------+------------------------
Reporter: CristianDeluxe | Owner: phishy
Type: Bug | Status: closed
Priority: Medium | Milestone: 1.2.x.x
Component: Oracle | Version: 1.2 Final
Severity: Normal | Resolution: wontfix
Keywords: oracle undefined offset dbo_oracle | Php_version: PHP 5
Cake_version: |
---------------------------------------------------+------------------------
Changes (by phishy):
* status: new => closed
* resolution: => wontfix
Comment:
CristianDeluxe,
The way I have implemented the Oracle driver for CakePHP does not allow
for SELECT *. In most cases it is not even necessary. Given your example:
$this->Portal->query('SELECT * FROM MI_FACTURA where rownum <= 2'))
This can easily be accomplished with:
$this->Portal->find('all', array('limit' => 2))
I apologize, it's just the way the current implementation works. It needs
the names of the fields in order to map them to the CakePHP ORM.
--
Ticket URL: <https://trac.cakephp.org/ticket/6017#comment:1>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---