Changeset 5776 for temp/trunk/html/admin


Ignore:
Timestamp:
2006/09/25 17:23:51 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/system/bkup.php

    r5775 r5776  
    273273    $arrColList = lfGetColumnList($table_name); 
    274274    $ret = ""; 
    275     foreach($arrColList['defval'] as $key => $val){ 
     275     
     276    foreach($arrColList['col_def'] as $key => $val){ 
    276277        if (substr($val,0,9) == 'nextval(\'') { 
    277             $col = $arrColList['attname'][$key]; 
     278            $col = $arrColList['col_name'][$key]; 
    278279            $autoVal = lfGetAutoIncrementVal($table_name, $col); 
    279280            $ret .= "$table_name,$col,$autoVal\n"; 
     
    299300                ORDER BY fldnum"; 
    300301        $arrRet = $objQuery->getAll($sql, array($table_name)); 
     302        $arrRet['col_def'] = $arrColList['defval']; 
     303        $arrRet['col_name'] = $arrColList['attname']; 
    301304    }else if(DB_TYPE == "mysql"){ 
    302305        $sql = "SHOW COLUMNS FROM $table_name"; 
    303306        $arrRet = $objQuery->getAll($sql); 
    304     } 
     307        $arrRet['col_def'] = $arrColList['Field']; 
     308        $arrRet['col_name'] = $arrColList['Extra']; 
     309    } 
     310     
     311    $arrRet = sfSwapArray($arrRet); 
    305312     
    306313    return sfSwapArray($arrRet); 
Note: See TracChangeset for help on using the changeset viewer.