Index: /temp/trunk/html/install/index.php
===================================================================
--- /temp/trunk/html/install/index.php	(revision 6261)
+++ /temp/trunk/html/install/index.php	(revision 6262)
@@ -533,6 +533,9 @@
 		$options['debug'] = PEAR_DB_DEBUG;
 		$objDB = DB::connect($dsn, $options);
-		// ÀÜÂ³¥¨¥é¡¼
-		if(PEAR::isError($objDB)) {
+		// ÀÜÂ³À®¸ù
+		if(!PEAR::isError($objDB)) {
+			// ¥Ç¡¼¥¿¥Ù¡¼¥¹¥Ð¡¼¥¸¥ç¥ó¾ðÊó¤Î¼èÆÀ
+			$objPage->tpl_db_version = sfGetDBVersion($dsn);			
+		} else {
 			$objErr->arrErr['all'] = ">> " . $objDB->message . "<br>";
 			// ¥¨¥é¡¼Ê¸¤ò¼èÆÀ¤¹¤ë
@@ -540,18 +543,4 @@
 			$objErr->arrErr['all'].= $arrKey[0] . "<br>";
 			gfPrintLog($objDB->userinfo, "./temp/install.log");
-		} else {
-			if($arrRet['db_type'] == 'mysql') {
-				$arrRet = $objDB->getAll("SHOW VARIABLES");
-				foreach($arrRet as $array) {
-					if($array[0] == 'version') {
-						$objPage->tpl_db_version = "MySQL " . $array[1];
-					}
-				}
-			}
-			if($arrRet['db_type'] == 'pgsql') {
-				$arrRet = $objDB->getAll("select version()");
-				$arrLine = split(" " , $arrRet[0][0]);
-				$objPage->tpl_db_version = $arrLine[0] . " " . $arrLine[1];
-			}
 		}
 	}
Index: /temp/trunk/data/class/SC_DbConn.php
===================================================================
--- /temp/trunk/data/class/SC_DbConn.php	(revision 6260)
+++ /temp/trunk/data/class/SC_DbConn.php	(revision 6262)
@@ -20,5 +20,4 @@
 	var $dsn;
 	var $err_disp = true;
-
 	
 	// ¥³¥ó¥¹¥È¥é¥¯¥¿
Index: /temp/trunk/data/lib/slib.php
===================================================================
--- /temp/trunk/data/lib/slib.php	(revision 6252)
+++ /temp/trunk/data/lib/slib.php	(revision 6262)
@@ -20,4 +20,25 @@
 // ¥¢¥Ã¥×¥Ç¡¼¥È¤ÇÀ¸À®¤µ¤ì¤¿PHP¤òÆÉ¤ß½Ð¤¹
 sfLoadUpdateModule();
+
+/* ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥Ð¡¼¥¸¥ç¥ó½êÆÀ */
+function sfGetDBVersion($dsn = DEFAULT_DSN) {
+	$objQuery = new SC_Query($dsn);
+	list($db_type) = split(":", $dsn);
+	if($db_type == 'mysql') {
+		$arrRet = $objQuery->getAll("SHOW VARIABLES");
+		foreach($arrRet as $array) {
+			if($array[0] == 'version') {
+				$version = "MySQL " . $array[1];
+				break;
+			}
+		}
+	}
+	if($arrRet['db_type'] == 'pgsql') {
+		$arrRet = $objQuery->getAll("select version()");
+		$arrLine = split(" " , $arrRet[0][0]);
+		$version = $arrLine[0] . " " . $arrLine[1];
+	}
+	return $version;
+}
 
 /* ¥Æ¡¼¥Ö¥ë¤ÎÂ¸ºß¥Á¥§¥Ã¥¯ */
