Index: /temp/trunk/html/admin/products/product.php
===================================================================
--- /temp/trunk/html/admin/products/product.php	(revision 9410)
+++ /temp/trunk/html/admin/products/product.php	(revision 9412)
@@ -346,4 +346,11 @@
 			$sqlval['product_id'] = $product_id;
 		}
+		
+		// dtb_products_class ¤Î¥«¥é¥à¤ò¼èÆÀ
+		
+		
+		// ¥³¥Ô¡¼¾¦ÉÊ¤Î¾ì¹ç¤Ë¤Ïµ¬³Ê¤â¥³¥Ô¡¼¤¹¤ë
+		"INSERT INTO dtb_pSELECT * FROM dtb_products_class WHERE product_id = ? ORDER BY product_class_id";
+		
 
 	} else {
Index: /temp/trunk/data/lib/slib.php
===================================================================
--- /temp/trunk/data/lib/slib.php	(revision 9325)
+++ /temp/trunk/data/lib/slib.php	(revision 9412)
@@ -99,4 +99,12 @@
 	// Àµ¾ï¤ËÀÜÂ³¤µ¤ì¤Æ¤¤¤ë¾ì¹ç
 	if(!$objQuery->isError()) {
+		$arrRet = sfGetColumnList($table_name, $objQuery);
+		if(count($arrRet) > 0) {
+			if(!in_array($col_name, $arrRet)){
+				return true;
+			}
+		}
+
+		/*
 		list($db_type) = split(":", $dsn);
 		// postgresql¤Èmysql¤È¤Ç½èÍý¤òÊ¬¤±¤ë
@@ -118,6 +126,5 @@
 			}
 		}else if ($db_type == "mysql") {
-			$sql = "SHOW COLUMNS FROM $table_name";
-			$arrRet = $objQuery->getAll($sql);
+			$arrRet = sfGetColumnList($table_name, $objQuery);
 			if(count($arrRet) > 0) {
 				if(!in_array($col_name, $arrRet)){
@@ -126,4 +133,5 @@
 			}
 		}
+		*/
 	}
 	
@@ -135,4 +143,21 @@
 	
 	return false;
+}
+
+// ¥Æ¡¼¥Ö¥ë¤Î¥«¥é¥à°ìÍ÷¤ò¼èÆÀ¤¹¤ë
+function sfGetColumnList($table_name, $objQuery = ""){
+	if($objQuery == "") $objQuery = new SC_Query();
+	$arrRet = array();
+	
+	// postgresql¤Èmysql¤È¤Ç½èÍý¤òÊ¬¤±¤ë
+	if (DB_TYPE == "pgsql") {
+		$sql = "SELECT a.attname FROM pg_class c, pg_attribute a WHERE c.relname=? AND c.oid=a.attrelid AND a.attnum > 0 ORDER BY a.attnum";
+		$arrRet = $objQuery->getAll($sql, array($table_name));
+	}else if (DB_TYPE == "mysql") {
+		$sql = "SHOW COLUMNS FROM $table_name";
+		$arrRet = $objQuery->getAll($sql);
+	}
+	
+	return $arrRet;
 }
 
