Index: temp/trunk/data/class/SC_Query.php
===================================================================
--- temp/trunk/data/class/SC_Query.php	(revision 7789)
+++ temp/trunk/data/class/SC_Query.php	(revision 7791)
@@ -410,10 +410,18 @@
 	}
 	
+	// auto_increment¤ò¼èÆÀ¤¹¤ë
 	function get_auto_increment($table_name){
+		// ¥í¥Ã¥¯¤¹¤ë
+		$this->BEGIN();
+		
+		// ¼¡¤ÎIncrement¤ò¼èÆÀ
 		$arrRet = $this->conn->query("SHOW TABLE STATUS LIKE $table_name");
-		
 		$auto_inc_no = $arrRet["Auto_increment"];
 		
+		// ÃÍ¤ò¥«¥¦¥ó¥È¥¢¥Ã¥×¤·¤Æ¤ª¤¯
 		$this->conn->query("ALTER TABLE $table_name AUTO_INCREMENT=?" , $auto_inc_no + 1);
+		
+		// ²ò½ü¤¹¤ë
+		$this->COMMIT();
 		
 		return $auto_inc_no;
