mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
MySQL에서 index 검색시 하나의 인덱스만 있을때 오류가 나는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5100 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
82210cf968
commit
9ac6a5a64d
3 changed files with 6 additions and 1 deletions
|
|
@ -450,7 +450,8 @@
|
|||
$output = $this->_fetch($result);
|
||||
//commit();
|
||||
@ibase_commit($this->fd);
|
||||
|
||||
if(!$output) return;
|
||||
if(!is_array($output)) $output = array($output);
|
||||
for($i=0;$i<count($output);$i++) {
|
||||
if(trim($output[$i]->KEY_NAME) == $index_name) return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -278,6 +278,8 @@
|
|||
$result = $this->_query($query);
|
||||
if($this->isError()) return;
|
||||
$output = $this->_fetch($result);
|
||||
if(!$output) return;
|
||||
if(!is_array($output)) $output = array($output);
|
||||
|
||||
for($i=0;$i<count($output);$i++) {
|
||||
if($output[$i]->Key_name == $index_name) return true;
|
||||
|
|
|
|||
|
|
@ -287,6 +287,8 @@
|
|||
$result = $this->_query($query);
|
||||
if($this->isError()) return;
|
||||
$output = $this->_fetch($result);
|
||||
if(!$output) return;
|
||||
if(!is_array($output)) $output = array($output);
|
||||
|
||||
for($i=0;$i<count($output);$i++) {
|
||||
if($output[$i]->Key_name == $index_name) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue