fixed bug in sql
This commit is contained in:
parent
d5218d17d6
commit
122dcc74aa
|
@ -2352,10 +2352,10 @@ class AuthorController extends Zend_Controller_Action
|
|||
$data=array("error"=>"元数据导入过程中发现错误。<br />".implode("<br />",$iso->error));
|
||||
$this->jsonexit($data);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 保存数据作者信息
|
||||
$sql="insert into mdauthor (uuid,userid,ts_activated,status) values(?,?,now(),1) where not exists (select id from mdauthor where uuid=? and userid=?)";
|
||||
$sql="insert into mdauthor (uuid,userid,ts_activated,status) SELECT ?,?,now(),1 where not exists (select id from mdauthor where uuid=? and userid=?)";
|
||||
$this->db->query($sql,array($row['uuid'],$u_id,$row['uuid'],$u_id));
|
||||
|
||||
// 2. 保存变化记录 save changelog & userid for the latest version
|
||||
|
|
Loading…
Reference in New Issue