throw Caster.toPageException(e);
}
}
private railo.runtime.type.Query executeDatasoure(SQL sql,boolean createUpdateData,TimeZone tz) throws PageException {
DatasourceManagerImpl manager = (DatasourceManagerImpl) pageContext.getDataSourceManager();
DatasourceConnection dc=manager.getConnection(pageContext,datasource, username, password);
try {
if(lazy && !createUpdateData && cachedWithin==null && cachedafter==null && result==null)
return new SimpleQuery(dc,sql,maxrows,blockfactor,timeout,getName(),pageContext.getCurrentPageSource().getDisplayPath(),tz);
return new QueryImpl(pageContext,dc,sql,maxrows,blockfactor,timeout,getName(),pageContext.getCurrentPageSource().getDisplayPath(),createUpdateData,true);
}
finally {
manager.releaseConnection(pageContext,dc);
}
}