Example #1
0
 function &FetchField($offset = -1)
 {
     $o = new ADOFieldObject();
     $o->name = @db2_field_name($this->_queryID, $offset);
     $o->type = @db2_field_type($this->_queryID, $offset);
     $o->max_length = db2_field_width($this->_queryID, $offset);
     if (ADODB_ASSOC_CASE == 0) {
         $o->name = strtolower($o->name);
     } else {
         if (ADODB_ASSOC_CASE == 1) {
             $o->name = strtoupper($o->name);
         }
     }
     return $o;
 }
Example #2
0
 public static function getColumnMeta($index, $sql)
 {
     if ($sql && $index >= 0) {
         $newmeta = array();
         $newmeta["name"] = db2_field_name($sql, $index);
         $newmeta["native_type"] = db2_field_type($sql, $index);
         $newmeta["len"] = db2_field_width($sql, $index);
         return $newmeta;
     }
     return false;
 }