Changeset 7791 for temp/trunk/data


Ignore:
Timestamp:
2006/11/08 15:59:14 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_Query.php

    r7789 r7791  
    410410    } 
    411411     
     412    // auto_increment¤ò¼èÆÀ¤¹¤ë 
    412413    function get_auto_increment($table_name){ 
     414        // ¥í¥Ã¥¯¤¹¤ë 
     415        $this->BEGIN(); 
     416         
     417        // ¼¡¤ÎIncrement¤ò¼èÆÀ 
    413418        $arrRet = $this->conn->query("SHOW TABLE STATUS LIKE $table_name"); 
    414          
    415419        $auto_inc_no = $arrRet["Auto_increment"]; 
    416420         
     421        // Ãͤò¥«¥¦¥ó¥È¥¢¥Ã¥×¤·¤Æ¤ª¤¯ 
    417422        $this->conn->query("ALTER TABLE $table_name AUTO_INCREMENT=?" , $auto_inc_no + 1); 
     423         
     424        // ²ò½ü¤¹¤ë 
     425        $this->COMMIT(); 
    418426         
    419427        return $auto_inc_no; 
Note: See TracChangeset for help on using the changeset viewer.