@@ -592,10 +592,10 @@ public String getHavingString(boolean hasPrefix) {
592592
593593 suffix = expression .substring (end + 1 , expression .length ());
594594
595- if (isPrepared () && (((String ) suffix ).contains ("--" ) || PATTERN_RANGE .matcher ((String ) suffix ).matches () == false )) {
595+ if (isPrepared () && (((String ) suffix ).contains ("--" ) || (( String ) suffix ). contains ( "/*" ) || PATTERN_RANGE .matcher ((String ) suffix ).matches () == false )) {
596596 throw new UnsupportedOperationException ("字符串 " + suffix + " 不合法!"
597597 + "预编译模式下 @having:\" column?value;function(arg0,arg1,...)?value...\" "
598- + " 中 ?value 必须符合正则表达式 " + PATTERN_RANGE + " 且不包含连续减号 -- !不允许多余的空格!" );
598+ + " 中 ?value 必须符合正则表达式 " + PATTERN_RANGE + " 且不包含连续减号 -- 或注释符 /* !不允许多余的空格!" );
599599 }
600600
601601 String [] ckeys = StringUtil .split (expression .substring (start + 1 , end ));
@@ -1056,10 +1056,10 @@ else if (StringUtil.isName(origin)) {
10561056 + " function(arg0,arg1,...):alias 中 alias 必须是1个单词!并且不要有多余的空格!" );
10571057 }
10581058
1059- if (suffix .isEmpty () == false && (((String ) suffix ).contains ("--" ) || PATTERN_RANGE .matcher ((String ) suffix ).matches () == false )) {
1059+ if (suffix .isEmpty () == false && (((String ) suffix ).contains ("--" ) || (( String ) suffix ). contains ( "/*" ) || PATTERN_RANGE .matcher ((String ) suffix ).matches () == false )) {
10601060 throw new UnsupportedOperationException ("字符串 " + suffix + " 不合法!"
10611061 + "预编译模式下 @column:\" column?value;function(arg0,arg1,...)?value...\" "
1062- + " 中 ?value 必须符合正则表达式 " + PATTERN_RANGE + " 且不包含连续减号 -- !不允许多余的空格!" );
1062+ + " 中 ?value 必须符合正则表达式 " + PATTERN_RANGE + " 且不包含连续减号 -- 或注释符 /* !不允许多余的空格!" );
10631063 }
10641064
10651065 String origin = method + "(" + StringUtil .getString (ckeys ) + ")" + suffix ;
0 commit comments