File:cn/content.htm
Method:query.map(columns,*where,*order)
连接超时时间已到。在登录后阶段超过了此超时时间。连接可能在等待服务器完成登录过程并响应时超时;或者在尝试创建多个活动连接时超时。 尝试连接到此服务器时花费的持续时间是 - [Pre-Login] initialization=1;handshake=13155;[Login] initialization=0;authentication=0;[Post-Login] complete=1515;
数据库执行错误
cn/xmls/news.xmls
...itle=@querycontent.scalar(Title,ContentId={*ContentId});
$shell[Title]=$join(@Title,-,$shell.getData(metaTitle));
$return($empty);
}
//正文
$sub contentView(PageName){
@querynew=$query(content,content);
@querycat=$query(catalog,content);
@querycat[PageName]=@PageName;
@CatalogId=@querycat.scalar(['CatalogId'],['{*PageName =} and {*AreaId = $shell.getData(cn)}']);
@querynew[CatalogId]=@CatalogId;
@Body=@querynew.scalar(Body,['Status>0 and {*AreaId = $shell.getData(cn)} and {*CatalogId =}']);
$if(!@Body){
@Body=no data;
}
$return(@Body);
}
//列表
$sub contentList(countc,listFormat,pageFormat){
@row=$map();
@querynew=$query(content,content);
@querycat=$query(catalog,content);
@querycat[PageName]=$argv(0,$null);
@CatalogId=@querycat.scalar(['CatalogId'],['{*PageName =} and {*AreaId = $shell.getData(cn)}']);
@querynew[CatalogId]=@CatalogId;
@listnews=@querynew.pager(*,['Status>0 and {*AreaId = $shell.getData(cn)} and {*CatalogId =}'],['Grade desc,Modified desc,Conte...