Changeset 5776 for temp/trunk/html/admin
- Timestamp:
- 2006/09/25 17:23:51 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/system/bkup.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/system/bkup.php
r5775 r5776 273 273 $arrColList = lfGetColumnList($table_name); 274 274 $ret = ""; 275 foreach($arrColList['defval'] as $key => $val){ 275 276 foreach($arrColList['col_def'] as $key => $val){ 276 277 if (substr($val,0,9) == 'nextval(\'') { 277 $col = $arrColList[' attname'][$key];278 $col = $arrColList['col_name'][$key]; 278 279 $autoVal = lfGetAutoIncrementVal($table_name, $col); 279 280 $ret .= "$table_name,$col,$autoVal\n"; … … 299 300 ORDER BY fldnum"; 300 301 $arrRet = $objQuery->getAll($sql, array($table_name)); 302 $arrRet['col_def'] = $arrColList['defval']; 303 $arrRet['col_name'] = $arrColList['attname']; 301 304 }else if(DB_TYPE == "mysql"){ 302 305 $sql = "SHOW COLUMNS FROM $table_name"; 303 306 $arrRet = $objQuery->getAll($sql); 304 } 307 $arrRet['col_def'] = $arrColList['Field']; 308 $arrRet['col_name'] = $arrColList['Extra']; 309 } 310 311 $arrRet = sfSwapArray($arrRet); 305 312 306 313 return sfSwapArray($arrRet);
Note: See TracChangeset
for help on using the changeset viewer.
