On Mar 20, 2008, at 6:15 AM, jarmstrong wrote:

>
> Scott,
>
> 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'

Ah.  I've filed this as http://bugs.caucho.com/view.php?id=2541

Hopefully, it's an issue in the Quercus code and not in the mysql JDBC  
driver.  If it's in the mysql driver, it'll be a much harder problem  
to solve.

-- Scott

>
>
> 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++;
>>              }
>>      
>>      }
>>
> -- 
> View this message in context: 
> http://www.nabble.com/Quercus-fetch_field-tp16032989p16177887.html
> Sent from the Resin mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to