}
else query=executeDatasoure(sql,result!=null,pageContext.getTimeZone());
//query=(dbtype!=null && dbtype.equals("query"))?executeQoQ(sql):executeDatasoure(sql,result!=null);
if(cachedWithin!=null) {
DateTimeImpl cachedBefore = null;
//if(cachedWithin!=null)
cachedBefore=new DateTimeImpl(pageContext,System.currentTimeMillis()+cachedWithin.getMillis(),false);
pageContext.getQueryCache().set(pageContext,sql,datasource!=null?datasource.getName():null,username,password,query,cachedBefore);
}
exe=query.getExecutionTime();