git-svn-id: http://xe-core.googlecode.com/svn/trunk@953 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-04 02:30:51 +00:00
parent 13103f0049
commit 47047b01b5
2 changed files with 6 additions and 7 deletions

View file

@ -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;
}
/**