|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 2541 | minor | always | 03-20-08 08:41 | 05-29-08 17:21 | |
|
|
|||||
| Reporter: | ferg | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 3.1.5 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 3.2.0 | ||
|
|
|||||
| Summary: | 0002541: mysql fetch_field with DESCRIBE | ||||
| Description: |
(rep by jarmstrong) I found the issue finally the metadata is not being returned for DESCRIBE queries. So the part I haven't determined yet. Is metadata handled or ignored for differnt SQL Statement types in Quercus? The ORM mapping within CakePHP relies heavily on the metadata being returned from describe statements. ** After some weird testing I just found the problem with the metadata not being returned. 1) *Works* 'SELECT * FROM users' 2) *Fails* 'DESCRIBE users' PHP Code. function resultSet(&$results) { $this->results =& $results; $this->map = array(); $num_fields = mysqli_num_fields($results); $index = 0; $j = 0; while ($j < $num_fields) { $column = mysqli_fetch_field_direct($results, $j); if (!empty($column->table)) { $this->map[$index++] = array($column->table, $column->name); } else { $this->map[$index++] = array(0, $column->name); } $j++; } } |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||