add zend_db fetchmode
This commit is contained in:
parent
61539992be
commit
fb905b5069
|
@ -184,7 +184,8 @@ class ISO19115
|
|||
//do nothing.
|
||||
//说明数据库中已存在该信息
|
||||
}
|
||||
|
||||
$dbmode=$db->getFetchMode();
|
||||
$db->setFetchMode(Zend_Db::FETCH_OBJ);
|
||||
//save metadata into database
|
||||
try {
|
||||
$sql="insert into metadata (uuid,title,title_en,description,citation,suppinfo,fileformat,projection,datatype,filesize,ts_created,
|
||||
|
@ -315,7 +316,8 @@ class ISO19115
|
|||
} catch (Exception $e) {
|
||||
//数据重复插入,此处忽略所有错误
|
||||
print $this->uuid.' has error: '.$e->getMessage().'<br />';
|
||||
}
|
||||
}
|
||||
$db->setFetchMode($dbmode);
|
||||
}
|
||||
|
||||
function parse()
|
||||
|
|
Loading…
Reference in New Issue