Changeset 997

Show
Ignore:
Timestamp:
11/06/2007 01:39:26 PM (13 months ago)
Author:
zombor
Message:

Explicitly set the fetch_type upon instantiation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Database_Mysql.php

    r975 r997  
    586586                        $this->current_row = 0; 
    587587                        $this->total_rows  = mysql_num_rows($this->result); 
     588                        $this->fetch_type = ($object === TRUE) ? 'mysql_fetch_object' : 'mysql_fetch_array'; 
    588589                } 
    589590                elseif (is_bool($result)) 
     
    601602                        } 
    602603                } 
     604 
    603605 
    604606                // Set result type