#119 board, forum, cafe 모듈 등이 포함되어 있을 때 설치 실패하는 문제 해결.

This commit is contained in:
bnu 2013-12-04 20:18:51 +09:00
parent 7daa63cedf
commit 67bd8691d1
3 changed files with 14 additions and 2 deletions

View file

@ -582,11 +582,15 @@ class DBMysql extends DB
function _executeUpdateAct($queryObject, $with_values = true)
{
$query = $this->getUpdateSql($queryObject, $with_values, true);
$query .= (__DEBUG_QUERY__ & 1 && $this->query_id) ? sprintf(' ' . $this->comment_syntax, $this->query_id) : '';
if(is_a($query, 'Object'))
{
return;
if(!$query->toBool()) return $query;
else return;
}
$query .= (__DEBUG_QUERY__ & 1 && $this->query_id) ? sprintf(' ' . $this->comment_syntax, $this->query_id) : '';
return $this->_query($query);
}

View file

@ -402,6 +402,8 @@ class Query extends Object
$update[] = $column->getExpression($with_values);
}
}
if(!$update) return;
return trim(implode($update, ', '));
}