fix sql error

This commit is contained in:
wlx 2013-04-27 09:37:23 +00:00
parent f43ef26d08
commit dd3f89b796
1 changed files with 1 additions and 1 deletions

View File

@ -2835,7 +2835,7 @@ class Admin_DataController extends Zend_Controller_Action
//查看所有的未提交数据列表
else if((empty($ac) && empty($uuid))|| $ac=='list')
{
$sql = "SELECT (regexp_matches(gn.data,'<resTitle>(.*)</resTitle>'))[1] as title,gn.id,gn.uuid,u.username,u.realname FROM geonetworkmetadata gn left join users u on gn.owner=users.id
$sql = "SELECT (regexp_matches(gn.data,'<resTitle>(.*)</resTitle>'))[1] as title,gn.id,gn.uuid,u.username,u.realname FROM geonetworkmetadata gn left join users u on gn.owner=u.id
WHERE gn.uuid not in (select uuid from metadata)
order by gn.id desc
";