Changeset 5683 for temp/trunk/html/admin


Ignore:
Timestamp:
2006/09/25 12:14:24 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

    r5682 r5683  
    250250function lfGetAutoIncrement($table_name){ 
    251251    $arrColList = lfGetColumnList($table_name); 
     252    $ret = ""; 
    252253     
    253254    foreach($arrColList['defval'] as $key => $val){ 
    254255        if (substr($val,0,9) == 'nextval(\'') { 
    255             sfprintr($val); 
    256         }        
    257     } 
    258      
     256            $autoVal = lfGetAutoIncrementVal($table_name, $val); 
     257            $ret .= "$table_name,$autoVal"; 
     258        } 
     259    } 
     260     
     261    sfprintr($ret); 
     262    return $ret; 
    259263} 
    260264 
     
    280284 
    281285// ¼«Æ°ºÎÈÖ·¿¤ÎÃͤò¼èÆÀ¤¹¤ë 
    282 function lfGetAutoIncrementVal($table_name){ 
     286function lfGetAutoIncrementVal($table_name , $seqtable = ""){ 
    283287    $objQuery = new SC_Query(); 
    284288 
     
    294298                    i.indrelid = c.oid AND 
    295299                    i.indexrelid = ci.oid AND 
    296                     c.relname = ? 
     300                    c.relname = ? AND 
     301                    ci.relname = ? 
    297302                "; 
    298         $arrRet = $objQuery->getAll($sql, array($table_name)); 
     303        $arrRet = $objQuery->getAll($sql, array($table_name, $seqtable)); 
    299304    } 
    300305    return $arrRet; 
Note: See TracChangeset for help on using the changeset viewer.