MySQL의 인덱스 존재 유무 판단시 하나의 인덱스에 결합된 컬럼이 있을 경우가 있기에 결과의 유무로 인덱스 존재 유무 판단하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2390 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-23 06:33:25 +00:00
parent 83c1aa06a3
commit 988645a6a3
2 changed files with 4 additions and 4 deletions

View file

@ -264,8 +264,8 @@
$result = $this->_query($query);
if($this->isError()) return;
$output = $this->_fetch($result);
if($output->Key_name == $index_name) return true;
return false;
if(!$output) return false;
return true;
}
/**

View file

@ -273,8 +273,8 @@
$result = $this->_query($query);
if($this->isError()) return;
$output = $this->_fetch($result);
if($output->Key_name == $index_name) return true;
return false;
if(!$output) return false;
return true;
}
/**