add zend_db fetchmode

This commit is contained in:
wlx 2012-06-12 10:38:55 +00:00
parent 61539992be
commit fb905b5069
1 changed files with 4 additions and 2 deletions

View File

@ -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()