ureport
ureport copied to clipboard
包含case when else end 的sql语句在嵌套到表达式后出现解析异常
为了您的问题能得到及时准确解答,请认真填写下面各个选项,感谢您的配合。
-
当前使用的UReport的具体版本号:2.3.0-SNAPSHOT
-
遇到的问题描述:数据集中 包含case when else end 的sql语句在嵌套到表达式后出现解析异常
-
涉及到的异常信息(完整异常信息):
服务端错误:Expression parse error:[[@15,79:87='' \else '',<30>,3:52]] is invalid:mismatched input '' \else '' expecting {'}', ';', Operator} [[@18,126:126='}',<4>,5:2]] is invalid:mismatched input '}' expecting {, 'case', 'if', 'return', 'var', '&', '$', '#', 'cell', Cell, Operator, BOOLEAN, 'null', '(', STRING, INTEGER, NUMBER, Identifier} [[@28,239:239=':',<25>,7:23]] is invalid:extraneous input ':' expecting {, 'case', 'if', 'return', 'var', '&', '$', '#', 'cell', 'to', Cell, Operator, BOOLEAN, 'null', '(', STRING, INTEGER, NUMBER, Identifier} [[@31,248:248='}',<4>,8:2]] is invalid:extraneous input '}' expecting {, 'case', 'if', 'return', 'var', '&', '$', '#', 'cell', Cell, Operator, BOOLEAN, 'null', '(', STRING, INTEGER, NUMBER, Identifier}
-
相关截图:
连这个常用的case语句都没法用,难搞哦!
2.3.0版本我怎么没找到?是被移除了吗?
同样遇到这个问题, DATE_FORMAT(t.create_time,'%Y-%m-%d') 也没法用
使用表达式的情况下 ${ select count(1) num, DATE_FORMAT(t.create_time,'%Y-%m-%d') ctime from tb_user t
}
没法使用 DATE_FORMAT(t.create_time,'%Y-%m-%d') , 去掉表达式正常