Closed XilongPei closed 6 years ago
<sql>
<![CDATA[
select id,version,name,login_name from tbl_user where
id not in (select userId from tbl_user_role where roleId=@roleId#)
and 1=1
order by update_date_time desc
]]>
</sql>
fill the hole of QueryException. limit: concat() more than 2 strings once just suit for MySQL(?) commit: https://github.com/XilongPei/Openparts/commit/03b867331527ee3e093b9cb6189757b57abdceb0
当构造出这样的HQL语句,就抛出异常:
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/loader/custom/sql/SQLQueryParser.java