From 47047b01b59d705727b89e3ea53bf37e620a64f4 Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 4 Apr 2007 02:30:51 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@953 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBMysqli.class.php | 10 +++++----- modules/install/install.controller.php | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/classes/db/DBMysqli.class.php b/classes/db/DBMysqli.class.php index 86c791f80..4b8ec08ef 100644 --- a/classes/db/DBMysqli.class.php +++ b/classes/db/DBMysqli.class.php @@ -2,16 +2,17 @@ /** * @class DBMysqli * @author zero (zero@nzeo.com) - * @brief MySQL DBMS를 이용하기 위한 class + * @brief MySQLi DBMS를 이용하기 위한 class * @version 0.1 + * @todo mysqli 미구현 (mysql과 같은 처리..) * - * mysql handling class + * mysqli의 prepare, bind param등을 사용하려고 만들었으나.... + * 문제는 bind_param 시에 mixed var를 eval이 아닌 방법으로 구현할 방법을 찾지 못했음. **/ class DBMysqli extends DB { var $handler = null; - var $stmt = null; var $hostname = '127.0.0.1'; ///< hostname var $userid = NULL; ///< user id @@ -110,7 +111,6 @@ if($this->handler->error) { $this->setError($this->handler->errno, $this->handler->error); - $this->stmt = null; return; } @@ -136,7 +136,7 @@ function getNextSequence() { $query = sprintf("insert into `%ssequence` (seq) values ('')", $this->prefix); $this->_query($query); - return mysql_insert_id(); + return $this->handler->insert_id; } /** diff --git a/modules/install/install.controller.php b/modules/install/install.controller.php index 91149caf5..900b8bebd 100644 --- a/modules/install/install.controller.php +++ b/modules/install/install.controller.php @@ -36,8 +36,7 @@ if(!$oDB->isConnected()) return new Object(-1, 'msg_dbconnect_failed'); // 모든 모듈의 설치 - $output = $this->installDownloadedModule(); - if(!$output->toBool()) return $output; + $this->installDownloadedModule(); // config 파일 생성 if(!$this->makeConfigFile()) return new Object(-1, 'msg_install_failed');