Changeset 7791 for temp/trunk


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

blank

Location:
temp/trunk
Files:
2 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; 
  • temp/trunk/html/shopping/confirm.php

    r7789 r7791  
    9292            $order_id = $objQuery->nextval("dtb_order","order_id"); 
    9393        }elseif (DB_TYPE == "mysql") { 
    94             $order_id = $objQuery->auto_increment("dtb_order","order_id"); 
     94            $order_id = $objQuery->get_auto_increment("dtb_order"); 
    9595        } 
    9696        $arrData["order_id"] = $order_id; 
Note: See TracChangeset for help on using the changeset viewer.