发新话题
打印

has语句的使用

如果1,可检查控制台看,有没有错误发生。
如果2,可以在 sqlreader.java中,加上一句调试Util.debug,如下所示
复制内容到剪贴板
代码:
      String sqlcopy = sql;

            if ((sql.indexOf("${") > -1)) {
                if (script instanceof ReportContext) {
                    sqlcopy = (String) ((ReportContext) script).evalTemplate(sql);
                } else {
                    if (context == null) {
                        context = ReportContext.getDefaultContext();
                    }

                    sqlcopy = (String) context.evalTemplate(sql);
                }
            }
            
            Util.debug(logger,sqlcopy);  // 合并后的sql输出到控制台

            conn = getConnection2(script);

            if (isQuery(sqlcopy)) {

TOP

发新话题
最近访问的版块