Changeset 6266
- Timestamp:
- 2006/10/13 13:22:44 (20 years ago)
- Location:
- temp/trunk
- Files:
-
- 4 edited
-
data/class/SC_DbConn.php (modified) (1 diff)
-
data/class/SC_Query.php (modified) (1 diff)
-
data/lib/slib.php (modified) (1 diff)
-
html/install/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/class/SC_DbConn.php
r6262 r6266 22 22 23 23 // ¥³¥ó¥¹¥È¥é¥¯¥¿ 24 function SC_DbConn($dsn = "", $err_disp = true ){24 function SC_DbConn($dsn = "", $err_disp = true, $new = false){ 25 25 global $objDbConn; 26 26 27 27 // Debug¥â¡¼¥É»ØÄê 28 28 $options['debug'] = PEAR_DB_DEBUG; 29 // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ ˤÏÀܳ¤·¤Ê¤¤30 if(!isset($objDbConn->connection) ) {29 // ´û¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ÈºÆÀܳ¤Ê¤·¤Î¾ì¹ç¤ÏÀܳ¤·¤Ê¤¤ 30 if(!isset($objDbConn->connection) && !$new) { 31 31 if($dsn != "") { 32 32 $objDbConn = DB::connect($dsn, $options); -
temp/trunk/data/class/SC_Query.php
r6217 r6266 12 12 13 13 // ¥³¥ó¥¹¥È¥é¥¯¥¿ 14 function SC_Query($dsn = "", $err_disp = true) { 15 $this->conn = new SC_DBconn($dsn, $err_disp); 14 /* 15 $err_disp:¥¨¥é¡¼É½¼¨¤ò¹Ô¤¦¤« 16 $new¡§ºÆÀܳ¤ò¹Ô¤¦¤« 17 */ 18 function SC_Query($dsn = "", $err_disp = true, $new = false) { 19 $this->conn = new SC_DBconn($dsn, $err_disp, $new); 16 20 $this->where = ""; 17 21 return $this->conn; -
temp/trunk/data/lib/slib.php
r6265 r6266 26 26 list($db_type) = split(":", $dsn); 27 27 if($db_type == 'mysql') { 28 $arrRet = $objQuery->getAll(" SHOW VARIABLES");28 $arrRet = $objQuery->getAll("select version()"); 29 29 30 30 sfPrintR($arrRet); -
temp/trunk/html/install/index.php
r6262 r6266 83 83 $arrRet = $objDBParam->getHashArray(); 84 84 $dsn = $arrRet['db_type']."://".$arrRet['db_user'].":".$arrRet['db_password']."@".$arrRet['db_server'].":".$arrRet['db_port']."/".$arrRet['db_name']; 85 86 global $objDbConn;87 unset($objDbConn);88 89 85 /* 90 86 ¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×Åù¤ÇÄɲåơ¼¥Ö¥ë¤¬È¯À¸¤·¤¿ºÝ¤ÏµºÜ¤¹¤ë
Note: See TracChangeset
for help on using the changeset viewer.
