同步时不限制时间

This commit is contained in:
wlx 2010-07-01 09:55:10 +00:00
parent 3e18b42f90
commit 56f51c09f4
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ class Admin_DataController extends Zend_Controller_Action
//提供双向同步功能但只处理ISO 19115格式的元数据 //提供双向同步功能但只处理ISO 19115格式的元数据
function syncAction() function syncAction()
{ {
set_time_limit(0);
$sql="select * from (select count(*) as westdccount from metadata) as t1,(select count(uuid) as gncount from geonetworkmetadata where schemaid='iso19115') as t2,(select count(uuid) as watergncount from watergn where schemaid='iso19115') as t3"; $sql="select * from (select count(*) as westdccount from metadata) as t1,(select count(uuid) as gncount from geonetworkmetadata where schemaid='iso19115') as t2,(select count(uuid) as watergncount from watergn where schemaid='iso19115') as t3";
$this->db->setFetchMode(Zend_Db::FETCH_OBJ); $this->db->setFetchMode(Zend_Db::FETCH_OBJ);
$this->view->mdcount=$this->db->fetchRow($sql); $this->view->mdcount=$this->db->fetchRow($sql);