mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1079 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2a13d510fb
commit
0e53c321df
12 changed files with 140 additions and 61 deletions
|
|
@ -13,8 +13,6 @@
|
|||
var $bind_idx = 0;
|
||||
var $bind_vars = array();
|
||||
|
||||
var $debugDetail = false;
|
||||
|
||||
var $database = NULL; ///< database
|
||||
var $prefix = 'zb'; ///< 제로보드에서 사용할 테이블들의 prefix (한 DB에서 여러개의 제로보드 설치 가능)
|
||||
|
||||
|
|
@ -155,19 +153,35 @@
|
|||
function _execute() {
|
||||
if(!$this->isConnected() || !$this->stmt) return;
|
||||
|
||||
if(__DEBUG__) $query_start = getMicroTime();
|
||||
|
||||
$this->stmt->execute();
|
||||
|
||||
if($this->debugDetail && $this->stmt->errorCode()!='00000') debugPrint($this->query."\n".$this->stmt->errorCode()." : ".print_r($this->stmt->errorInfo(),true)."\n".print_r($this->bind_vars,true));
|
||||
if(__DEBUG__) {
|
||||
$query_end = getMicroTime();
|
||||
$elapsed_time = $query_end - $query_start;
|
||||
$GLOBALS['__db_elapsed_time__'] += $elapsed_time;
|
||||
}
|
||||
|
||||
$this->bind_idx = 0;
|
||||
$this->bind_vars = 0;
|
||||
|
||||
if($this->stmt->errorCode()!='00000') {
|
||||
$this->setError($this->stmt->errorCode(),print_r($this->stmt->errorInfo(),true));
|
||||
|
||||
if(__DEBUG__) {
|
||||
$GLOBALS['__db_queries__'] .= sprintf("\t%02d. %s (%0.6f sec)\n\t Fail : %d\n\t\t %s\n", ++$GLOBALS['__dbcnt'], $this->query, $elapsed_time, $this->errno, $this->errstr);
|
||||
}
|
||||
|
||||
$this->stmt = null;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if(__DEBUG__) {
|
||||
$GLOBALS['__db_queries__'] .= sprintf("\t%02d. %s (%0.6f sec)\n", ++$GLOBALS['__dbcnt'], $this->query, $elapsed_time);
|
||||
}
|
||||
|
||||
$output = null;
|
||||
while($tmp = $this->stmt->fetch(PDO::FETCH_ASSOC)) {
|
||||
unset($obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue