r7619 추가 count(*) 쿼리에 query_id 주석 포함

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7683 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-09-13 03:02:31 +00:00
parent 60ced4cc19
commit 8595952528
9 changed files with 14 additions and 0 deletions

View file

@ -746,6 +746,8 @@
if (count($output->groups)) $count_query = sprintf('select count(*) as count from (%s) xet', $count_query);
$param = $this->param;
$count_query .= (__DEBUG_QUERY__&1 && $output->query_id)?sprintf(' '.$this->comment_syntax,$this->query_id . ' count(*)'):'';
$result = $this->_query($count_query);
$this->param = $param;